diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-12-23 14:54:42 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2003-12-23 14:54:42 +0800 |
commit | bee8127d392cb92bee5f1e57c36105bc45fd13e9 (patch) | |
tree | 927e9d5aae5d1612b6625f839df591e55f8cbffe /x11-toolkits | |
parent | 0f6cc343e416dd303e3f81426a2810db3e499664 (diff) | |
download | marcuscom-ports-bee8127d392cb92bee5f1e57c36105bc45fd13e9.tar marcuscom-ports-bee8127d392cb92bee5f1e57c36105bc45fd13e9.tar.gz marcuscom-ports-bee8127d392cb92bee5f1e57c36105bc45fd13e9.tar.bz2 marcuscom-ports-bee8127d392cb92bee5f1e57c36105bc45fd13e9.tar.lz marcuscom-ports-bee8127d392cb92bee5f1e57c36105bc45fd13e9.tar.xz marcuscom-ports-bee8127d392cb92bee5f1e57c36105bc45fd13e9.tar.zst marcuscom-ports-bee8127d392cb92bee5f1e57c36105bc45fd13e9.zip |
Add libgtk-java, Java bindings for gtk+-2.x.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1520 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/libgtk-java/Makefile | 38 | ||||
-rw-r--r-- | x11-toolkits/libgtk-java/distinfo | 1 | ||||
-rw-r--r-- | x11-toolkits/libgtk-java/files/patch-Makefile.in | 11 | ||||
-rw-r--r-- | x11-toolkits/libgtk-java/files/patch-gtk_src_Makefile.in | 22 | ||||
-rw-r--r-- | x11-toolkits/libgtk-java/pkg-descr | 8 | ||||
-rw-r--r-- | x11-toolkits/libgtk-java/pkg-plist | 2 |
6 files changed, 82 insertions, 0 deletions
diff --git a/x11-toolkits/libgtk-java/Makefile b/x11-toolkits/libgtk-java/Makefile new file mode 100644 index 000000000..b7a6c5b6c --- /dev/null +++ b/x11-toolkits/libgtk-java/Makefile @@ -0,0 +1,38 @@ +# New ports collection makefile for: libgtk-java +# Date created: 22 December 2003 +# Whom: Joe Marcus Clarke <marcus@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= libgtk-java +PORTVERSION= 2.3.1 +CATEGORIES= x11-toolkits java +MASTER_SITES= ${MASTER_SITE_GNOME} +MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.3 +DIST_SUBDIR= gnome2 + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Java wrapper for Gtk+, Pango, Atk, and Glib + +USE_BZIP2= yes +USE_XLIB= yes +USE_GMAKE= yes +GNU_CONFIGURE= yes +USE_JAVA= 1.2+ +USE_REINPLACE= yes +USE_GNOME= gnomehack gtk20 +CONFIGURE_ARGS= --without-gcj-compile \ + --with-java-prefix=${JAVA_HOME} + +API_VERSION= 2.3 + +do-install: + ${MKDIR} ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/gtk/lib/libgtkjava${API_VERSION}.so.${PORTVERSION} \ + ${PREFIX}/lib + ${MKDIR} ${JAVAJARDIR} + ${INSTALL_DATA} ${WRKSRC}/gtk/lib/gtk${API_VERSION}-${PORTVERSION}.jar \ + ${JAVAJARDIR} + +.include <bsd.port.mk> diff --git a/x11-toolkits/libgtk-java/distinfo b/x11-toolkits/libgtk-java/distinfo new file mode 100644 index 000000000..37c2f3d25 --- /dev/null +++ b/x11-toolkits/libgtk-java/distinfo @@ -0,0 +1 @@ +MD5 (gnome2/libgtk-java-2.3.1.tar.bz2) = 53f7f6eaedccb6e8abf98f192db93182 diff --git a/x11-toolkits/libgtk-java/files/patch-Makefile.in b/x11-toolkits/libgtk-java/files/patch-Makefile.in new file mode 100644 index 000000000..ef9861ee5 --- /dev/null +++ b/x11-toolkits/libgtk-java/files/patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig Tue Dec 23 00:25:42 2003 ++++ Makefile.in Tue Dec 23 00:25:51 2003 +@@ -32,7 +32,7 @@ + + install: + for MODULE in $(MODULES); do \ +- $(MAKE) -C $$MODULE install \ ++ $(MAKE) -C $$MODULE install ; \ + done + + mostlyclean: diff --git a/x11-toolkits/libgtk-java/files/patch-gtk_src_Makefile.in b/x11-toolkits/libgtk-java/files/patch-gtk_src_Makefile.in new file mode 100644 index 000000000..10523f38c --- /dev/null +++ b/x11-toolkits/libgtk-java/files/patch-gtk_src_Makefile.in @@ -0,0 +1,22 @@ +--- gtk/src/Makefile.in.orig Tue Dec 23 00:13:53 2003 ++++ gtk/src/Makefile.in Tue Dec 23 00:24:04 2003 +@@ -77,9 +77,7 @@ + .SUFFIXES: .java .class + + .c.o: +- $(CC) -c $(CFLAGS) $< -o $@ $(JAVA_INCLUDES) $(GTK_CFLAGS) \ +- $(LIBGTKHTML_CFLAGS) $(GNOME_CFLAGS) $(LIBGLADE_CFLAGS) +- #-D@MACRO_FLAG@ ++ $(CC) -c $(CFLAGS) $< -o $@ $(JAVA_INCLUDES) $(GTK_CFLAGS) + + .java.o: + $(GCJ) $(GCJFLAGS) -g -O --classpath=${GCJ_CLASSPATH} -o $@ -c $< +@@ -146,7 +144,7 @@ + @(test ! -d ../lib && mkdir ../lib) || exit 0 + $(CC) $(CFLAGS) -shared -o ../lib/libgtkjava${gtkapiversion}.so.${gtkversion} \ + $(OBJECTS) \ +- $(CFLAGS) $(GTK_LIBS) $(JAVA_INCLUDES) -Xlinker --no-undefined ++ $(CFLAGS) $(GTK_LIBS) -lc $(JAVA_INCLUDES) -Xlinker --no-undefined + @(cd ../lib; test ! -L libgtkjava${gtkapiversion}.so && ln -s libgtkjava${gtkapiversion}.so.${gtkversion} libgtkjava${gtkapiversion}.so) || exit 0 + + nativelib: ../lib/libgtkjava${gtkapiversion}.so.${gtkversion} diff --git a/x11-toolkits/libgtk-java/pkg-descr b/x11-toolkits/libgtk-java/pkg-descr new file mode 100644 index 000000000..abc1cdd10 --- /dev/null +++ b/x11-toolkits/libgtk-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-toolkits/libgtk-java/pkg-plist b/x11-toolkits/libgtk-java/pkg-plist new file mode 100644 index 000000000..4454e0ee2 --- /dev/null +++ b/x11-toolkits/libgtk-java/pkg-plist @@ -0,0 +1,2 @@ +lib/libgtkjava2.3.so.2.3.1 +share/java/classes/gtk2.3-2.3.1.jar |