Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # $OpenBSD: Makefile,v 1.45 2015/03/16 18:07:49 naddy Exp $
  2. PORTROACH+= limit:^1
  3. COMMENT= GNU's Ubiquitous Intelligent Language for Extension
  4. VERSION= 1.8.8
  5. DISTNAME= guile-${VERSION}
  6. REVISION= 4
  7. SHARED_LIBS= guile 20.0 \
  8. guile-srfi-srfi-1-v-3 3.2 \
  9. guile-srfi-srfi-13-14-v-3 3.1 \
  10. guile-srfi-srfi-4-v-3 3.1 \
  11. guile-srfi-srfi-60-v-2 2.2 \
  12. guilereadline-v-17 17.3
  13. CATEGORIES= lang
  14. MASTER_SITES= ${MASTER_SITE_GNU:=guile/}
  15. HOMEPAGE= https://www.gnu.org/software/guile/
  16. # LGPLv2.1
  17. PERMIT_PACKAGE_CDROM= Yes
  18. WANTLIB= c gmp>=6 ltdl m ncurses pthread readline
  19. LIB_DEPENDS= devel/gmp>=4.1 \
  20. devel/libtool,-ltdl
  21. RUN_DEPENDS= devel/slib>=3b4
  22. MODULES= devel/gettext
  23. SEPARATE_BUILD= Yes
  24. CONFIGURE_STYLE= gnu
  25. USE_GMAKE= Yes
  26. # Needed because otherwise regress tests won't build:
  27. # warning: format '%ji' expects type 'intmax_t', but argument 4 has type 'scm_t_intmax'
  28. CONFIGURE_ARGS+= --disable-error-on-warning
  29. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  30. LDFLAGS="-L${LOCALBASE}/lib" \
  31. PTHREAD_CFLAGS=-pthread \
  32. PTHREAD_LIBS=-pthread
  33. V= ${VERSION:C,.[0-9]+$,,}
  34. SUBST_VARS= V
  35. post-install:
  36. ${INSTALL_DATA_DIR} ${PREFIX}/share/aclocal
  37. ${INSTALL_DATA} ${WRKSRC}/guile-config/guile.m4 ${PREFIX}/share/aclocal
  38. # Create symlink from share/guile/slib to share/slib.
  39. # This allows other ports to find guile.init.
  40. @cd ${PREFIX}/share/guile && ln -s ../slib
  41. .include <bsd.port.mk>