pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

swi-prolog-jpl: Import swi-prolog-jpl-7.6.4 as wip/swi-prolog-jpl



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Wed Sep 26 12:19:07 2018 +0200
Changeset:	d55240ea836efc231c8e962070be57c4afe34c2b

Modified Files:
	Makefile
Added Files:
	swi-prolog-jpl/DESCR
	swi-prolog-jpl/Makefile
	swi-prolog-jpl/PLIST

Log Message:
swi-prolog-jpl: Import swi-prolog-jpl-7.6.4 as wip/swi-prolog-jpl

Package for Java/Prolog interaction for
swi-prolog, an ISO/Edinburgh-style Prolog compiler.

Based on lang/swi-prolog-jpl and intended to be used in order to update it.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d55240ea836efc231c8e962070be57c4afe34c2b

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                |  1 +
 swi-prolog-jpl/DESCR    |  2 ++
 swi-prolog-jpl/Makefile | 53 +++++++++++++++++++++++++++++++++++++++++++++++++
 swi-prolog-jpl/PLIST    |  4 ++++
 4 files changed, 60 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index ca025a3565..46b79913f1 100644
--- a/Makefile
+++ b/Makefile
@@ -4398,6 +4398,7 @@ SUBDIR+=	swami
 SUBDIR+=	swarp
 SUBDIR+=	swfmill
 SUBDIR+=	swftools
+SUBDIR+=	swi-prolog-jpl
 SUBDIR+=	swi-prolog-lite
 SUBDIR+=	swi-prolog-packages
 SUBDIR+=	swift
diff --git a/swi-prolog-jpl/DESCR b/swi-prolog-jpl/DESCR
new file mode 100644
index 0000000000..8a0f85501f
--- /dev/null
+++ b/swi-prolog-jpl/DESCR
@@ -0,0 +1,2 @@
+Package for Java/Prolog interaction for
+swi-prolog, an ISO/Edinburgh-style Prolog compiler.
diff --git a/swi-prolog-jpl/Makefile b/swi-prolog-jpl/Makefile
new file mode 100644
index 0000000000..21014bb900
--- /dev/null
+++ b/swi-prolog-jpl/Makefile
@@ -0,0 +1,53 @@
+# $NetBSD: Makefile,v 1.4 2015/08/18 07:31:10 wiz Exp $
+
+.include "../../wip/swi-prolog-lite/Makefile.common"
+
+PKGNAME=		swi-prolog-jpl-${SWIPLVERS}
+
+MAINTAINER=		pkgsrc-users%NetBSD.org@localhost
+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_ENV+=		JAVAC=${PKG_JAVA_HOME}/bin/javac
+
+CONFIGURE_DIRS+=	. packages
+BUILD_DIRS+=		packages/jpl
+INSTALL_DIRS+=		packages/jpl
+BUILD_TARGET=		libjpl.so jpl.jar
+
+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 "../../wip/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"
diff --git a/swi-prolog-jpl/PLIST b/swi-prolog-jpl/PLIST
new file mode 100644
index 0000000000..577b26a27b
--- /dev/null
+++ b/swi-prolog-jpl/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2014/05/28 10:33:00 markd Exp $
+lib/swi-prolog-${PKGVERSION}/lib/jpl.jar
+lib/swi-prolog-${PKGVERSION}/library/jpl.pl
+lib/swi-prolog-${PKGVERSION}/lib/${MACHINE_GNU_PLATFORM}/libjpl.so


Home | Main Index | Thread Index | Old Index