Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # $OpenBSD: Makefile,v 1.70 2017/03/14 12:23:21 jca Exp $
  2. BROKEN-hppa = undefined reference to __sync_fetch_and_add_4
  3. BROKEN-sparc64 = infinite loop or aborts during build
  4. COMMENT = Prolog for the real world
  5. V = 6.6.4
  6. REVISION = 10
  7. DISTNAME = pl-$V
  8. PKGNAME = swi-prolog-$V
  9. CATEGORIES = lang
  10. SHARED_LIBS = pl 5.0
  11. HOMEPAGE = http://www.swi-prolog.org/
  12. MAINTAINER = Edd Barrett <edd@openbsd.org>
  13. # LGPLv2.1
  14. PERMIT_PACKAGE_CDROM = Yes
  15. WANTLIB += ICE SM X11 Xext Xft Xinerama Xpm Xt c crypto execinfo
  16. WANTLIB += fontconfig freetype gmp jpeg m ncursesw pthread readline ssl
  17. WANTLIB += z
  18. MASTER_SITES = ${HOMEPAGE}download/stable/src/ \
  19. https://distfiles.nl/
  20. CONFIGURE_STYLE = gnu
  21. MODGNU_CONFIG_GUESS_DIRS = ${WRKSRC}/src \
  22. ${WRKSRC}/packages/jpl \
  23. ${WRKSRC}/packages/xpce/src
  24. CONFIGURE_ENV += CIFLAGS=' -I${LOCALBASE}/include' \
  25. LDFLAGS=' -L${LOCALBASE}/lib' \
  26. COFLAGS='${CFLAGS}'
  27. CONFIGURE_ARGS = --enable-mt \
  28. --disable-custom-flags \
  29. --with-world \
  30. --with-jpeg=${LOCALBASE} \
  31. --enable-shared
  32. USE_GMAKE = Yes
  33. # Don't pick up bash
  34. MAKE_ENV = MAKESHELL=/bin/sh
  35. MAKE_FLAGS = SONAMEOPT= \
  36. SHAREDV=libpl.so.${LIBpl_VERSION}
  37. MODULES = gcc4
  38. # for atomic builtins
  39. MODGCC4_ARCHS = arm
  40. BUILD_DEPENDS = ${RUN_DEPENDS}
  41. LIB_DEPENDS = devel/gmp \
  42. devel/libexecinfo \
  43. graphics/jpeg
  44. FULLARCH = ${MACHINE_ARCH:S/amd64/x86_64/}-openbsd${OSREV}
  45. SUBST_VARS += V BOOT FULLARCH
  46. post-install:
  47. cd ${PREFIX}/lib && \
  48. ln -sf swipl-$V/lib/${FULLARCH}/libpl.so.${LIBpl_VERSION}
  49. mv ${PREFIX}/lib/swipl-${V}/doc ${PREFIX}/share/doc/swipl
  50. # Swipl multithreading flaky at best on OpenBSD.
  51. # We are not sure if this is our threading implementation or their code.
  52. # The following tests fail (hang). We remove them to allow the rest
  53. # of the tests to execute atleast.
  54. # When updating, uncomment these to see if they still fail.
  55. pre-test:
  56. rm -f ${WRKBUILD}/src/Tests/core/test_resource_error.pl
  57. .include <bsd.port.arch.mk>
  58. .if ${PROPERTIES:Mlp64}
  59. BOOT = boot64
  60. .else
  61. BOOT = boot32
  62. .endif
  63. .include <bsd.port.mk>