mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-11 02:50:24 +00:00
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)
106 lines
3.1 KiB
Makefile
106 lines
3.1 KiB
Makefile
# Created by: Marc van Woerkom <3d@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= openvrml
|
|
PORTVERSION= 0.18.9
|
|
PORTREVISION= 6
|
|
CATEGORIES= www graphics
|
|
MASTER_SITES= SF
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= VRML97 runtime and browser
|
|
|
|
BROKEN= does not build
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/argp.h:${PORTSDIR}/devel/argp-standalone
|
|
LIB_DEPENDS= fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \
|
|
js.1:${PORTSDIR}/lang/spidermonkey17 \
|
|
jpeg.11:${PORTSDIR}/graphics/jpeg \
|
|
png15:${PORTSDIR}/graphics/png \
|
|
curl:${PORTSDIR}/ftp/curl \
|
|
gtkglext-x11-1.0:${PORTSDIR}/x11-toolkits/gtkglext
|
|
|
|
USE_GL= yes
|
|
USES= pathfix pkgconfig
|
|
USE_GNOME= libglade2 libgnomeui
|
|
USE_SDL= sdl
|
|
USE_JAVA= yes
|
|
USE_GCC= yes
|
|
GNU_CONFIGURE= yes
|
|
LIBTOOLFILES= configure
|
|
CONFIGURE_ARGS= --enable-gecko-rpath \
|
|
--disable-mozilla-plugin
|
|
CONFIGURE_ENV= LIBS="-lm" BOOST_LIB_SUFFIX=""
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${JAVA_HOME}/include -I${JAVA_HOME}/include/${OPSYS:L} \
|
|
-I${LOCALBASE}/include/libpng15
|
|
LDFLAGS+= -L${LOCALBASE}/lib -L${JAVA_HOME}/jre/lib/${ARCH}/client -pthread
|
|
USE_GMAKE= yes
|
|
USE_LDCONFIG= yes
|
|
USE_GECKO= libxul
|
|
|
|
USE_WEBPLUGINS= native
|
|
WEBPLUGINS_FILES=openvrml.so
|
|
MAKE_JOBS_UNSAFE=yes
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
PORTDOCS= *
|
|
.endif
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.pre.mk>
|
|
.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
|
|
|
|
.if ${ARCH} == "sparc64"
|
|
BROKEN= Gets internal gcc error on ${ARCH}
|
|
.endif
|
|
|
|
LIB_DEPENDS+= boost_regex:${PORTSDIR}/devel/boost-libs
|
|
LIB_DEPENDS+= boost_python:${PORTSDIR}/devel/boost-python-libs
|
|
|
|
pre-everything::
|
|
@${ECHO_MSG}
|
|
@${ECHO_MSG} "Warning: building this port eats up to 1.5 GB of RAM (32 bits) or 3 GB (64 bits)"
|
|
@${ECHO_MSG} "of RAM; do not try to build it on a small configuration!"
|
|
@${ECHO_MSG}
|
|
|
|
pre-configure:
|
|
${REINPLACE_CMD} -e \
|
|
's|JNI_LIBS="|JNI_LIBS="-L${JAVA_HOME}/jre/lib/${ARCH}/client -Wl,-rpath,${JAVA_HOME}/jre/lib/${ARCH}/client |' \
|
|
${WRKSRC}/configure
|
|
${REINPLACE_CMD} -e \
|
|
's|-rpath $$(libdir)|-rpath $$(libdir) -rpath ${JAVA_HOME}/jre/lib/${ARCH}/client|' \
|
|
${WRKSRC}/src/Makefile.in
|
|
${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -E -e \
|
|
's|-DG[[:alpha:]]*_DISABLE_DEPRECATED||g'
|
|
.for cfg in ${LIBTOOLFILES}
|
|
${REINPLACE_CMD} -e \
|
|
"/hardcode_libdir_flag_spec/s|\(=.\)\(.*\)\(\$$libdir\)|& \2${JAVA_HOME}/jre/lib/${ARCH}/client|" \
|
|
${WRKSRC}/${cfg}
|
|
.endfor
|
|
${REINPLACE_CMD} -e 's|$$(libdir)/mozilla/plugins|${WEBPLUGINS_DIR}|' \
|
|
${WRKSRC}/src/Makefile.in
|
|
.if ${GECKO} != "firefox"
|
|
${REINPLACE_CMD} -e "s|FIREFOX_JS|${GECKO:S/19//:U}_JS|g;s|firefox-js|${GECKO:S/19//}-js|" \
|
|
${WRKSRC}/configure
|
|
${REINPLACE_CMD} -e "s|firefox-plugin|${GECKO:S/19//}-plugin|g" \
|
|
${WRKSRC}/configure
|
|
${REINPLACE_CMD} -e "s|mozilla-plugin|${GECKO:S/19//}|g" \
|
|
${WRKSRC}/configure
|
|
${REINPLACE_CMD} -e "s|boost_thread-mt|boost_thread|g" \
|
|
${WRKSRC}/configure
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${CP} -R ${WRKSRC}/doc/manual/ ${DOCSDIR}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/models/*.wrl ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
regression-test:
|
|
(cd ${BUILD_WRKSRC}/tests ; \
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check-TESTS)
|
|
|
|
.include <bsd.port.post.mk>
|