blob: 872dfadc80094b0f69f28eaa4e45c15d6df66fd4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# New ports collection makefile for: jdic
# Date created: Tue 26 dec 2006 10:46:02 GMT
# Whom: thierry@pompo.net
#
# $FreeBSD$
#
PORTNAME= jdic
PORTVERSION= 20061102
PORTREVISION= 3
CATEGORIES= x11-toolkits java
MASTER_SITES= https://jdic.dev.java.net/files/documents/880/43269/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= JDesktop Integration Components
BROKEN= does not fetch
# USE_GMAKE conflicts with USE_ANT
BUILD_DEPENDS= gmake:${PORTSDIR}/devel/gmake
LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt
# nspr4.1:${PORTSDIR}/devel/nspr
ONLY_FOR_ARCHS= i386
ONLY_FOR_ARCHS_REASON= the required com.sun.jnlp is part of jawaws.jar, only installed on i386
USE_ZIP= yes
USE_ANT= yes
USE_XORG= x11 xext xt
USE_GNOME= pkgconfig # libgnome
USE_JAVA= yes
JAVA_VERSION= 1.5+
USE_LDCONFIG= yes
# Do not build mozembed: it requires Gecko_SDK and XULRunner, which is
# broken ATM - see <http://developer.mozilla.org/en/docs/Gecko_SDK>.
#USE_GECKO= libxul
#ALL_TARGET= buildall
ALL_TARGET= buildtray
WRKSRC= ${WRKDIR}/src
BUILD_WRKSRC= ${WRKSRC}/jdic # Remove to build all
MAKE_ENV= CLASSPATH="${JAVA_HOME}/jre/lib/javaws.jar"
#MAKE_ENV= MOZILLA_DIST="`${GECKO_CONFIG} --prefix`/lib/${GECKO}" \
# GECKO_SDK="${GECKO_SDK}"
MKFILES= jni mozilla
DIST_DIR= ${WRKSRC}/jdic/dist/${OPSYS:L}
PLIST_FILES= %%JAVAJARDIR%%/jdic.jar \
lib/libtray.so \
lib/libtray.so.0
.include <bsd.port.pre.mk>
pre-configure:
.for mk in ${MKFILES}
${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g; \
s|/usr/local|${LOCALBASE}|g' \
${WRKSRC}/jdic/src/unix/native/${mk}/Makefile
.endfor
do-install:
${INSTALL_DATA} ${DIST_DIR}/jdic.jar ${JAVAJARDIR}
${INSTALL_SCRIPT} ${DIST_DIR}/libtray.so ${PREFIX}/lib/libtray.so.0
${LN} -sf ${PREFIX}/lib/libtray.so.0 ${PREFIX}/lib/libtray.so
.if defined(MAINTAINER_MODE)
regression-test: install
(cd ${WRKSRC}/jdic/demo/Tray && \
javac -cp "${JAVAJARDIR}/jdic.jar:." Tray.java && \
java -cp "${JAVAJARDIR}/jdic.jar:." Tray)
.endif
.include <bsd.port.post.mk>
|