1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

- update to 4.10.1 [1]

- support stage
- switch to USES

PR:		ports/183280 [1]
Submitted by:	pfg [1]
This commit is contained in:
Florian Smeets 2013-10-24 20:08:22 +00:00
parent f0c61ecb95
commit 466b59ed8e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331527
2 changed files with 15 additions and 16 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= nspr
DISTVERSION= 4.10
DISTVERSION= 4.10.1
CATEGORIES= devel
MASTER_SITES= MOZILLA/${PORTNAME}/releases/v${PORTVERSION}/src
@ -11,8 +11,8 @@ COMMENT= A platform-neutral API for system level and libc like functions
WRKSRC= ${WRKDIR}/${DISTNAME}/nspr/build
USES= gmake
USE_LDCONFIG= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_SCRIPT=../configure
CONFIGURE_ARGS= --srcdir=${WRKSRC:H}
@ -21,7 +21,6 @@ MAKE_ENV= DIST=${WRKSRC}/dist
LIBS= libnspr4.so.1 libplc4.so.1 libplds4.so.1
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "arm"
@ -33,24 +32,24 @@ CONFIGURE_ARGS+=--disable-debug
.endif
do-install:
${MKDIR} ${PREFIX}/include/nspr
${MKDIR} ${STAGEDIR}${PREFIX}/include/nspr
${TAR} -C ${WRKSRC}/dist/include --dereference -cf - . | \
${TAR} -C ${PREFIX}/include -xof -
${FIND} ${PREFIX}/include/nspr -type d | \
${TAR} -C ${STAGEDIR}${PREFIX}/include -xof -
${FIND} ${STAGEDIR}${PREFIX}/include/nspr -type d | \
${XARGS} ${CHMOD} 0755
${FIND} ${PREFIX}/include/nspr -type f | \
${FIND} ${STAGEDIR}${PREFIX}/include/nspr -type f | \
${XARGS} ${CHMOD} ${SHAREMODE}
${TAR} -C ${WRKSRC}/dist/lib --dereference -cf - . | \
${TAR} -C ${PREFIX}/lib -xof -
${INSTALL_SCRIPT} ${WRKSRC}/config/nspr-config ${PREFIX}/bin
${MKDIR} ${PREFIX}/libdata/pkgconfig
${INSTALL_DATA} ${WRKSRC}/config/nspr.pc ${PREFIX}/libdata/pkgconfig
${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} ${PREFIX}/lib/${lib}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${lib}
.endif
${CHMOD} ${BINMODE} ${PREFIX}/lib/${lib}
${LN} -sf ${lib} ${PREFIX}/lib/${lib:R}
${CHMOD} ${BINMODE} ${STAGEDIR}${PREFIX}/lib/${lib}
${LN} -sf ${lib} ${STAGEDIR}${PREFIX}/lib/${lib:R}
.endfor
prtests:

View File

@ -1,2 +1,2 @@
SHA256 (nspr-4.10.tar.gz) = 0cfbe561676b92e5af3ddc7ac77452014e3da8885da66baec811e7354138cc16
SIZE (nspr-4.10.tar.gz) = 1103862
SHA256 (nspr-4.10.1.tar.gz) = 0c2f8dc265f1e9b2600fd519430a1f960799888857bbb1538343a1b16ba41b20
SIZE (nspr-4.10.1.tar.gz) = 1102858