pkgsrc/lang/swi-prolog-lite/Makefile
is cac6ce3315 Don't overwrite shlib.pl with the really old version from files/ .
Fixes PR 48067 by Matthias Kretschmer.
Tests: Backported to 2013Q1, it passes "make test" on NetBSD/i386
6.1, the PR submitter's quick test as well as the PR submitter's
extended application that triggered the PR.
2013-07-26 09:29:34 +00:00

40 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.22 2013/07/26 09:29:34 is Exp $
.include "Makefile.common"
PKGNAME= swi-prolog-lite-${SWIPLVERS}
PKGREVISION= 2
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= ISO/Edinburgh-style Prolog compiler
GNU_CONFIGURE= yes
CONFIGURE_DIRS= src
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
.include "../../devel/ncurses/buildlink3.mk"
# uses rl_event_hook() interface
.include "../../devel/readline/buildlink3.mk"
.include "../../devel/gmp/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"