Add libglade-java, Java wrappers around libglade-2.4.

This commit is contained in:
Joe Marcus Clarke 2004-04-05 04:03:12 +00:00
parent 6d2bcba1c7
commit c94593c014
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=106186
7 changed files with 117 additions and 0 deletions

View file

@ -385,6 +385,7 @@
SUBDIR += libghthash
SUBDIR += libgii
SUBDIR += libglade
SUBDIR += libglade-java
SUBDIR += libglade2
SUBDIR += libglademm
SUBDIR += libgnugetopt

View file

@ -0,0 +1,75 @@
# New ports collection makefile for: libglade-java
# Date created: 28 February 2004
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libglade-java
PORTVERSION= 2.3.7
CATEGORIES= devel java
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/2.3
DIST_SUBDIR= gnome2
MAINTAINER= gnome@FreeBSD.org
COMMENT= Java wrapper for libglade
BUILD_DEPENDS= ${LOCALBASE}/share/java/classes/gtk${GTK_API_VERSION}-${GTK_JAVA_VERSION}.jar:${PORTSDIR}/x11-toolkits/libgtk-java \
${LOCALBASE}/share/java/classes/gnome${GNOME_API_VERSION}-${GNOME_JAVA_VERSION}.jar:${PORTSDIR}/x11/libgnome-java
RUN_DEPENDS= ${LOCALBASE}/share/java/classes/gtk${GTK_API_VERSION}-${GTK_JAVA_VERSION}.jar:${PORTSDIR}/x11-toolkits/libgtk-java \
${LOCALBASE}/share/java/classes/gnome${GNOME_API_VERSION}-${GNOME_JAVA_VERSION}.jar:${PORTSDIR}/x11/libgnome-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 libglade2
USE_REINPLACE= yes
CONFIGURE_ARGS= --without-gcj-compile \
--with-java-prefix=${JAVA_HOME}
CONFIGURE_ENV= DB2="/dev/null"
GLADE_API_VERSION= 2.4
GTK_API_VERSION= 2.4
GNOME_API_VERSION= 2.6
GTK_JAVA_VERSION= beta2
GNOME_JAVA_VERSION= beta2
VERSION= beta2
PLIST_SUB= GLADE_API_VERSION=${GLADE_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| ; \
s|^GNOMEJAR=.*|GNOMEJAR=${LOCALBASE}/share/java/classes/gnome${GNOME_API_VERSION}-${GNOME_JAVA_VERSION}.jar|' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|@gtkapiversion@|${GTK_API_VERSION}|g ; \
s|@apiversion@|${GLADE_API_VERSION}|g ; \
s|@version@|${VERSION}|g' \
${WRKSRC}/src/Makefile.in \
${WRKSRC}/src/java/org/gnu/glade/LibGlade.java.in
do-install:
${MKDIR} ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/lib/libgladejava${GLADE_API_VERSION}.so.${VERSION} \
${PREFIX}/lib
${LN} -sf ${PREFIX}/lib/libgladejava${GLADE_API_VERSION}.so.${VERSION} ${PREFIX}/lib/libgladejava${GLADE_API_VERSION}.so
${MKDIR} ${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/lib/glade${GLADE_API_VERSION}-${VERSION}.jar \
${JAVAJARDIR}
${LN} -sf ${JAVAJARDIR}/lib/glade${GLADE_API_VERSION}-${VERSION}.jar \
${JAVAJARDIR}/glade${GLADE_API_VERSION}.jar
post-install:
@${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|g ; \
s|%%PREFIX%%|${PREFIX}|g ; \
s|%%GLADE_API_VERSION%%|${GLADE_API_VERSION}|g' \
< ${PKGDIR}/pkg-message > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
MD5 (gnome2/libglade-java-2.3.7.tar.bz2) = 22b803f9af4448a056381ff6a2103e3e
SIZE (gnome2/libglade-java-2.3.7.tar.bz2) = 52313

View file

@ -0,0 +1,20 @@
--- src/Makefile.in.orig Mon Mar 29 13:37:37 2004
+++ src/Makefile.in Tue Mar 30 17:32:50 2004
@@ -107,7 +107,7 @@
COMPILED_CLASSES:=$(shell echo $(CLASSES) | sed -e 's=\.class=\.o=g' )
../lib/glade${apiversion}.jar: $(CLASSES)
- @(cd build-java; $(JAR) cf ../../lib/glade${apiversion}-${version}.jar `find -name "*.class"` )
+ @(cd build-java; $(JAR) cf ../../lib/glade${apiversion}-${version}.jar `find . -name "*.class"` )
@(cd ../lib; test ! -L glade${apiversion}.jar && ln -s glade${apiversion}-${version}.jar glade${apiversion}.jar) || exit 0
jar: dirs ../lib/glade${apiversion}.jar
@@ -117,7 +117,7 @@
@(test ! -d ../lib && mkdir ../lib) || exit 0
$(CC) $(CFLAGS) -shared -o ../lib/libgladejava${apiversion}.so.${version} \
$(OBJECTS) \
- $(CFLAGS) @LIBGLADE_LIBS@ @LIBGLADE_CFLAGS@ $(JAVA_INCLUDES) -Xlinker --no-undefined
+ $(CFLAGS) @LIBGLADE_LIBS@ @LIBGLADE_CFLAGS@ $(JAVA_INCLUDES) -lc -Xlinker --no-undefined
@(cd ../lib; test ! -L libgladejava${apiversion}.so && ln -s libgladejava${apiversion}.so.${version} libgladejava${apiversion}.so) || exit 0
nativelib: ../lib/libgladejava${apiversion}.so.${version}

View 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/

View file

@ -0,0 +1,7 @@
************************************************************************
Libglade-java was successfully installed. In order to build and run GTK+
Java applications, you must add the following to your CLASSPATH:
%%JAVAJARDIR%%/glade%%GLADE_API_VERSION%%.jar
************************************************************************

View file

@ -0,0 +1,4 @@
lib/libgladejava%%GLADE_API_VERSION%%.so
lib/libgladejava%%GLADE_API_VERSION%%.so.%%PORTVERSION%%
share/java/classes/glade%%GLADE_API_VERSION%%-%%PORTVERSION%%.jar
share/java/classes/glade%%GLADE_API_VERSION%%.jar