o fix installation permissions in do-install target

o un"echo" installation (less noise)
o add missing entry in PLIST

PR:		31016
Submitted by:	Patrick Li <pat@databits.net>
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2001-10-04 00:37:35 +00:00
parent e6dae42161
commit 9b68ceb7bc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48420
2 changed files with 16 additions and 14 deletions

View File

@ -26,29 +26,30 @@ MAKEFILE= gcc.mak
ALL_TARGET= clean all
USE_GMAKE= yes
FIND?= /usr/bin/find
pre-build:
${LN} -sf /usr/include/g++ ${WRKSRC}/../include
@${LN} -sf /usr/include/g++ ${WRKSRC}/../include
post-build:
.for lib in libstlport_gcc.so libstlport_gcc_debug.so libstlport_gcc_stldebug.so
${MV} ${WRKSRC}/../lib/${lib} ${WRKSRC}/../lib/${lib}.4_0_${PORTREVISION}
@${MV} ${WRKSRC}/../lib/${lib} ${WRKSRC}/../lib/${lib}.4_0_${PORTREVISION}
.endfor
-# get list from `export' files in version 4.1, rather than do this
cd ${WRKSRC}/../stlport ; ${RM} -rf BC50 SC5 config/new_compiler old_hp
find ${WRKSRC}/../stlport -name "*.orig" -delete
@cd ${WRKSRC}/../stlport ; ${RM} -rf BC50 SC5 config/new_compiler old_hp
@${FIND} ${WRKSRC}/../stlport -name "*.orig" -delete
do-install:
cd ${WRKSRC}/.. ; pax -rw stlport ${PREFIX}/include
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/include
${CHMOD} -R ${SHAREMODE} ${PREFIX}/include
${CHMOD} -R ugo+X ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/../lib/* ${PREFIX}/lib
@cd ${WRKSRC}/.. ; pax -rw stlport ${PREFIX}/include
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/include/stlport
@${CHMOD} -R ${SHAREMODE} ${PREFIX}/include/stlport
@${FIND} ${PREFIX}/include/stlport -type d -exec ${CHMOD} 0755 {} \;
@${INSTALL_DATA} ${WRKSRC}/../lib/* ${PREFIX}/lib
.for lib in libstlport_gcc.so libstlport_gcc_debug.so libstlport_gcc_stldebug.so
cd ${PREFIX}/lib ; ${LN} -sf ${lib}.4_0_${PORTREVISION} ${lib}
@cd ${PREFIX}/lib ; ${LN} -sf ${lib}.4_0_${PORTREVISION} ${lib}
.endfor
${MKDIR} ${PREFIX}/share/doc/html/stlport/images
cd ${WRKSRC}/../doc ; ${INSTALL_MAN} *.css *.html ${PREFIX}/share/doc/html/stlport
cd ${WRKSRC}/../doc ; ${INSTALL_MAN} images/* ${PREFIX}/share/doc/html/stlport/images
@${MKDIR} ${PREFIX}/share/doc/html/stlport/images
@cd ${WRKSRC}/../doc ; ${INSTALL_MAN} *.css *.html ${PREFIX}/share/doc/html/stlport
@cd ${WRKSRC}/../doc ; ${INSTALL_MAN} images/* ${PREFIX}/share/doc/html/stlport/images
.include <bsd.port.post.mk>

View File

@ -333,6 +333,7 @@ share/doc/html/stlport/vendor_interface.html
share/doc/html/stlport/wrappers.html
@dirrm share/doc/html/stlport/images
@dirrm share/doc/html/stlport
@unexec rmdir %D/share/doc/html 2>/dev/null || true
@dirrm include/stlport/wrap_std/h
@dirrm include/stlport/wrap_std
@dirrm include/stlport/using/h