diff options
author | marcus <marcus@FreeBSD.org> | 2004-04-05 12:04:22 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2004-04-05 12:04:22 +0800 |
commit | 586976b8f5a5c86b39299c9981d4db6daf6b7df9 (patch) | |
tree | 69b3144cf51456b1db7a47e3b5ee56204c623d31 | |
parent | 6395164fc376897c86d6cb63d12f6a4b1264e7e5 (diff) | |
download | freebsd-ports-gnome-586976b8f5a5c86b39299c9981d4db6daf6b7df9.tar.gz freebsd-ports-gnome-586976b8f5a5c86b39299c9981d4db6daf6b7df9.tar.zst freebsd-ports-gnome-586976b8f5a5c86b39299c9981d4db6daf6b7df9.zip |
Add libgnome-java, Java wrappers around libgnome-2.6.
-rw-r--r-- | x11/Makefile | 1 | ||||
-rw-r--r-- | x11/libgnome-java/Makefile | 71 | ||||
-rw-r--r-- | x11/libgnome-java/distinfo | 2 | ||||
-rw-r--r-- | x11/libgnome-java/files/patch-src_Makefile.in | 20 | ||||
-rw-r--r-- | x11/libgnome-java/pkg-descr | 8 | ||||
-rw-r--r-- | x11/libgnome-java/pkg-message | 7 | ||||
-rw-r--r-- | x11/libgnome-java/pkg-plist | 4 |
7 files changed, 113 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile index afdd924d49a7..59571a24fccd 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -101,6 +101,7 @@ SUBDIR += libcapplet SUBDIR += libdnd SUBDIR += libgnome + SUBDIR += libgnome-java SUBDIR += libgnomemm SUBDIR += libsx SUBDIR += libxfce4mcs diff --git a/x11/libgnome-java/Makefile b/x11/libgnome-java/Makefile new file mode 100644 index 000000000000..c92241bebc08 --- /dev/null +++ b/x11/libgnome-java/Makefile @@ -0,0 +1,71 @@ +# New ports collection makefile for: libgnome-java +# Date created: 28 February 2004 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= libgnome-java +PORTVERSION= 2.5.7 +CATEGORIES= x11 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= yes +JAVA_VERSION= 1.2+ +JAVA_OS= native +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.6 +GTK_API_VERSION= 2.4 +GTK_JAVA_VERSION= beta2 +VERSION= beta2 +PLIST_SUB= GNOME_API_VERSION=${GNOME_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|' \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -e 's|@gtkapiversion@|${GTK_API_VERSION}|g ; \ + s|@apiversion@|${GNOME_API_VERSION}|g ; \ + s|@version@|${VERSION}|g' \ + ${WRKSRC}/src/Makefile.in \ + ${WRKSRC}/src/java/org/gnu/gnome/Gnome.java.in \ + ${WRKSRC}/src/java/org/gnu/gnome/Program.java.in + +do-install: + ${MKDIR} ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/lib/libgnomejava${GNOME_API_VERSION}.so.${VERSION} \ + ${PREFIX}/lib + ${LN} -sf ${PREFIX}/lib/libgnomejava${GNOME_API_VERSION}.so.${VERSION} ${PREFIX}/lib/libgnomejava${GNOME_API_VERSION}.so + ${MKDIR} ${JAVAJARDIR} + ${INSTALL_DATA} ${WRKSRC}/lib/gnome${GNOME_API_VERSION}-${VERSION}.jar \ + ${JAVAJARDIR} + ${LN} -sf ${JAVAJARDIR}/gnome${GNOME_API_VERSION}-${VERSION}.jar \ + ${JAVAJARDIR}/gnome${GNOME_API_VERSION}.jar + +post-install: + @${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|g ; \ + s|%%PREFIX%%|${PREFIX}|g ; \ + s|%%GNOME_API_VERSION%%|${GNOME_API_VERSION}|g' \ + < ${PKGDIR}/pkg-message > ${PKGMESSAGE} + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/x11/libgnome-java/distinfo b/x11/libgnome-java/distinfo new file mode 100644 index 000000000000..bdb7a1632b1b --- /dev/null +++ b/x11/libgnome-java/distinfo @@ -0,0 +1,2 @@ +MD5 (gnome2/libgnome-java-2.5.7.tar.bz2) = 875030948a5addf6849822d6afeaac25 +SIZE (gnome2/libgnome-java-2.5.7.tar.bz2) = 101076 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 000000000000..ccc19bdfaff5 --- /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 000000000000..abc1cdd10d2f --- /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 000000000000..64a47f1992bc --- /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%%.jar + +************************************************************************ diff --git a/x11/libgnome-java/pkg-plist b/x11/libgnome-java/pkg-plist new file mode 100644 index 000000000000..2c26a4568df5 --- /dev/null +++ b/x11/libgnome-java/pkg-plist @@ -0,0 +1,4 @@ +lib/libgnomejava%%GNOME_API_VERSION%%.so +lib/libgnomejava%%GNOME_API_VERSION%%.so.%%PORTVERSION%% +share/java/classes/gnome%%GNOME_API_VERSION%%-%%PORTVERSION%%.jar +share/java/classes/gnome%%GNOME_API_VERSION%%.jar |