Fix the permissions on installed libraries and headers.

Reported by:	Sprewell <sprewell@jaggeri.com>
This commit is contained in:
Joe Marcus Clarke 2009-10-18 18:05:38 +00:00
parent 1cf616c285
commit dcd5e046b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=243012

View file

@ -7,6 +7,7 @@
PORTNAME= nspr
DISTVERSION= 4.8
PORTREVISION= 1
CATEGORIES= devel
#MASTER_SITES= LOCAL/ahze
MASTER_SITES= ${MASTER_SITE_MOZILLA}
@ -43,12 +44,21 @@ do-install:
${MKDIR} ${PREFIX}/include/nspr
${TAR} -C ${WRKSRC}/dist/include --dereference -cf - . | \
${TAR} -C ${PREFIX}/include -xf -
${FIND} ${PREFIX}/include/nspr | \
${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP}
${FIND} ${PREFIX}/include/nspr -type d | \
${XARGS} ${CHMOD} 0755
${FIND} ${PREFIX}/include/nspr -type f | \
${XARGS} ${CHMOD} ${SHAREMODE}
${TAR} -C ${WRKSRC}/dist/lib --dereference -cf - . | \
${TAR} -C ${PREFIX}/lib -xf -
${INSTALL_SCRIPT} ${WRKSRC}/config/nspr-config ${PREFIX}/bin
${MKDIR} ${PREFIX}/libdata/pkgconfig
${INSTALL_DATA} ${WRKSRC}/config/nspr.pc ${PREFIX}/libdata/pkgconfig
.for lib in ${LIBS}
${STRIP_CMD} ${PREFIX}/lib/${lib}
${CHOWN} ${BINOWN}:${BINGRP} ${PREFIX}/lib/${lib}
${CHMOD} ${BINMODE} ${PREFIX}/lib/${lib}
${LN} -sf ${lib} ${PREFIX}/lib/${lib:R}
.endfor