mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
c80e090095
- Update Firefox ESR to 24.4.0 - Update Thunderbird to 24.4.0 - Update NSPR to 4.10.4 - Update NSS to 3.15.5 - Switch GSTREAMER option for non-esr ports to depend on multimedia/gstreamer1 [2] - Switch to Uses/compiler.mk, defaults to lang/gcc47 on 8.x and 9.x - Use port dependencies for libogg, libvorbis, libopus, harfbuzz, graphite2 - Enable readahead in url-classifier, asmjs, download resume like on Linux - Build www/firefox and www/seamonkey faster using unified compilation - Unbreak build on sparc64 [1] - Workaround OPTIMIZED_CFLAGS startup crash on 8.x and 9.x - OPTIMIZED_CFLAGS is enabled by default - A few DEBUG build fixes - Add clang 3.2/3.3/3.4 workarounds for i386 - Mention known GSTREAMER issue in pkg-message Submitted by: Jan Beich PR: ports/186580 [1] Requested by: kwm [2] Security: http://www.vuxml.org/freebsd/610de647-af8d-11e3-a25b-b4b52fce4ce8.html
85 lines
2.2 KiB
Makefile
85 lines
2.2 KiB
Makefile
# Created by: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= nspr
|
|
DISTVERSION= 4.10.4
|
|
CATEGORIES= devel
|
|
MASTER_SITES= MOZILLA/${PORTNAME}/releases/v${PORTVERSION}/src
|
|
|
|
MAINTAINER= gecko@FreeBSD.org
|
|
COMMENT= A platform-neutral API for system level and libc like functions
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/nspr/build
|
|
|
|
USES= gmake
|
|
USE_LDCONFIG= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_SCRIPT=../configure
|
|
CONFIGURE_ARGS= --srcdir=${WRKSRC:H}
|
|
|
|
MAKE_ENV= DIST=${WRKSRC}/dist
|
|
|
|
LIBS= libnspr4.so.1 libplc4.so.1 libplds4.so.1
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "arm"
|
|
BROKEN= Does not compile on arm
|
|
.endif
|
|
|
|
.if !defined(WITH_DEBUG)
|
|
CONFIGURE_ARGS+=--disable-debug
|
|
.endif
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/include/nspr
|
|
${TAR} -C ${WRKSRC}/dist/include --dereference -cf - . | \
|
|
${TAR} -C ${STAGEDIR}${PREFIX}/include -xof -
|
|
${FIND} ${STAGEDIR}${PREFIX}/include/nspr -type d | \
|
|
${XARGS} ${CHMOD} 0755
|
|
${FIND} ${STAGEDIR}${PREFIX}/include/nspr -type f | \
|
|
${XARGS} ${CHMOD} ${SHAREMODE}
|
|
${TAR} -C ${WRKSRC}/dist/lib --dereference -cf - . | \
|
|
${TAR} -C ${STAGEDIR}${PREFIX}/lib -xof -
|
|
${INSTALL_SCRIPT} ${WRKSRC}/config/nspr-config ${STAGEDIR}${PREFIX}/bin
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/libdata/pkgconfig
|
|
${INSTALL_DATA} ${WRKSRC}/config/nspr.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
|
|
.for lib in ${LIBS}
|
|
.if defined(STRIP) && ${STRIP} != ""
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${lib}
|
|
.endif
|
|
${CHMOD} ${BINMODE} ${STAGEDIR}${PREFIX}/lib/${lib}
|
|
${LN} -sf ${lib} ${STAGEDIR}${PREFIX}/lib/${lib:R}
|
|
.endfor
|
|
|
|
prtests:
|
|
${GMAKE} -C ${WRKSRC}/pr/tests
|
|
${LN} -sf libmy.so.1 ${WRKSRC}/pr/tests/dll/libmy.so
|
|
cd ${WRKSRC}/pr/tests && ../../../pr/tests/runtests.sh
|
|
|
|
libtests:
|
|
${GMAKE} -C ${WRKSRC}/lib/tests
|
|
${WRKSRC}/lib/tests/string
|
|
${WRKSRC}/lib/tests/base64t
|
|
# The test below is commented out, because arena requires
|
|
# command-line arguments. If you can provide reasonable values
|
|
# for it, please contact ${MAINTAINER}. Thank you.
|
|
# ${WRKSRC}/lib/tests/arena
|
|
#
|
|
|
|
test: libtests prtests
|
|
|
|
#regression-test: test
|
|
|
|
#.if defined(PACKAGE_BUILDING)
|
|
#post-build: test
|
|
#.else
|
|
post-build:
|
|
#
|
|
# Please, consider running ``make test'' to find any
|
|
# possible build problems.
|
|
#
|
|
#.endif
|
|
|
|
.include <bsd.port.post.mk>
|