1 # $NetBSD: Makefile,v 1.19 2012/09/28 07:58:06 sbd Exp $
3 .
include "Makefile.common"
5 PKGNAME
= swi-prolog-lite-
${SWIPLVERS}
8 MAINTAINER
= pkgsrc-users@NetBSD.org
9 COMMENT
= ISO
/Edinburgh-style Prolog compiler
13 USE_GNU_READLINE
= yes
# uses rl_event_hook() interface
15 CONFIGURE_ENV
+= PL
=swi-prolog
16 CONFIGURE_ENV
+= ARCH
=${MACHINE_GNU_PLATFORM} # make PLIST consistent
17 USE_TOOLS
+= gmake bash
:run
18 REPLACE_BASH
+= dotfiles
/edit
20 .
include "../../mk/bsd.prefs.mk"
22 .if
${MACHINE_ARCH} == alpha ||
${MACHINE_ARCH} == sparc64 || \
23 ${MACHINE_ARCH} == x86_64
29 REPLACE_INTERPRETER
+= swipl
30 REPLACE.swipl.old
= /usr
/bin
/swipl
31 REPLACE.swipl.new
= ${PREFIX}/bin
/swi-prolog
32 REPLACE_FILES.swipl
+= library
/dialect
/sicstus
/swipl-lfr.pl
37 ${INSTALL_DATA} ${FILESDIR}/shlib.pl \
38 ${DESTDIR}${PREFIX}/lib
/swi-prolog-
${SWIPLVERS}/library
/shlib.pl
40 .
include "../../devel/ncurses/buildlink3.mk"
41 .
include "../../devel/readline/buildlink3.mk"
42 .
include "../../devel/gmp/buildlink3.mk"
43 .
include "../../mk/pthread.buildlink3.mk"
44 .
include "../../mk/bsd.pkg.mk"