aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-04-05 12:02:06 +0800
committermarcus <marcus@FreeBSD.org>2004-04-05 12:02:06 +0800
commit64a20941d1738dacfd6d85099d4600253959ecb8 (patch)
tree37763a04d20d70d5ad9d6d9e6bf0c0ee72d142d5 /devel
parent9bf309dcc2d2cb0f6ff3a539fab96da1bd255149 (diff)
downloadfreebsd-ports-gnome-64a20941d1738dacfd6d85099d4600253959ecb8.tar.gz
freebsd-ports-gnome-64a20941d1738dacfd6d85099d4600253959ecb8.tar.zst
freebsd-ports-gnome-64a20941d1738dacfd6d85099d4600253959ecb8.zip
Add libgconf-java, Java wrappers around GConf 2.4.
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/libgconf-java/Makefile65
-rw-r--r--devel/libgconf-java/distinfo2
-rw-r--r--devel/libgconf-java/files/patch-src_Makefile.in27
-rw-r--r--devel/libgconf-java/files/patch-src_jni_org_gnu_gconf_ConfValue.c13
-rw-r--r--devel/libgconf-java/pkg-descr8
-rw-r--r--devel/libgconf-java/pkg-message7
-rw-r--r--devel/libgconf-java/pkg-plist4
8 files changed, 127 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index f145956fb66c..cf3531cfdc68 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -380,6 +380,7 @@
SUBDIR += libformat
SUBDIR += libfs++
SUBDIR += libg++
+ SUBDIR += libgconf-java
SUBDIR += libgetline
SUBDIR += libghthash
SUBDIR += libgii
diff --git a/devel/libgconf-java/Makefile b/devel/libgconf-java/Makefile
new file mode 100644
index 000000000000..990019182700
--- /dev/null
+++ b/devel/libgconf-java/Makefile
@@ -0,0 +1,65 @@
+# New ports collection makefile for: libgconf-java
+# Date created: 09 January 2004
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libgconf-java
+PORTVERSION= 2.5.7
+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 GConf
+
+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 gconf2
+USE_REINPLACE= yes
+CONFIGURE_ARGS= --without-gcj-compile \
+ --with-java-prefix=${JAVA_HOME}
+CONFIGURE_ENV= DB2="/dev/null"
+
+GCONF_API_VERSION= 2.6
+GTK_API_VERSION= 2.4
+VERSION= beta2
+GTK_JAVA_VERSION= beta2
+PLIST_SUB= GCONF_API_VERSION=${GCONF_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
+
+do-install:
+ ${MKDIR} ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/lib/libgconfjava${GCONF_API_VERSION}.so.${VERSION} \
+ ${PREFIX}/lib
+ ${LN} -sf ${PREFIX}/lib/libgconfjava${GCONF_API_VERSION}.so.${VERSION} ${PREFIX}/lib/libgconfjava${GCONF_API_VERSION}.so
+ ${MKDIR} ${JAVAJARDIR}
+ ${INSTALL_DATA} ${WRKSRC}/lib/gconf${GCONF_API_VERSION}-${VERSION}.jar \
+ ${JAVAJARDIR}
+ ${LN} -sf ${JAVAJARDIR}/gconf${GCONF_API_VERSION}-${VERSION}.jar \
+ ${JAVAJARDIR}/gconf${GCONF_API_VERSION}.jar
+
+post-install:
+ @${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|g ; \
+ s|%%PREFIX%%|${PREFIX}|g ; \
+ s|%%GCONF_API_VERSION%%|${GCONF_API_VERSION}|g' \
+ < ${PKGDIR}/pkg-message > ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/devel/libgconf-java/distinfo b/devel/libgconf-java/distinfo
new file mode 100644
index 000000000000..389a15ad0d8f
--- /dev/null
+++ b/devel/libgconf-java/distinfo
@@ -0,0 +1,2 @@
+MD5 (gnome2/libgconf-java-2.5.7.tar.bz2) = c241eb2ba722009d1bd26b1a0503030f
+SIZE (gnome2/libgconf-java-2.5.7.tar.bz2) = 52253
diff --git a/devel/libgconf-java/files/patch-src_Makefile.in b/devel/libgconf-java/files/patch-src_Makefile.in
new file mode 100644
index 000000000000..c954fde513a6
--- /dev/null
+++ b/devel/libgconf-java/files/patch-src_Makefile.in
@@ -0,0 +1,27 @@
+--- src/Makefile.in.orig Tue Mar 30 17:05:19 2004
++++ src/Makefile.in Tue Mar 30 17:06:06 2004
+@@ -60,6 +60,7 @@
+ LIBGTKHTML_LIBS=@LIBGTKHTML_LIBS@
+ GNOME_CFLAGS=@GNOME_CFLAGS@
+ GNOME_LIBS=@GNOME_LIBS@
++GCONF_CFLAGS=@GCONF_CFLAGS@
+ LIBGLADE_CFLAGS=@LIBGLADE_CFLAGS@
+ LIBGLADE_LIBS=@LIBGLADE_LIBS@
+ GCJ=@GCJ@ -fPIC -fjni
+@@ -71,6 +72,7 @@
+ .c.o:
+ $(CC) -c $(CFLAGS) $< $(JAVA_INCLUDES) $(GTK_CFLAGS) \
+ $(LIBGTKHTML_CFLAGS) $(GNOME_CFLAGS) $(LIBGLADE_CFLAGS) \
++ $(GCONF_CFLAGS) \
+ \
+ -o $@
+
+@@ -106,7 +108,7 @@
+ COMPILED_CLASSES:=$(shell echo $(CLASSES) | sed -e 's=\.class=\.o=g' )
+
+ ../lib/gconf${apiversion}.jar: $(CLASSES)
+- @(cd build-java; $(JAR) cf ../../lib/gconf${apiversion}-${version}.jar `find -name "*.class"` )
++ @(cd build-java; $(JAR) cf ../../lib/gconf${apiversion}-${version}.jar `find . -name "*.class"` )
+ @(cd ../lib; test ! -L gconf${apiversion}.jar && ln -s gconf${apiversion}-${version}.jar gconf${apiversion}.jar) || exit 0
+
+ jar: dirs ../lib/gconf${apiversion}.jar
diff --git a/devel/libgconf-java/files/patch-src_jni_org_gnu_gconf_ConfValue.c b/devel/libgconf-java/files/patch-src_jni_org_gnu_gconf_ConfValue.c
new file mode 100644
index 000000000000..45e65648aad8
--- /dev/null
+++ b/devel/libgconf-java/files/patch-src_jni_org_gnu_gconf_ConfValue.c
@@ -0,0 +1,13 @@
+--- src/jni/org_gnu_gconf_ConfValue.c.orig Thu Feb 19 16:19:17 2004
++++ src/jni/org_gnu_gconf_ConfValue.c Thu Feb 19 16:19:46 2004
+@@ -111,8 +111,9 @@
+ jclass aCls = NULL;
+ guint len;
+ jobjectArray ar;
++ GConfValueType vt;
+ len = g_slist_length(list);
+- GConfValueType vt = gconf_value_get_list_type((GConfValue*)value);
++ vt = gconf_value_get_list_type((GConfValue*)value);
+ if (vt == GCONF_VALUE_STRING)
+ aCls = (*env)->FindClass(env, "java/lang/String");
+ else if (vt == GCONF_VALUE_INT)
diff --git a/devel/libgconf-java/pkg-descr b/devel/libgconf-java/pkg-descr
new file mode 100644
index 000000000000..abc1cdd10d2f
--- /dev/null
+++ b/devel/libgconf-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/libgconf-java/pkg-message b/devel/libgconf-java/pkg-message
new file mode 100644
index 000000000000..651dad538d33
--- /dev/null
+++ b/devel/libgconf-java/pkg-message
@@ -0,0 +1,7 @@
+************************************************************************
+Libgconf-java was successfully installed. In order to build and run GTK+
+Java applications, you must add the following to your CLASSPATH:
+
+%%JAVAJARDIR%%/gconf%%GCONF_API_VERSION%%.jar
+
+************************************************************************
diff --git a/devel/libgconf-java/pkg-plist b/devel/libgconf-java/pkg-plist
new file mode 100644
index 000000000000..bd5a55f13b38
--- /dev/null
+++ b/devel/libgconf-java/pkg-plist
@@ -0,0 +1,4 @@
+lib/libgconfjava%%GCONF_API_VERSION%%.so
+lib/libgconfjava%%GCONF_API_VERSION%%.so.%%PORTVERSION%%
+share/java/classes/gconf%%GCONF_API_VERSION%%-%%PORTVERSION%%.jar
+share/java/classes/gconf%%GCONF_API_VERSION%%.jar