92a7090c34
The Java/Prolog interaction package for swi-prolog.
51 lines
1.4 KiB
Makefile
51 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.1 2014/05/28 10:33:00 markd Exp $
|
|
|
|
.include "../../lang/swi-prolog-lite/Makefile.common"
|
|
|
|
PKGNAME= swi-prolog-jpl-${SWIPLVERS}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
COMMENT= jpl package for SWI Prolog
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_TOOLS+= gmake pkg-config
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
CONFIGURE_ENV+= PL=swi-prolog
|
|
CONFIGURE_ENV+= PLARCH=${MACHINE_GNU_PLATFORM} # make PLIST consistent
|
|
CONFIGURE_ENV+= PKG=jpl
|
|
|
|
CONFIGURE_DIRS+= . packages
|
|
BUILD_DIRS+= packages/jpl
|
|
INSTALL_DIRS+= packages/jpl
|
|
|
|
INSTALLATION_DIRS= lib/swi-prolog-${PKGVERSION_NOREV}/bin/${MACHINE_GNU_PLATFORM}
|
|
|
|
TEST_TARGET= check
|
|
|
|
pre-configure:
|
|
${LN} -sf ${LOCALBASE}/bin/plld ${WRKSRC}/src
|
|
${LN} -sf ${LOCALBASE}/bin/swi-prolog ${WRKSRC}/src
|
|
|
|
post-configure:
|
|
${LN} -sf ${LOCALBASE}/bin/plld ${WRKSRC}/src
|
|
${LN} -sf ${LOCALBASE}/bin/swi-prolog ${WRKSRC}/src
|
|
cd ${WRKSRC}/packages; \
|
|
${SETENV} \
|
|
CPP=${CPP:Q} \
|
|
${GMAKE} PKG=jpl configure
|
|
mkdir ${WRKSRC}/include
|
|
${LN} -sf ${WRKSRC}/src/SWI-Prolog.h ${WRKSRC}/include
|
|
${LN} -sf ${WRKSRC}/src/os/SWI-Stream.h ${WRKSRC}/include
|
|
|
|
|
|
.include "../../lang/swi-prolog-lite/buildlink3.mk"
|
|
.include "../../mk/java-vm.mk"
|
|
.include "../../devel/gmp/buildlink3.mk"
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
# uses rl_event_hook() interface
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|