diff options
author | gerald <gerald@FreeBSD.org> | 2005-05-20 08:56:12 +0800 |
---|---|---|
committer | gerald <gerald@FreeBSD.org> | 2005-05-20 08:56:12 +0800 |
commit | b06e09b1566bf231203f59450366f6c7390c469d (patch) | |
tree | d08c1b8b5af2b65d0c0e7f102f8bc64670f933e5 /lang/gcc33 | |
parent | 2b0787b203070ed9d82aa80d26f0771821e1d53d (diff) | |
download | freebsd-ports-gnome-b06e09b1566bf231203f59450366f6c7390c469d.tar.gz freebsd-ports-gnome-b06e09b1566bf231203f59450366f6c7390c469d.tar.zst freebsd-ports-gnome-b06e09b1566bf231203f59450366f6c7390c469d.zip |
Fix (and simplify) the handling of man pages on old systems with Perl 5.0.
Point out by: pointyhat
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 |