Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # $OpenBSD: Makefile,v 1.5 2016/03/16 16:46:32 naddy Exp $
  2. # The next version will work on other architectures again
  3. ONLY_FOR_ARCHS = amd64 i386
  4. COMMENT = interpreter of the R7RS Scheme programming language
  5. DISTNAME = chibi-scheme-0.7.3
  6. SHARED_LIBS = chibi-scheme 1.0 # 0.7.3
  7. CATEGORIES = lang
  8. HOMEPAGE = http://synthcode.com/wiki/chibi-scheme
  9. MAINTAINER = Juan Francisco Cantero Hurtado <juanfra@openbsd.org>
  10. # New BSD License
  11. PERMIT_PACKAGE_CDROM = Yes
  12. WANTLIB = c m
  13. MASTER_SITES = http://synthcode.com/scheme/chibi/ \
  14. http://download.tuxfamily.org/jod/lang/chibi-scheme/ \
  15. ftp://download.tuxfamily.org/jod/lang/chibi-scheme/
  16. EXTRACT_SUFX = .tgz
  17. # -DSEXP_USE_ALIGNED_BYTECODE=1 is experimental and broken on OpenBSD
  18. # Back to defaults while upstream fixes the bugs.
  19. MAKE_ENV += CC=${CC} \
  20. LDFLAGS="-L${WRKSRC} -L${LOCALBASE}/lib" \
  21. CPPFLAGS="-I${WRKSRC}/include -I${LOCALBASE}/include -DSEXP_USE_ALIGNED_BYTECODE=0" \
  22. SOVERSION="${LIBchibi-scheme_VERSION}"
  23. # "gmake install" works fine but shows the error: "gmake: write error: stdout"
  24. # -s is the simplest workaround for this bug
  25. FAKE_FLAGS += PREFIX="${LOCALBASE}" \
  26. DESTDIR="${WRKINST}" \
  27. MANDIR="${LOCALBASE}/man/man1" \
  28. -s
  29. USE_GMAKE = Yes
  30. .include <bsd.port.mk>