Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2006 14:45:52 +0300 (EEST)
From:      Anton Yudin <toha@toha.org.ua>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/96199: new port java/jdic: The JDesktop Integration Components (JDIC)
Message-ID:  <200604231145.k3NBjqfi078662@pandemonium.toha.org.ua>
Resent-Message-ID: <200604231200.k3NC0TmD046833@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         96199
>Category:       ports
>Synopsis:       new port java/jdic: The JDesktop Integration Components (JDIC)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 23 12:00:29 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Anton Yudin
>Release:        FreeBSD 6.1-RC i386
>Organization:
>Environment:
System: FreeBSD pandemonium.toha.org.ua 6.1-RC FreeBSD 6.1-RC #0: Mon Apr 17 21:40:22 EEST 2006 root@pandemonium.toha.org.ua:/obj/obj/usr/src/sys/NKERNEL i386


>Description:
The JDesktop Integration Components (JDIC) project aims to make
Java technology-based applications ("Java applications") first-class
citizens of current desktop platforms without sacrificing platform
independence. Its mission is to enable seamless desktop/Java integration.

JDIC provides Java applications with access to functionalities and facilities
provided by the native desktop. It consists of a collection of Java packages
and tools. JDIC supports a variety of features such as embedding the native
browser, launching the desktop applications, creating tray icons on the
desktop, registering file type associations, creating JNLP installer packages,
etc. Many new features are contributed as incubator projects from the community.

WWW: https://jdic.dev.java.net/

>How-To-Repeat:
>Fix:
shar:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	java/jdic
#	java/jdic/Makefile
#	java/jdic/distinfo
#	java/jdic/pkg-descr
#	java/jdic/files
#	java/jdic/files/patch-jni-Makefile
#	java/jdic/files/patch-mozilla-Makefile
#	java/jdic/files/patch-utils-MsgServer.h
#
echo c - java/jdic
mkdir -p java/jdic > /dev/null 2>&1
echo x - java/jdic/Makefile
sed 's/^X//' >java/jdic/Makefile << 'END-of-java/jdic/Makefile'
X# New ports collection makefile for:	The JDesktop Integration Components (JDIC)
X# Date created:				Sun Apr 23 14:20:39 EEST 2006
X# Whom:					Anton Yudin <toha@toha.org.ua>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	jdic
XPORTVERSION=	20060308
XCATEGORIES=	java devel
XMASTER_SITES=	https://www.dev.java.net/files/documents/880/30794/
XDISTNAME=	${PORTNAME}-${PORTVERSION}-src
X
XMAINTAINER=	toha@toha.org.ua
XCOMMENT=	The JDesktop Integration Components (JDIC)
X
XUSE_GNOME=	gconf2 glib20 gnomevfs2 gtk20 libbonobo libgnome orbit2
X
XBUILD_DEPENDS+=	${X11BASE}/libdata/pkgconfig/mozilla-plugin.pc:${PORTSDIR}/www/mozilla
XLIB_DEPENDS+=	nspr4.1:${PORTSDIR}/devel/nspr
X
XUSE_JAVA=	yes
XJAVA_VERSION=	1.5+
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}-src/jdic
X
XUSE_ZIP=	yes
XUSE_ANT=	yes
XMAKE_ENV+=	MOZILLA_DIST=${X11BASE}/lib/mozilla GECKO_SDK=${X11BASE}/include/mozilla INCLUDE_NSPR_DIR=${PREFIX}/include/nspr LOCAL_LIB_DIR=${PREFIX}/lib
XALL_TARGET=	buildfreebsd
X
XTARGET_DIR=	${JAVASHAREDIR}/${PORTNAME}
X
XDOCSDIR=	${TARGET_DIR}/javadoc
X
Xdo-install:
X	cd ${WRKSRC}/dist/freebsd && ${FIND} . -type d -a \! -path '*javadoc*' -exec ${INSTALL} -d ${TARGET_DIR}/'{}' \; && \
X	${FIND} . -type f -a \! -path '*javadoc*' -exec ${INSTALL_DATA} '{}' ${TARGET_DIR}/'{}' \;
X	${FIND} ${TARGET_DIR} -name \*.so -or -name mozembed-freebsd-gtk2 -exec ${CHMOD} a+x '{}' \;
X.if !defined(NOPORTDOCS)
X	cd ${WRKSRC}/dist/freebsd && ${FIND} javadoc -type d -exec ${INSTALL} -d ${TARGET_DIR}/'{}' \; && \
X	${FIND} javadoc -type f -exec ${INSTALL_DATA} '{}' ${TARGET_DIR}/'{}' \;
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${FIND} ${TARGET_DIR}/javadoc -not -type d | ${SED} -e 's,^${PREFIX},,' >> ${TMPPLIST}
X	@${FIND} -d ${TARGET_DIR}/javadoc -type d | ${SED} -e 's,^${PREFIX},@dirrm ,' >> ${TMPPLIST}
X.endif
X	@${FIND} ${TARGET_DIR} -not -type d -a -not -path '*javadoc*' | ${SED} -e 's,^${PREFIX},,' >> ${TMPPLIST}
X	@${FIND} -d ${TARGET_DIR} -type d -a -not -path '*javadoc*' | ${SED} -e 's,^${PREFIX},@dirrm ,' >> ${TMPPLIST}
X
X.include <bsd.port.mk>
END-of-java/jdic/Makefile
echo x - java/jdic/distinfo
sed 's/^X//' >java/jdic/distinfo << 'END-of-java/jdic/distinfo'
XMD5 (jdic-20060308-src.zip) = 37269a9805faa9fefe045ffcc8880c89
XSHA256 (jdic-20060308-src.zip) = e7f245f28f3dfbe426514477e9c66881cbcc18988d08d0bac2595272efa2f780
XSIZE (jdic-20060308-src.zip) = 15338120
END-of-java/jdic/distinfo
echo x - java/jdic/pkg-descr
sed 's/^X//' >java/jdic/pkg-descr << 'END-of-java/jdic/pkg-descr'
XThe JDesktop Integration Components (JDIC) project aims to make
XJava technology-based applications ("Java applications") first-class
Xcitizens of current desktop platforms without sacrificing platform
Xindependence. Its mission is to enable seamless desktop/Java integration.
X
XJDIC provides Java applications with access to functionalities and facilities
Xprovided by the native desktop. It consists of a collection of Java packages
Xand tools. JDIC supports a variety of features such as embedding the native
Xbrowser, launching the desktop applications, creating tray icons on the
Xdesktop, registering file type associations, creating JNLP installer packages,
Xetc. Many new features are contributed as incubator projects from the community.
X
XWWW: https://jdic.dev.java.net/
END-of-java/jdic/pkg-descr
echo c - java/jdic/files
mkdir -p java/jdic/files > /dev/null 2>&1
echo x - java/jdic/files/patch-jni-Makefile
sed 's/^X//' >java/jdic/files/patch-jni-Makefile << 'END-of-java/jdic/files/patch-jni-Makefile'
X--- src/unix/native/jni/Makefile.orig	Sun Apr 23 12:37:04 2006
X+++ src/unix/native/jni/Makefile	Sun Apr 23 12:39:03 2006
X@@ -124,7 +124,7 @@
X tray: $(TRAY_SO_NAME)
X 
X $(TRAY_SO_NAME): $(TRAY_CSRC)
X-	$(CC) $(INCLUDES) $(LDFLAGS) -ldl -L$(X11LIB) -lXt -lX11 $(TRAY_CSRC) -o $@
X+	$(CC) $(INCLUDES) -I/usr/X11R6/include $(LDFLAGS) -L$(X11LIB) -lXt -lX11 $(TRAY_CSRC) -o $@
X 
X clean:
X 	rm -f *.so
END-of-java/jdic/files/patch-jni-Makefile
echo x - java/jdic/files/patch-mozilla-Makefile
sed 's/^X//' >java/jdic/files/patch-mozilla-Makefile << 'END-of-java/jdic/files/patch-mozilla-Makefile'
X--- src/unix/native/mozilla/Makefile.orig	Sun Apr 23 13:00:17 2006
X+++ src/unix/native/mozilla/Makefile	Sun Apr 23 13:19:12 2006
X@@ -47,8 +47,8 @@
X # For Gecko SDK 1.6 or ealier, enable USING_GECKO_SDK_1_4. Or else, enable 
X # USING_GECKO_SDK_1_7.
X #
X-USING_GECKO_SDK_1_4 = 1
X-#USING_GECKO_SDK_1_7 = 1
X+#USING_GECKO_SDK_1_4 = 1
X+USING_GECKO_SDK_1_7 = 1
X 
X # set gtk version
X #
X@@ -74,7 +74,7 @@
X MODULE_NAME_PART = mozembed-solaris-gtk
X endif
X ifeq ($(OS_ARCH), FreeBSD)
X-CXX = g++
X+CXX = g++ -I${INCLUDE_NSPR_DIR}
X LDFLAGS = -shared -fPIC -Wl,--version-script=gnu-ld-script
X MODULE_NAME_PART = mozembed-freebsd-gtk
X endif
X@@ -108,7 +108,7 @@
X # mozilla distribution
X 
X LIBS = -L$(MOZILLA_DIST) -lgtkembedmoz
X-LIBS_PROG = -L$(MOZILLA_DIST) -lgtkembedmoz -lxpcom -lnspr4 -lplds4 -lplc4
X+LIBS_PROG = -L${LOCAL_LIB_DIR} -L$(MOZILLA_DIST) -pthread -lgtkembedmoz -lxpcom -lnspr4 -lplds4 -lplc4
X 
X # libembedstring.a from the 1.4.2 gecko sdk requires __ctype_tolower,
X # but for some reason that isn't available from the version of glibc
X@@ -163,11 +163,11 @@
X ifdef USING_GECKO_SDK_1_7
X CPPFLAGS += \
X         -DUSING_GECKO_SDK_1_7 \
X-	-include $(GECKO_SDK)/include/mozilla-config.h \
X-	-I$(GECKO_SDK)/include \
X+	-include $(GECKO_SDK)/mozilla-config.h \
X+	-I$(GECKO_SDK) \
X 	$(NULL)
X LIBS += \
X-	-L$(GECKO_SDK)/lib -lxpcomglue_s \
X+	-L$(GECKO_SDK)/lib \
X 	-L$(GECKO_SDK)/bin -lxpcom -lnspr4 -lplds4 -lplc4 \
X 	$(NULL)
X endif
END-of-java/jdic/files/patch-mozilla-Makefile
echo x - java/jdic/files/patch-utils-MsgServer.h
sed 's/^X//' >java/jdic/files/patch-utils-MsgServer.h << 'END-of-java/jdic/files/patch-utils-MsgServer.h'
X--- src/share/native/utils/MsgServer.h.orig	Sun Apr 23 13:12:04 2006
X+++ src/share/native/utils/MsgServer.h	Sun Apr 23 13:11:49 2006
X@@ -30,6 +30,7 @@
X #include <sys/socket.h>
X #include <unistd.h>
X #include <fcntl.h>
X+#include <netinet/in.h>
X #include <arpa/inet.h>
X #include <pthread.h>
X #endif
END-of-java/jdic/files/patch-utils-MsgServer.h
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604231145.k3NBjqfi078662>