Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / lang / swi-prolog-lite / Makefile
blob58a993e7f1bc3e4dab54aac2b7aa99be955a4420
1 # $NetBSD: Makefile,v 1.19 2012/09/28 07:58:06 sbd Exp $
3 .include "Makefile.common"
5 PKGNAME= swi-prolog-lite-${SWIPLVERS}
6 PKGREVISION= 1
8 MAINTAINER= pkgsrc-users@NetBSD.org
9 COMMENT= ISO/Edinburgh-style Prolog compiler
11 GNU_CONFIGURE= yes
12 CONFIGURE_DIRS= src
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
24 PLIST_SUBST+= BITS=64
25 .else
26 PLIST_SUBST+= BITS=32
27 .endif
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
34 TEST_TARGET= check
36 post-install:
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"