aboutsummaryrefslogtreecommitdiffstats
path: root/devel/glib-java
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2005-11-05 13:56:43 +0800
committermarcus <marcus@FreeBSD.org>2005-11-05 13:56:43 +0800
commit3200e78b2aebf9cc09912fdb15fb047eeb53767a (patch)
tree649ff871dcee262363ed8dbac3d39f9622952388 /devel/glib-java
parent6be86957415f1e179a0f195342dfc39f70afb5f8 (diff)
downloadfreebsd-ports-gnome-3200e78b2aebf9cc09912fdb15fb047eeb53767a.tar.gz
freebsd-ports-gnome-3200e78b2aebf9cc09912fdb15fb047eeb53767a.tar.zst
freebsd-ports-gnome-3200e78b2aebf9cc09912fdb15fb047eeb53767a.zip
Add glib-java, a set of Java wrapper libraries around glib-2.
WWW: http://java-gnome.sourceforge.net/
Diffstat (limited to 'devel/glib-java')
-rw-r--r--devel/glib-java/Makefile66
-rw-r--r--devel/glib-java/distinfo2
-rw-r--r--devel/glib-java/files/patch-configure11
-rw-r--r--devel/glib-java/files/patch-glib-java.pc.in10
-rw-r--r--devel/glib-java/pkg-descr8
-rw-r--r--devel/glib-java/pkg-message7
-rw-r--r--devel/glib-java/pkg-plist50
7 files changed, 154 insertions, 0 deletions
diff --git a/devel/glib-java/Makefile b/devel/glib-java/Makefile
new file mode 100644
index 000000000000..a84a562aab03
--- /dev/null
+++ b/devel/glib-java/Makefile
@@ -0,0 +1,66 @@
+# New ports collection makefile for: glib-java
+# Date created: 26 Oct 2005
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom: ports/devel/glib-java/Makefile,v 1.2 2005/10/29 22:06:05 marcus Exp $
+#
+
+PORTNAME= glib-java
+PORTVERSION= 0.2.1
+CATEGORIES= devel java
+MASTER_SITES= ${MASTER_SITE_GNOME}
+MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.2
+DIST_SUBDIR= gnome2
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Java wrapper GLib 2
+
+USE_BZIP2= yes
+USE_GMAKE= yes
+INSTALLS_SHLIB= yes
+USE_AUTOTOOLS= libtool:15
+USE_JAVA= yes
+JAVA_VERSION= 1.2+
+JAVA_OS= native
+USE_GCC= 3.4+
+USE_GNOME= gnomehack glib20
+USE_REINPLACE= yes
+CONFIGURE_ARGS= --without-gcj-compile
+CONFIGURE_ENV= CPPFLAGS="-I${JAVA_HOME}/include -I${JAVA_HOME}/include/freebsd"
+GLIB_API_VERSION= 0.2
+PLIST_SUB= GLIB_API_VERSION=${GLIB_API_VERSION} PORTNAME=${PORTNAME}
+PKGMESSAGE= ${WRKDIR}/pkg-message
+
+do-install:
+ ${MKDIR} ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/.libs/libglibjni-${GLIB_API_VERSION}.so \
+ ${PREFIX}/lib/libglibjni-${GLIB_API_VERSION}.so.1
+ ${LN} -sf ${PREFIX}/lib/libglibjni-${GLIB_API_VERSION}.so.1 \
+ ${PREFIX}/lib/libglibjni-${GLIB_API_VERSION}.so
+ ${MKDIR} ${PREFIX}/libdata/pkgconfig
+ ${INSTALL_DATA} ${WRKSRC}/glib-java.pc ${PREFIX}/libdata/pkgconfig
+ ${MKDIR} ${PREFIX}/include/${PORTNAME}
+ ${INSTALL_DATA} ${WRKSRC}/src/jni/jg_jnu.h ${PREFIX}/include/${PORTNAME}
+ ${MKDIR} ${JAVAJARDIR}
+ ${INSTALL_DATA} ${WRKSRC}/glib${GLIB_API_VERSION}.jar ${JAVAJARDIR}
+ ${MKDIR} ${PREFIX}/share/${PORTNAME}/macros
+ ${INSTALL_DATA} ${WRKSRC}/macros/* ${PREFIX}/share/${PORTNAME}/macros
+
+post-install:
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+ ${MKDIR} ${DOCSDIR}/api
+ cd ${WRKSRC}/doc/api && ${FIND} . | ${CPIO} -pdmu ${DOCSDIR}/api
+.endif
+ @${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|g ; \
+ s|%%PREFIX%%|${PREFIX}|g ; \
+ s|%%GLIB_API_VERSION%%|${GLIB_API_VERSION}|g' \
+ < ${PKGDIR}/pkg-message > ${PKGMESSAGE}
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/devel/glib-java/distinfo b/devel/glib-java/distinfo
new file mode 100644
index 000000000000..620d0089e6b8
--- /dev/null
+++ b/devel/glib-java/distinfo
@@ -0,0 +1,2 @@
+MD5 (gnome2/glib-java-0.2.1.tar.bz2) = 6ef51b570946d86a3c7ea0c280979fdd
+SIZE (gnome2/glib-java-0.2.1.tar.bz2) = 225699
diff --git a/devel/glib-java/files/patch-configure b/devel/glib-java/files/patch-configure
new file mode 100644
index 000000000000..40f26900d0e7
--- /dev/null
+++ b/devel/glib-java/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Wed Oct 26 21:01:20 2005
++++ configure Wed Oct 26 21:01:45 2005
+@@ -20254,7 +20254,7 @@
+
+ WINDOWS_LIB_VERSION="0-2"
+
+-INSTALLED_CLASSPATH=\${prefix}/share/java/glib${apiversion}-${VERSION}.jar
++INSTALLED_CLASSPATH=\${prefix}/share/java/classes/glib${apiversion}.jar
+ INSTALLED_JNI_DIR=\${prefix}/lib/
+ INSTALLED_MACRO_DIR=\${prefix}/share/glib-java/macros/
+
diff --git a/devel/glib-java/files/patch-glib-java.pc.in b/devel/glib-java/files/patch-glib-java.pc.in
new file mode 100644
index 000000000000..70967773ed62
--- /dev/null
+++ b/devel/glib-java/files/patch-glib-java.pc.in
@@ -0,0 +1,10 @@
+--- glib-java.pc.in.orig Mon Sep 12 21:43:43 2005
++++ glib-java.pc.in Wed Oct 26 20:39:34 2005
+@@ -10,6 +10,6 @@
+ api_version=@apiversion@
+ classpath=@INSTALLED_CLASSPATH@
+ macro_dir=@INSTALLED_MACRO_DIR@
+-jnilibs=-L@libdir@ -lglibjni
++jnilibs=-L@libdir@ -lglibjni-@apiversion@
+ Libs: -L@libdir@ -lglibjava
+ Cflags: -I@includedir@/glib-java
diff --git a/devel/glib-java/pkg-descr b/devel/glib-java/pkg-descr
new file mode 100644
index 000000000000..abc1cdd10d2f
--- /dev/null
+++ b/devel/glib-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/glib-java/pkg-message b/devel/glib-java/pkg-message
new file mode 100644
index 000000000000..b5be2203ca3b
--- /dev/null
+++ b/devel/glib-java/pkg-message
@@ -0,0 +1,7 @@
+************************************************************************
+Libgtk-java was successfully installed. In order to build and run GLib
+Java applications, you must add the following to your CLASSPATH:
+
+%%JAVAJARDIR%%/glib%%GLIB_API_VERSION%%.jar
+
+************************************************************************
diff --git a/devel/glib-java/pkg-plist b/devel/glib-java/pkg-plist
new file mode 100644
index 000000000000..cc09eec12423
--- /dev/null
+++ b/devel/glib-java/pkg-plist
@@ -0,0 +1,50 @@
+include/%%PORTNAME%%/jg_jnu.h
+lib/libglibjni-%%GLIB_API_VERSION%%.so
+lib/libglibjni-%%GLIB_API_VERSION%%.so.1
+libdata/pkgconfig/%%PORTNAME%%.pc
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/api/allclasses-frame.html
+%%PORTDOCS%%%%DOCSDIR%%/api/allclasses-noframe.html
+%%PORTDOCS%%%%DOCSDIR%%/api/constant-values.html
+%%PORTDOCS%%%%DOCSDIR%%/api/deprecated-list.html
+%%PORTDOCS%%%%DOCSDIR%%/api/help-doc.html
+%%PORTDOCS%%%%DOCSDIR%%/api/index-all.html
+%%PORTDOCS%%%%DOCSDIR%%/api/index.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/gnu/glib/Config.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/gnu/glib/Enum.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/gnu/glib/Flags.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/gnu/glib/Handle.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/gnu/glib/Handle32Bits.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/gnu/glib/Handle64Bits.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/gnu/glib/Struct.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/gnu/glib/package-frame.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/gnu/glib/package-summary.html
+%%PORTDOCS%%%%DOCSDIR%%/api/org/gnu/glib/package-tree.html
+%%PORTDOCS%%%%DOCSDIR%%/api/overview-tree.html
+%%PORTDOCS%%%%DOCSDIR%%/api/package-list
+%%PORTDOCS%%%%DOCSDIR%%/api/packages.html
+%%PORTDOCS%%%%DOCSDIR%%/api/resources/inherit.gif
+%%PORTDOCS%%%%DOCSDIR%%/api/serialized-form.html
+%%PORTDOCS%%%%DOCSDIR%%/api/stylesheet.css
+share/%%PORTNAME%%/macros/ac_prog_jar.m4
+share/%%PORTNAME%%/macros/ac_prog_javac.m4
+share/%%PORTNAME%%/macros/ac_prog_javac_works.m4
+share/%%PORTNAME%%/macros/ac_prog_javadoc.m4
+share/%%PORTNAME%%/macros/am_path_docbook.m4
+share/%%PORTNAME%%/macros/am_path_gcj.m4
+share/%%PORTNAME%%/macros/jg_check_nativecompile.m4
+share/%%PORTNAME%%/macros/jg_common.m4
+share/%%PORTNAME%%/macros/jg_lib.m4
+share/java/classes/glib%%GLIB_API_VERSION%%.jar
+@dirrm share/%%PORTNAME%%/macros
+@dirrm share/%%PORTNAME%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/api/resources
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/api/org/gnu/glib
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/api/org/gnu
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/api/org
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/api
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm include/%%PORTNAME%%