| @@ -1,34 +1,34 @@ | | | @@ -1,34 +1,34 @@ |
1 | # $NetBSD: Makefile,v 1.26 2018/04/17 20:57:19 leot Exp $ | | 1 | # $NetBSD: Makefile,v 1.27 2018/09/06 19:07:12 leot Exp $ |
2 | | | 2 | |
3 | PKGREVISION= 2 | | 3 | PKGREVISION= 2 |
4 | .include "Makefile.common" | | 4 | .include "Makefile.common" |
5 | | | 5 | |
6 | PKGNAME= swi-prolog-lite-${SWIPLVERS} | | 6 | PKGNAME= swi-prolog-lite-${SWIPLVERS} |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | COMMENT= ISO/Edinburgh-style Prolog compiler | | 9 | COMMENT= ISO/Edinburgh-style Prolog compiler |
10 | | | 10 | |
11 | GNU_CONFIGURE= yes | | 11 | GNU_CONFIGURE= yes |
12 | CONFIGURE_DIRS= src | | 12 | CONFIGURE_DIRS= src |
13 | | | 13 | |
14 | CONFIGURE_ENV+= PL=swi-prolog | | 14 | CONFIGURE_ENV+= PL=swi-prolog |
15 | CONFIGURE_ENV+= PLARCH=${MACHINE_GNU_PLATFORM} # make PLIST consistent | | 15 | CONFIGURE_ENV+= PLARCH=${MACHINE_GNU_PLATFORM} # make PLIST consistent |
16 | USE_TOOLS+= gmake bash:run | | 16 | USE_TOOLS+= gmake bash:run |
17 | | | 17 | |
18 | .include "../../mk/bsd.prefs.mk" | | 18 | .include "../../mk/bsd.prefs.mk" |
19 | | | 19 | |
20 | .if ${MACHINE_ARCH} == alpha || ${MACHINE_ARCH} == sparc64 || \ | | 20 | .if !empty(LP64PLATFORMS:@.PLAT.@${MACHINE_PLATFORM:M${.PLAT.}}@) || \ |
21 | ${MACHINE_ARCH} == x86_64 | | 21 | (defined(ABI) && ${ABI} == "64") |
22 | PLIST_SUBST+= BITS=64 | | 22 | PLIST_SUBST+= BITS=64 |
23 | .else | | 23 | .else |
24 | PLIST_SUBST+= BITS=32 | | 24 | PLIST_SUBST+= BITS=32 |
25 | .endif | | 25 | .endif |
26 | | | 26 | |
27 | REPLACE_INTERPRETER+= swipl | | 27 | REPLACE_INTERPRETER+= swipl |
28 | REPLACE.swipl.old= /usr/bin/swipl | | 28 | REPLACE.swipl.old= /usr/bin/swipl |
29 | REPLACE.swipl.new= ${PREFIX}/bin/swi-prolog | | 29 | REPLACE.swipl.new= ${PREFIX}/bin/swi-prolog |
30 | REPLACE_FILES.swipl+= library/dialect/sicstus/swipl-lfr.pl | | 30 | REPLACE_FILES.swipl+= library/dialect/sicstus/swipl-lfr.pl |
31 | | | 31 | |
32 | TEST_TARGET= check | | 32 | TEST_TARGET= check |
33 | | | 33 | |
34 | .include "../../devel/ncurses/buildlink3.mk" | | 34 | .include "../../devel/ncurses/buildlink3.mk" |