aboutsummaryrefslogtreecommitdiff
path: root/x11/libgnome-java
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2004-04-05 04:04:22 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2004-04-05 04:04:22 +0000
commit93ca4b335685f24a37559cee66e8435af38af16d (patch)
treeadeb9c09c869ecea24deddaf745ff8d44951b2ba /x11/libgnome-java
parentc94593c01403731941b40152bb09bbe2e6c8524c (diff)
downloadports-93ca4b335685f24a37559cee66e8435af38af16d.tar.gz
ports-93ca4b335685f24a37559cee66e8435af38af16d.zip
Notes
Diffstat (limited to 'x11/libgnome-java')
-rw-r--r--x11/libgnome-java/Makefile71
-rw-r--r--x11/libgnome-java/distinfo2
-rw-r--r--x11/libgnome-java/files/patch-src_Makefile.in20
-rw-r--r--x11/libgnome-java/pkg-descr8
-rw-r--r--x11/libgnome-java/pkg-message7
-rw-r--r--x11/libgnome-java/pkg-plist4
6 files changed, 112 insertions, 0 deletions
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