summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-10-27 11:21:21 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-10-27 11:21:21 +0800
commita3b810cd0c2cc285808212bfb3daad9a50784036 (patch)
treee0998a27d18013e4aec5886d7ec35f4a41a57e20 /devel
parentad66e2e59d3e17291aa928a05b9b1f38310236f0 (diff)
downloadmarcuscom-ports-a3b810cd0c2cc285808212bfb3daad9a50784036.tar
marcuscom-ports-a3b810cd0c2cc285808212bfb3daad9a50784036.tar.gz
marcuscom-ports-a3b810cd0c2cc285808212bfb3daad9a50784036.tar.bz2
marcuscom-ports-a3b810cd0c2cc285808212bfb3daad9a50784036.tar.lz
marcuscom-ports-a3b810cd0c2cc285808212bfb3daad9a50784036.tar.xz
marcuscom-ports-a3b810cd0c2cc285808212bfb3daad9a50784036.tar.zst
marcuscom-ports-a3b810cd0c2cc285808212bfb3daad9a50784036.zip
Add glib-java, Java wrappers around GLib 2.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4972 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel')
-rw-r--r--devel/glib-java/Makefile65
-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, 153 insertions, 0 deletions
diff --git a/devel/glib-java/Makefile b/devel/glib-java/Makefile
new file mode 100644
index 000000000..780a1b0db
--- /dev/null
+++ b/devel/glib-java/Makefile
@@ -0,0 +1,65 @@
+# New ports collection makefile for: glib-java
+# Date created: 26 Oct 2005
+# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+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_LIBTOOL_VER=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 000000000..620d0089e
--- /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 000000000..40f26900d
--- /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 000000000..70967773e
--- /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 000000000..abc1cdd10
--- /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 000000000..b5be2203c
--- /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 000000000..cc09eec12
--- /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%%