diff options
author | Gerald Pfeifer <gerald@FreeBSD.org> | 2005-05-20 00:56:12 +0000 |
---|---|---|
committer | Gerald Pfeifer <gerald@FreeBSD.org> | 2005-05-20 00:56:12 +0000 |
commit | e85f23b02032bed98538d59dc1377ec9d3224a99 (patch) | |
tree | e97cc1b6045fcaf0245bd015554f4b9ac937272f /lang/gcc33 | |
parent | dcd53826017502c20a2184091c01d41dfd134985 (diff) | |
download | ports-e85f23b02032bed98538d59dc1377ec9d3224a99.tar.gz ports-e85f23b02032bed98538d59dc1377ec9d3224a99.zip |
Fix (and simplify) the handling of man pages on old systems with Perl 5.0.
Point out by: pointyhat
Notes
Notes:
svn path=/head/; revision=135660
Diffstat (limited to 'lang/gcc33')
-rw-r--r-- | lang/gcc33/Makefile | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lang/gcc33/Makefile b/lang/gcc33/Makefile index 158beec0d94c..7390cfade652 100644 --- a/lang/gcc33/Makefile +++ b/lang/gcc33/Makefile @@ -93,7 +93,12 @@ post-build: check: build cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check -post-install: fake-manpages +post-install: + # man pages can only be generated if Perl >= 5.6 is installed, so + # fake them on 4.x systems. +.for mp in ${_MANPAGES} + ( ${TEST} -e ${mp} || ${TOUCH} ${TOUCH_FLAGS} ${mp} ) +.endfor @(for prog in \ ${TARGLIB}/cc1 ${TARGLIB}/cc1obj ${TARGLIB}/cc1plus \ ${TARGLIB}/collect2 ${TARGLIB}/f771 ; \ @@ -111,7 +116,7 @@ post-install: fake-manpages fi .endfor ${MV} -f ${PREFIX}/bin/g77${SUFFIX} ${PREFIX}/bin/g77-${SUFFIX} - ${MV} -f ${PREFIX}/man/man1/g77${SUFFIX}.1 ${PREFIX}/man/man1/g77-${SUFFIX}.1 + -${MV} -f ${PREFIX}/man/man1/g77${SUFFIX}.1 ${PREFIX}/man/man1/g77-${SUFFIX}.1 # These libraries are moved from PREFIX/lib to avoid conflicts with # the stock compiler. .for f in libstdc++ libsupc++ libg2c libfrtbegin libobjc ${EXTRA_LIBS} @@ -139,10 +144,3 @@ cklatest: .endfor .include <bsd.port.post.mk> - -fake-manpages: - # man pages can only be generated if Perl >= 5.6 is installed, so - # fake them on 4.x systems. -.for mp in ${_MANPAGES} - ( ${TEST} -e ${mp} || ${TOUCH} ${TOUCH_FLAGS} ${mp} ) -.endfor |