aboutsummaryrefslogtreecommitdiffstats
path: root/x11/libgnome-java/Makefile
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2004-04-05 12:04:22 +0800
committermarcus <marcus@FreeBSD.org>2004-04-05 12:04:22 +0800
commit586976b8f5a5c86b39299c9981d4db6daf6b7df9 (patch)
tree69b3144cf51456b1db7a47e3b5ee56204c623d31 /x11/libgnome-java/Makefile
parent6395164fc376897c86d6cb63d12f6a4b1264e7e5 (diff)
downloadfreebsd-ports-graphics-586976b8f5a5c86b39299c9981d4db6daf6b7df9.tar.gz
freebsd-ports-graphics-586976b8f5a5c86b39299c9981d4db6daf6b7df9.tar.zst
freebsd-ports-graphics-586976b8f5a5c86b39299c9981d4db6daf6b7df9.zip
Add libgnome-java, Java wrappers around libgnome-2.6.
Diffstat (limited to 'x11/libgnome-java/Makefile')
-rw-r--r--x11/libgnome-java/Makefile71
1 files changed, 71 insertions, 0 deletions
diff --git a/x11/libgnome-java/Makefile b/x11/libgnome-java/Makefile
new file mode 100644
index 00000000000..c92241bebc0
--- /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>