diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-04-05 04:03:12 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-04-05 04:03:12 +0000 |
commit | c94593c01403731941b40152bb09bbe2e6c8524c (patch) | |
tree | 06eff01ba0aa3c3d81927fcbbcc40b0893bcdcc9 /devel/libglade-java | |
parent | 6d2bcba1c7905b3b43cbafc08ce19dd67f80e85c (diff) | |
download | ports-c94593c01403731941b40152bb09bbe2e6c8524c.tar.gz ports-c94593c01403731941b40152bb09bbe2e6c8524c.zip |
Notes
Diffstat (limited to 'devel/libglade-java')
-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 |
6 files changed, 116 insertions, 0 deletions
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 |