mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
Add libgnome-java, Java wrappers around libgnome-2.6.
This commit is contained in:
parent
c94593c014
commit
93ca4b3356
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=106187
@ -101,6 +101,7 @@
|
||||
SUBDIR += libcapplet
|
||||
SUBDIR += libdnd
|
||||
SUBDIR += libgnome
|
||||
SUBDIR += libgnome-java
|
||||
SUBDIR += libgnomemm
|
||||
SUBDIR += libsx
|
||||
SUBDIR += libxfce4mcs
|
||||
|
71
x11/libgnome-java/Makefile
Normal file
71
x11/libgnome-java/Makefile
Normal file
@ -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>
|
2
x11/libgnome-java/distinfo
Normal file
2
x11/libgnome-java/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (gnome2/libgnome-java-2.5.7.tar.bz2) = 875030948a5addf6849822d6afeaac25
|
||||
SIZE (gnome2/libgnome-java-2.5.7.tar.bz2) = 101076
|
20
x11/libgnome-java/files/patch-src_Makefile.in
Normal file
20
x11/libgnome-java/files/patch-src_Makefile.in
Normal file
@ -0,0 +1,20 @@
|
||||
--- src/Makefile.in.orig Sat Feb 28 21:32:46 2004
|
||||
+++ src/Makefile.in Sat Feb 28 21:43:36 2004
|
||||
@@ -105,7 +106,7 @@
|
||||
COMPILED_CLASSES:=$(shell echo $(CLASSES) | sed -e 's=\.class=\.o=g' )
|
||||
|
||||
../lib/gnome${apiversion}.jar: $(CLASSES)
|
||||
- @(cd build-java; $(JAR) cf ../../lib/gnome${apiversion}-${version}.jar `find -name "*.class"` )
|
||||
+ @(cd build-java; $(JAR) cf ../../lib/gnome${apiversion}-${version}.jar `find . -name "*.class"` )
|
||||
@(cd ../lib; test ! -L gnome${apiversion}.jar && ln -s gnome${apiversion}-${version}.jar gnome${apiversion}.jar) || exit 0
|
||||
|
||||
jar: dirs ../lib/gnome${apiversion}.jar
|
||||
@@ -116,7 +117,7 @@
|
||||
$(CC) $(CFLAGS) -shared -o ../lib/libgnomejava${apiversion}.so.${version} \
|
||||
-L@JG_GTK_LIB_PATH@ -lgtkjava${gtkapiversion} \
|
||||
$(OBJECTS) \
|
||||
- $(CFLAGS) @GNOME_LIBS@ @GNOME_CFLAGS@ @GTK_LIBS@ @GTK_CFLAGS@ $(JAVA_INCLUDES) -Xlinker --no-undefined
|
||||
+ $(CFLAGS) @GNOME_LIBS@ @GNOME_CFLAGS@ @GTK_LIBS@ @GTK_CFLAGS@ $(JAVA_INCLUDES) -Xlinker -lc --no-undefined
|
||||
@(cd ../lib; test ! -L libgnomejava${apiversion}.so && ln -s libgnomejava${apiversion}.so.${version} libgnomejava${apiversion}.so) || exit 0
|
||||
|
||||
nativelib: ../lib/libgnomejava${apiversion}.so.${version}
|
8
x11/libgnome-java/pkg-descr
Normal file
8
x11/libgnome-java/pkg-descr
Normal file
@ -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/
|
7
x11/libgnome-java/pkg-message
Normal file
7
x11/libgnome-java/pkg-message
Normal file
@ -0,0 +1,7 @@
|
||||
************************************************************************
|
||||
Libgnome-java was successfully installed. In order to build and run GTK+
|
||||
Java applications, you must add the following to your CLASSPATH:
|
||||
|
||||
%%JAVAJARDIR%%/gnome%%GNOME_API_VERSION%%.jar
|
||||
|
||||
************************************************************************
|
4
x11/libgnome-java/pkg-plist
Normal file
4
x11/libgnome-java/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
lib/libgnomejava%%GNOME_API_VERSION%%.so
|
||||
lib/libgnomejava%%GNOME_API_VERSION%%.so.%%PORTVERSION%%
|
||||
share/java/classes/gnome%%GNOME_API_VERSION%%-%%PORTVERSION%%.jar
|
||||
share/java/classes/gnome%%GNOME_API_VERSION%%.jar
|
Loading…
Reference in New Issue
Block a user