Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # $OpenBSD: Makefile,v 1.28 2017/02/13 16:07:07 juanfra Exp $
  2. COMMENT= complete, efficient and reliable implementation of Scheme
  3. V= 4.8.8
  4. DISTNAME= gambit-v${V:S/./_/g}
  5. PKGNAME= gambit-$V
  6. API_V= ${V:R:S/./0/}00${V:E}
  7. SUBST_VARS+= API_V
  8. CATEGORIES= lang
  9. HOMEPAGE= http://gambitscheme.org/
  10. # LGPLv2.1 / Apachev2.0
  11. PERMIT_PACKAGE_CDROM= Yes
  12. MASTER_SITES= http://www.iro.umontreal.ca/~gambit/download/gambit/v${V:R}/source/
  13. EXTRACT_SUFX= .tgz
  14. WANTLIB += c m util
  15. CONFIGURE_STYLE=gnu
  16. CONFIGURE_ARGS+=--disable-cplusplus \
  17. --disable-absolute-shared-libs \
  18. --docdir=${PREFIX}/share/doc/gambit/ \
  19. --includedir=${PREFIX}/include/gambit/ \
  20. --libdir=${PREFIX}/lib/gambit/ \
  21. --enable-c-opt="${CFLAGS}"
  22. MAKE_FILE= ${WRKSRC}/makefile
  23. # On sparc64, gcc crashes with the default stack limit:
  24. # "cc: Internal error: Illegal instruction" on _gambc.c
  25. do-build:
  26. ulimit -s 12288 && cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
  27. ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} ${ALL_TARGET}
  28. do-test:
  29. cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} ${MAKE_PROGRAM} \
  30. ${TEST_FLAGS} -f makefile ${TEST_TARGET}
  31. # alpha: "cc1: out of memory allocating 1608 bytes"
  32. # hppa: "virtual memory exhausted: Cannot allocate memory" (in a system with 2GB RAM)
  33. .if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "hppa"
  34. CFLAGS += -O0
  35. .endif
  36. .include <bsd.port.mk>