pkgsrc/lang/swi-prolog-lite/Makefile
2020-08-09 23:16:48 +00:00

59 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.32 2020/08/09 23:16:48 joerg Exp $
.include "Makefile.common"
PKGNAME= swi-prolog-lite-${SWIPLVERS}
PKGREVISION= 2
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= ISO/Edinburgh-style Prolog compiler
CMAKE_ARGS+= -DSWIPL_INSTALL_MANPAGES=${PKGMANDIR}/man1
CMAKE_ARGS+= -DSWIPL_PACKAGES_BASIC=ON
CMAKE_ARGS+= -DSWIPL_PACKAGES_ARCHIVE=ON
CMAKE_ARGS+= -DSWIPL_PACKAGES_SSL=ON
CMAKE_ARGS+= -DSWIPL_PACKAGES_TERM=ON
CMAKE_ARGS+= -DINSTALL_DOCUMENTATION=ON
# Part of swi-prolog-jpl
CMAKE_ARGS+= -DSWIPL_PACKAGES_JAVA=OFF
# Part of swi-prolog-packages
CMAKE_ARGS+= -DSWIPL_PACKAGES_X=OFF
USE_TOOLS+= bash:run
MAKE_ENV+= OPENSSL_CONF=/dev/null
.include "../../mk/bsd.prefs.mk"
.if !empty(LP64PLATFORMS:@.PLAT.@${MACHINE_PLATFORM:M${.PLAT.}}@) || \
(defined(ABI) && ${ABI} == "64")
PLIST_SUBST+= BITS=64
.else
PLIST_SUBST+= BITS=32
.endif
REPLACE_INTERPRETER+= swipl
REPLACE.swipl.old= /usr/bin/swipl
REPLACE.swipl.new= ${PREFIX}/bin/swipl
REPLACE_FILES.swipl+= library/dialect/sicstus/swipl-lfr.pl
# XXX: editline bindings seems limited and does not support completion, remove
# XXX: them in order to always use readline.pl.
post-install:
${RM} ${DESTDIR}${PREFIX}/lib/swipl/doc/packages/libedit.html || ${TRUE}
${RM} ${DESTDIR}${PREFIX}/lib/swipl/lib/${MACHINE_GNU_PLATFORM}/libedit4pl.so || ${TRUE}
${RM} ${DESTDIR}${PREFIX}/lib/swipl/library/editline.pl || ${TRUE}
TEST_TARGET= check
.include "../../archivers/libarchive/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../devel/ossp-uuid/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"