Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # $OpenBSD: Makefile,v 1.13 2017/05/31 08:08:16 espie Exp $
  2. COMMENT= GNU's Ubiquitous Intelligent Language for Extension
  3. # '
  4. VERSION= 2.2.2
  5. DISTNAME= guile-${VERSION}
  6. PKGNAME= guile2-${VERSION}
  7. V= ${VERSION:C,.[0-9]+$,,}
  8. SUBST_VARS= V
  9. CATEGORIES= lang
  10. HOMEPAGE= https://www.gnu.org/software/guile/
  11. SHARED_LIBS += guile-2.2 0.0 # 3.0
  12. # GPLv3, LGPLv3
  13. PERMIT_PACKAGE_CDROM= Yes
  14. WANTLIB += c ffi gc gmp iconv intl ltdl m ncurses pthread readline
  15. WANTLIB += unistring
  16. MASTER_SITES= ${MASTER_SITE_GNU:=guile/}
  17. # internal compiler error: in unify_nodes, at tree-ssa-structalias.c:1231
  18. COMPILER = gcc
  19. COMPILER_LANGS = c
  20. USE_GMAKE= Yes
  21. RUN_DEPENDS= devel/slib
  22. LIB_DEPENDS= converters/libunistring \
  23. devel/boehm-gc \
  24. devel/gettext \
  25. devel/gmp \
  26. devel/libffi \
  27. devel/libtool,-ltdl
  28. CONFIGURE_STYLE= gnu
  29. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  30. LDFLAGS="-L${LOCALBASE}/lib"
  31. CONFIGURE_ARGS= --program-transform-name="s,guile,guile2,"
  32. # Needed because otherwise regress tests won't build:
  33. # warning: format '%ji' expects type 'intmax_t', but argument 4 has type 'scm_t_intmax'
  34. CONFIGURE_ARGS += --disable-error-on-warning
  35. post-install:
  36. install -d ${PREFIX}/share/guile/site/${V}/
  37. # fix conflict with devel/guile
  38. mv ${PREFIX}/share/aclocal/guile{,2}.m4
  39. rm -rf ${PREFIX}/info
  40. .include <bsd.port.mk>