diff options
author | marcus <marcus@FreeBSD.org> | 2004-04-05 12:03:12 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-04-05 12:03:12 +0800 |
commit | 6395164fc376897c86d6cb63d12f6a4b1264e7e5 (patch) | |
tree | 86766246eb1ca6d4020eb8b29dfa379e51ba62dc | |
parent | 64a20941d1738dacfd6d85099d4600253959ecb8 (diff) | |
download | freebsd-ports-gnome-6395164fc376897c86d6cb63d12f6a4b1264e7e5.tar.gz freebsd-ports-gnome-6395164fc376897c86d6cb63d12f6a4b1264e7e5.tar.zst freebsd-ports-gnome-6395164fc376897c86d6cb63d12f6a4b1264e7e5.zip |
Add libglade-java, Java wrappers around libglade-2.4.
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/libglade-java/Makefile | 75 | ||||
-rw-r--r-- | devel/libglade-java/distinfo | 2 | ||||
-rw-r--r-- | devel/libglade-java/files/patch-src_Makefile.in | 20 | ||||
-rw-r--r-- | devel/libglade-java/pkg-descr | 8 | ||||
-rw-r--r-- | devel/libglade-java/pkg-message | 7 | ||||
-rw-r--r-- | devel/libglade-java/pkg-plist | 4 |
7 files changed, 117 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index cf3531cfdc68..116c7f1eb95b 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -385,6 +385,7 @@ SUBDIR += libghthash SUBDIR += libgii SUBDIR += libglade + SUBDIR += libglade-java SUBDIR += libglade2 SUBDIR += libglademm SUBDIR += libgnugetopt diff --git a/devel/libglade-java/Makefile b/devel/libglade-java/Makefile new file mode 100644 index 000000000000..ed806e07f884 --- /dev/null +++ b/devel/libglade-java/Makefile @@ -0,0 +1,75 @@ +# New ports collection makefile for: libglade-java +# Date created: 28 February 2004 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= libglade-java +PORTVERSION= 2.3.7 +CATEGORIES= devel java +MASTER_SITES= ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.3 +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Java wrapper for libglade + +BUILD_DEPENDS= ${LOCALBASE}/share/java/classes/gtk${GTK_API_VERSION}-${GTK_JAVA_VERSION}.jar:${PORTSDIR}/x11-toolkits/libgtk-java \ + ${LOCALBASE}/share/java/classes/gnome${GNOME_API_VERSION}-${GNOME_JAVA_VERSION}.jar:${PORTSDIR}/x11/libgnome-java +RUN_DEPENDS= ${LOCALBASE}/share/java/classes/gtk${GTK_API_VERSION}-${GTK_JAVA_VERSION}.jar:${PORTSDIR}/x11-toolkits/libgtk-java \ + ${LOCALBASE}/share/java/classes/gnome${GNOME_API_VERSION}-${GNOME_JAVA_VERSION}.jar:${PORTSDIR}/x11/libgnome-java + +USE_BZIP2= yes +USE_XLIB= yes +USE_GMAKE= yes +GNU_CONFIGURE= yes +USE_JAVA= yes +JAVA_VERSION= 1.2+ +JAVA_OS= native +USE_GNOME= gnomehack libglade2 +USE_REINPLACE= yes +CONFIGURE_ARGS= --without-gcj-compile \ + --with-java-prefix=${JAVA_HOME} +CONFIGURE_ENV= DB2="/dev/null" + +GLADE_API_VERSION= 2.4 +GTK_API_VERSION= 2.4 +GNOME_API_VERSION= 2.6 +GTK_JAVA_VERSION= beta2 +GNOME_JAVA_VERSION= beta2 +VERSION= beta2 +PLIST_SUB= GLADE_API_VERSION=${GLADE_API_VERSION} \ + PORTVERSION=${VERSION} + +PKGMESSAGE= ${WRKDIR}/pkg-message + +post-patch: + @${REINPLACE_CMD} -e 's|^GTKJAR=.*|GTKJAR=${LOCALBASE}/share/java/classes/gtk${GTK_API_VERSION}-${GTK_JAVA_VERSION}.jar| ; \ + s|^GNOMEJAR=.*|GNOMEJAR=${LOCALBASE}/share/java/classes/gnome${GNOME_API_VERSION}-${GNOME_JAVA_VERSION}.jar|' \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|@gtkapiversion@|${GTK_API_VERSION}|g ; \ + s|@apiversion@|${GLADE_API_VERSION}|g ; \ + s|@version@|${VERSION}|g' \ + ${WRKSRC}/src/Makefile.in \ + ${WRKSRC}/src/java/org/gnu/glade/LibGlade.java.in + +do-install: + ${MKDIR} ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/lib/libgladejava${GLADE_API_VERSION}.so.${VERSION} \ + ${PREFIX}/lib + ${LN} -sf ${PREFIX}/lib/libgladejava${GLADE_API_VERSION}.so.${VERSION} ${PREFIX}/lib/libgladejava${GLADE_API_VERSION}.so + ${MKDIR} ${JAVAJARDIR} + ${INSTALL_DATA} ${WRKSRC}/lib/glade${GLADE_API_VERSION}-${VERSION}.jar \ + ${JAVAJARDIR} + ${LN} -sf ${JAVAJARDIR}/lib/glade${GLADE_API_VERSION}-${VERSION}.jar \ + ${JAVAJARDIR}/glade${GLADE_API_VERSION}.jar + +post-install: + @${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|g ; \ + s|%%PREFIX%%|${PREFIX}|g ; \ + s|%%GLADE_API_VERSION%%|${GLADE_API_VERSION}|g' \ + < ${PKGDIR}/pkg-message > ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/devel/libglade-java/distinfo b/devel/libglade-java/distinfo new file mode 100644 index 000000000000..189d029904da --- /dev/null +++ b/devel/libglade-java/distinfo @@ -0,0 +1,2 @@ +MD5 (gnome2/libglade-java-2.3.7.tar.bz2) = 22b803f9af4448a056381ff6a2103e3e +SIZE (gnome2/libglade-java-2.3.7.tar.bz2) = 52313 diff --git a/devel/libglade-java/files/patch-src_Makefile.in b/devel/libglade-java/files/patch-src_Makefile.in new file mode 100644 index 000000000000..de59543d67e2 --- /dev/null +++ b/devel/libglade-java/files/patch-src_Makefile.in @@ -0,0 +1,20 @@ +--- src/Makefile.in.orig Mon Mar 29 13:37:37 2004 ++++ src/Makefile.in Tue Mar 30 17:32:50 2004 +@@ -107,7 +107,7 @@ + COMPILED_CLASSES:=$(shell echo $(CLASSES) | sed -e 's=\.class=\.o=g' ) + + ../lib/glade${apiversion}.jar: $(CLASSES) +- @(cd build-java; $(JAR) cf ../../lib/glade${apiversion}-${version}.jar `find -name "*.class"` ) ++ @(cd build-java; $(JAR) cf ../../lib/glade${apiversion}-${version}.jar `find . -name "*.class"` ) + @(cd ../lib; test ! -L glade${apiversion}.jar && ln -s glade${apiversion}-${version}.jar glade${apiversion}.jar) || exit 0 + + jar: dirs ../lib/glade${apiversion}.jar +@@ -117,7 +117,7 @@ + @(test ! -d ../lib && mkdir ../lib) || exit 0 + $(CC) $(CFLAGS) -shared -o ../lib/libgladejava${apiversion}.so.${version} \ + $(OBJECTS) \ +- $(CFLAGS) @LIBGLADE_LIBS@ @LIBGLADE_CFLAGS@ $(JAVA_INCLUDES) -Xlinker --no-undefined ++ $(CFLAGS) @LIBGLADE_LIBS@ @LIBGLADE_CFLAGS@ $(JAVA_INCLUDES) -lc -Xlinker --no-undefined + @(cd ../lib; test ! -L libgladejava${apiversion}.so && ln -s libgladejava${apiversion}.so.${version} libgladejava${apiversion}.so) || exit 0 + + nativelib: ../lib/libgladejava${apiversion}.so.${version} diff --git a/devel/libglade-java/pkg-descr b/devel/libglade-java/pkg-descr new file mode 100644 index 000000000000..abc1cdd10d2f --- /dev/null +++ b/devel/libglade-java/pkg-descr @@ -0,0 +1,8 @@ +Java-GNOME is a set of Java bindings for GNOME and GTK libraries, +so GNOME applications can be written in Java. It is implemented +as a JNI layer that delegates the Java calls out to the underlying +C library. + +-- Java-GNOME README + +WWW: http://java-gnome.sourceforge.net/ diff --git a/devel/libglade-java/pkg-message b/devel/libglade-java/pkg-message new file mode 100644 index 000000000000..f5534e4a663b --- /dev/null +++ b/devel/libglade-java/pkg-message @@ -0,0 +1,7 @@ +************************************************************************ +Libglade-java was successfully installed. In order to build and run GTK+ +Java applications, you must add the following to your CLASSPATH: + +%%JAVAJARDIR%%/glade%%GLADE_API_VERSION%%.jar + +************************************************************************ diff --git a/devel/libglade-java/pkg-plist b/devel/libglade-java/pkg-plist new file mode 100644 index 000000000000..f84b43b9612f --- /dev/null +++ b/devel/libglade-java/pkg-plist @@ -0,0 +1,4 @@ +lib/libgladejava%%GLADE_API_VERSION%%.so +lib/libgladejava%%GLADE_API_VERSION%%.so.%%PORTVERSION%% +share/java/classes/glade%%GLADE_API_VERSION%%-%%PORTVERSION%%.jar +share/java/classes/glade%%GLADE_API_VERSION%%.jar |