From 851091fa7b201cffa4c93acdafb042b0e4b148c1 Mon Sep 17 00:00:00 2001 From: marcus Date: Sun, 29 Feb 2004 04:44:01 +0000 Subject: Add libgnome-java, the Java wrapper API for GNOME 2. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1927 df743ca5-7f9a-e211-a948-0013205c9059 --- x11/libgnome-java/Makefile | 65 +++++++++++++++++++++++++++ x11/libgnome-java/distinfo | 2 + x11/libgnome-java/files/patch-src_Makefile.in | 20 +++++++++ x11/libgnome-java/pkg-descr | 8 ++++ x11/libgnome-java/pkg-message | 7 +++ x11/libgnome-java/pkg-plist | 3 ++ 6 files changed, 105 insertions(+) create mode 100644 x11/libgnome-java/Makefile create mode 100644 x11/libgnome-java/distinfo create mode 100644 x11/libgnome-java/files/patch-src_Makefile.in create mode 100644 x11/libgnome-java/pkg-descr create mode 100644 x11/libgnome-java/pkg-message create mode 100644 x11/libgnome-java/pkg-plist diff --git a/x11/libgnome-java/Makefile b/x11/libgnome-java/Makefile new file mode 100644 index 000000000..e2aef3b22 --- /dev/null +++ b/x11/libgnome-java/Makefile @@ -0,0 +1,65 @@ +# New ports collection makefile for: libgnome-java +# Date created: 28 February 2004 +# Whom: Joe Marcus Clarke +# +# $FreeBSD$ +# + +PORTNAME= libgnome-java +PORTVERSION= 2.5.5 +CATEGORIES= devel java +MASTER_SITES= ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.5 +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Java wrapper for GNOME 2 + +BUILD_DEPENDS= ${LOCALBASE}/share/java/classes/gtk${GTK_API_VERSION}-${GTK_JAVA_VERSION}.jar:${PORTSDIR}/x11-toolkits/libgtk-java +RUN_DEPENDS= ${LOCALBASE}/share/java/classes/gtk${GTK_API_VERSION}-${GTK_JAVA_VERSION}.jar:${PORTSDIR}/x11-toolkits/libgtk-java + +USE_BZIP2= yes +USE_XLIB= yes +USE_GMAKE= yes +GNU_CONFIGURE= yes +USE_JAVA= 1.2+ +USE_GNOME= gnomehack libgnomeui +USE_REINPLACE= yes +CONFIGURE_ARGS= --without-gcj-compile \ + --with-java-prefix=${JAVA_HOME} +CONFIGURE_ENV= DB2="/dev/null" + +GNOME_API_VERSION= 2.5 +GTK_API_VERSION= 2.3 +GTK_JAVA_VERSION= 2.3.5 +PLIST_SUB= GNOME_API_VERSION=${GNOME_API_VERSION} \ + PORTVERSION=${PORTVERSION} + +PKGMESSAGE= ${WRKDIR}/pkg-message + +post-patch: + @${REINPLACE_CMD} -e 's|^GTKJAR=.*|GTKJAR=${LOCALBASE}/share/java/classes/gtk${GTK_API_VERSION}-${GTK_JAVA_VERSION}.jar|' \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|@gtkapiversion@|${GTK_API_VERSION}|g ; \ + s|@apiversion@|${GNOME_API_VERSION}|g ; \ + s|@version@|${PORTVERSION}|g' \ + ${WRKSRC}/src/Makefile.in + +do-install: + ${MKDIR} ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/lib/libgnomejava${GNOME_API_VERSION}.so.${PORTVERSION} \ + ${PREFIX}/lib + ${LN} -sf ${PREFIX}/lib/libgnomejava${GNOME_API_VERSION}.so.${PORTVERSION} ${PREFIX}/lib/libgconfjava${GNOME_API_VERSION}.so + ${MKDIR} ${JAVAJARDIR} + ${INSTALL_DATA} ${WRKSRC}/lib/gnome${GNOME_API_VERSION}-${PORTVERSION}.jar \ + ${JAVAJARDIR} + +post-install: + @${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|g ; \ + s|%%PREFIX%%|${PREFIX}|g ; \ + s|%%PORTVERSION%%|${PORTVERSION}|g ; \ + s|%%GNOME_API_VERSION%%|${GNOME_API_VERSION}|g' \ + < ${PKGDIR}/pkg-message > ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} + +.include diff --git a/x11/libgnome-java/distinfo b/x11/libgnome-java/distinfo new file mode 100644 index 000000000..9c81a9947 --- /dev/null +++ b/x11/libgnome-java/distinfo @@ -0,0 +1,2 @@ +MD5 (gnome2/libgnome-java-2.5.5.tar.bz2) = ff75cd4398108c8ea8efaa8739a57495 +SIZE (gnome2/libgnome-java-2.5.5.tar.bz2) = 98703 diff --git a/x11/libgnome-java/files/patch-src_Makefile.in b/x11/libgnome-java/files/patch-src_Makefile.in new file mode 100644 index 000000000..ccc19bdfa --- /dev/null +++ b/x11/libgnome-java/files/patch-src_Makefile.in @@ -0,0 +1,20 @@ +--- src/Makefile.in.orig Sat Feb 28 21:32:46 2004 ++++ src/Makefile.in Sat Feb 28 21:43:36 2004 +@@ -105,7 +106,7 @@ + COMPILED_CLASSES:=$(shell echo $(CLASSES) | sed -e 's=\.class=\.o=g' ) + + ../lib/gnome${apiversion}.jar: $(CLASSES) +- @(cd build-java; $(JAR) cf ../../lib/gnome${apiversion}-${version}.jar `find -name "*.class"` ) ++ @(cd build-java; $(JAR) cf ../../lib/gnome${apiversion}-${version}.jar `find . -name "*.class"` ) + @(cd ../lib; test ! -L gnome${apiversion}.jar && ln -s gnome${apiversion}-${version}.jar gnome${apiversion}.jar) || exit 0 + + jar: dirs ../lib/gnome${apiversion}.jar +@@ -116,7 +117,7 @@ + $(CC) $(CFLAGS) -shared -o ../lib/libgnomejava${apiversion}.so.${version} \ + -L@JG_GTK_LIB_PATH@ -lgtkjava${gtkapiversion} \ + $(OBJECTS) \ +- $(CFLAGS) @GNOME_LIBS@ @GNOME_CFLAGS@ @GTK_LIBS@ @GTK_CFLAGS@ $(JAVA_INCLUDES) -Xlinker --no-undefined ++ $(CFLAGS) @GNOME_LIBS@ @GNOME_CFLAGS@ @GTK_LIBS@ @GTK_CFLAGS@ $(JAVA_INCLUDES) -Xlinker -lc --no-undefined + @(cd ../lib; test ! -L libgnomejava${apiversion}.so && ln -s libgnomejava${apiversion}.so.${version} libgnomejava${apiversion}.so) || exit 0 + + nativelib: ../lib/libgnomejava${apiversion}.so.${version} diff --git a/x11/libgnome-java/pkg-descr b/x11/libgnome-java/pkg-descr new file mode 100644 index 000000000..abc1cdd10 --- /dev/null +++ b/x11/libgnome-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/x11/libgnome-java/pkg-message b/x11/libgnome-java/pkg-message new file mode 100644 index 000000000..0b5e4eed3 --- /dev/null +++ b/x11/libgnome-java/pkg-message @@ -0,0 +1,7 @@ +************************************************************************ +Libgnome-java was successfully installed. In order to build and run GTK+ +Java applications, you must add the following to your CLASSPATH: + +%%JAVAJARDIR%%/gnome%%GNOME_API_VERSION%%-%%PORTVERSION%%.jar + +************************************************************************ diff --git a/x11/libgnome-java/pkg-plist b/x11/libgnome-java/pkg-plist new file mode 100644 index 000000000..d5a173a64 --- /dev/null +++ b/x11/libgnome-java/pkg-plist @@ -0,0 +1,3 @@ +lib/libgconfjava%%GNOME_API_VERSION%%.so +lib/libgnomejava%%GNOME_API_VERSION%%.so.%%PORTVERSION%% +share/java/classes/gnome%%GNOME_API_VERSION%%-%%PORTVERSION%%.jar -- cgit v1.2.3