blob: d57938b9cda796d754aa894b439edbb79fa26392 (
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
# $FreeBSD$
PORTNAME= icedtea-web
PORTVERSION= 1.3.1
CATEGORIES= java www
MASTER_SITES= http://icedtea.wildebeest.org/download/source/ \
http://icedtea.classpath.org/download/source/
MAINTAINER= java@FreeBSD.org
COMMENT= A free Java plug-in and Java Web Start for OpenJDK
LICENSE= GPLv2
BUILD_DEPENDS= ${LOCALBASE}/bin/zip:${PORTSDIR}/archivers/zip \
${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
RUN_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_JAVA= yes
JAVA_OS= native
JAVA_VENDOR= openjdk
JAVA_VERSION= 1.6+
USE_PKGCONFIG= yes
USE_PERL5_BUILD=yes
USE_XORG= x11
WANT_GNOME= yes
EXTRACT_AFTER_ARGS= | ${SETENV} LC_ALL=en_US.UTF-8 ${TAR} -xf -
MAN1= itweb-javaws.1
PLIST_FILES= bin/itweb-javaws bin/itweb-settings \
share/applications/itweb-javaws.desktop \
share/applications/itweb-settings.desktop \
share/pixmaps/itweb-javaws.png
PORTDATA= about.jar about.jnlp netx.jar
PORTDOCS= netx
CONFIGURE_ARGS= --with-ecj=no --with-jdk-home="${JAVA_HOME}"
SH= ${LOCALBASE}/bin/bash
OPTIONS_DEFINE= PLUGIN RHINO TEST
OPTIONS_DEFAULT=PLUGIN
PLUGIN_DESC= Enable the browser plug-in
RHINO_DESC= Add support for Proxy Auto Config files
TEST_DESC= Add support for running regression test
.include <bsd.port.options.mk>
.if empty(PORT_OPTIONS:MDOCS)
CONFIGURE_ARGS+=--disable-docs
.endif
.if ${PORT_OPTIONS:MPLUGIN}
USE_GECKO= libxul libxul19
USE_GNOME= glib20 gtk20
USE_WEBPLUGINS= native
WEBPLUGINS_DIR= ${PREFIX}/lib
WEBPLUGINS_FILES=IcedTeaPlugin.so
PLIST_FILES+= lib/IcedTeaPlugin.so
PORTDATA+= plugin.jar
PORTDOCS+= plugin
CONFIGURE_ARGS+=--with-gtk=2
.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
.else
CONFIGURE_ARGS+=--disable-plugin
.endif
.if ${PORT_OPTIONS:MRHINO}
BUILD_DEPENDS+= ${JAVASHAREDIR}/rhino/rhino.jar:${PORTSDIR}/lang/rhino
RUN_DEPENDS+= ${JAVASHAREDIR}/rhino/rhino.jar:${PORTSDIR}/lang/rhino
CONFIGURE_ARGS+=--with-rhino=${JAVASHAREDIR}/rhino/rhino.jar
.else
CONFIGURE_ARGS+=--with-rhino=no
.endif
.if ${PORT_OPTIONS:MTEST}
BUILD_DEPENDS+= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
CONFIGURE_ARGS+=--with-junit=${JAVALIBDIR}/junit.jar
.else
CONFIGURE_ARGS+=--with-junit=no
.endif
.include <bsd.port.pre.mk>
.if ${JAVA_PORT_VERSION} == "1.6.0"
pre-extract:
@${ECHO_MSG}
@${ECHO_MSG} "IMPORTANT: To build IcedTea-Web ${PORTVERSION}, you have to turn on 'ICEDTEA' option"
@${ECHO_MSG} "for ${JAVA_PORT} (default). Otherwise, it will neither build nor work."
@${ECHO_MSG}
@sleep 5
.endif
post-patch:
${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/javac.in
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
${WRKSRC}/launcher/javaws.in
.if ${PORT_OPTIONS:MTEST}
post-build:
@${ECHO_MSG}
@${ECHO_MSG} "Run \"make test\" to execute regression test."
@${ECHO_MSG}
.endif
post-install:
${MKDIR} ${DESKTOPDIR}
${REINPLACE_CMD} -e 's|^Icon=javaws|Icon=itweb-javaws|' \
${WRKSRC}/itweb-javaws.desktop ${WRKSRC}/itweb-settings.desktop
${INSTALL_DATA} ${WRKSRC}/itweb-javaws.desktop \
${WRKSRC}/itweb-settings.desktop ${DESKTOPDIR}
${MKDIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/javaws.png \
${PREFIX}/share/pixmaps/itweb-javaws.png
.if ${PORT_OPTIONS:MTEST}
test: build
@(cd ${WRKSRC}; ${GMAKE} check)
.if ${PORT_OPTIONS:MPLUGIN}
@(cd ${WRKSRC}; ${GMAKE} plugin-tests)
.endif
.endif
.include <bsd.port.post.mk>
|