blob: 57769ed1c7f5cdb9bc9ebc7aec1b1d962c086a33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# $NetBSD: Makefile,v 1.20 2012/10/02 20:11:55 asau Exp $
.include "Makefile.common"
PKGNAME= swi-prolog-lite-${SWIPLVERS}
PKGREVISION= 1
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= ISO/Edinburgh-style Prolog compiler
GNU_CONFIGURE= yes
CONFIGURE_DIRS= src
USE_GNU_READLINE= yes # uses rl_event_hook() interface
CONFIGURE_ENV+= PL=swi-prolog
CONFIGURE_ENV+= ARCH=${MACHINE_GNU_PLATFORM} # make PLIST consistent
USE_TOOLS+= gmake bash:run
REPLACE_BASH+= dotfiles/edit
.include "../../mk/bsd.prefs.mk"
.if ${MACHINE_ARCH} == alpha || ${MACHINE_ARCH} == sparc64 || \
${MACHINE_ARCH} == x86_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/swi-prolog
REPLACE_FILES.swipl+= library/dialect/sicstus/swipl-lfr.pl
TEST_TARGET= check
post-install:
${INSTALL_DATA} ${FILESDIR}/shlib.pl \
${DESTDIR}${PREFIX}/lib/swi-prolog-${SWIPLVERS}/library/shlib.pl
.include "../../devel/ncurses/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|