3be3e90f93
- Switched to automake 1.11.6, see CVE-2012-3386. - #14669: Fixed extraction of CC from gmp.h. - Fixed case of intermediate zero real or imaginary part in mpc_fma, found by hydra with GMP_CHECK_RANDOMIZE=1346362345. This is on top of the following changes from version 1.0 - Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no invariant sections) for the documentation. - 100% of all lines are covered by tests - Renamed functions . mpc_mul_2exp to mpc_mul_2ui . mpc_div_2exp to mpc_div_2ui - 0^0, which returned (NaN,NaN) previously, now returns (1,+0). - Removed compatibility with K&R compilers, which was untestable due to lack of such compilers. - New functions . mpc_log10 . mpc_mul_2si, mpc_div_2si - Speed-ups . mpc_fma - Bug fixes . mpc_div and mpc_norm now return a value indicating the effective rounding direction, as the other functions. . mpc_mul, mpc_sqr and mpc_norm now return correct results even if there are over- or underflows during the computation. . mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has infinite part and equals output variable is corrected. . mpc_fr_sub: Wrong return value for imaginary part is corrected. Convert to the new LIB_DEPENDS standard and remove hard-coded .so versions from a couple of dependent ports. Bump PORTREVISIONS of all dependent ports. PR: 183141 Approved by: portmgr (bdrewery)
133 lines
3.5 KiB
Makefile
133 lines
3.5 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= icedtea-web
|
|
PORTVERSION= 1.4.1
|
|
PORTREVISION= 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_JAVA= yes
|
|
JAVA_OS= native
|
|
JAVA_VENDOR= openjdk
|
|
JAVA_VERSION= 1.6+
|
|
USE_PERL5= build
|
|
USE_XORG= x11
|
|
USES= gmake pkgconfig shebangfix perl5
|
|
SHEBANG_FILES= javac.in jrunscript.in
|
|
|
|
WANT_GNOME= yes
|
|
|
|
EXTRACT_CMD= ${GZIP_CMD}
|
|
EXTRACT_BEFORE_ARGS= -dc
|
|
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 javaws_splash.png netx.jar
|
|
PORTDOCS= netx
|
|
|
|
CONFIGURE_ARGS= --with-asm=no --with-ecj=no --with-emma=no --with-jacoco=no
|
|
CONFIGURE_ARGS+=--with-jdk-home="${JAVA_HOME}"
|
|
SH= ${bash_CMD}
|
|
|
|
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
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if empty(PORT_OPTIONS:MDOCS)
|
|
CONFIGURE_ARGS+=--disable-docs
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPLUGIN}
|
|
USE_GECKO= libxul
|
|
USE_GNOME= glib20
|
|
USE_WEBPLUGINS= native
|
|
WEBPLUGINS_DIR= ${PREFIX}/lib
|
|
WEBPLUGINS_FILES=IcedTeaPlugin.so
|
|
|
|
PLIST_FILES+= lib/IcedTeaPlugin.so
|
|
PORTDATA+= plugin.jar
|
|
PORTDOCS+= plugin
|
|
|
|
.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|^Icon=javaws|Icon=itweb-javaws|' \
|
|
${WRKSRC}/*.desktop.in
|
|
${REINPLACE_CMD} -E 's|/bin/(ba)?sh|${bash_CMD}|' \
|
|
${WRKSRC}/launcher/*.in \
|
|
${WRKSRC}/plugin/tests/LiveConnect/build \
|
|
${WRKSRC}/tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java
|
|
${REINPLACE_CMD} -e 's|%%JAR%%|${JAR}|' \
|
|
${WRKSRC}/tests/netx/unit/net/sourceforge/jnlp/runtime/JNLPClassLoaderTest.java
|
|
|
|
.if ${PORT_OPTIONS:MTEST}
|
|
post-build:
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "Run \"make test\" to execute regression test."
|
|
@${ECHO_MSG}
|
|
.endif
|
|
|
|
post-install:
|
|
${MKDIR} ${DESKTOPDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/*.desktop ${DESKTOPDIR}
|
|
${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>
|