diff options
author | jlam <jlam@pkgsrc.org> | 2007-10-25 21:04:21 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2007-10-25 21:04:21 +0000 |
commit | b5e6ca3a7e36bba97ce2153247efaeb97ac6facb (patch) | |
tree | b8aa93dd00c811788670e0756c30a0c0cb8dea62 /lang/gcc34 | |
parent | 65d4b8652df4e0ae4c1dad6ea540fe4351790f8b (diff) | |
download | pkgsrc-b5e6ca3a7e36bba97ce2153247efaeb97ac6facb.tar.gz |
Move code that generates a dynamic PLIST from the {pre,do,post}-install
targets and into a GENERATE_PLIST variable definition. Remove some
unnecessary empty PLISTs as a result of properly setting GENERATE_PLIST.
Diffstat (limited to 'lang/gcc34')
-rw-r--r-- | lang/gcc34/Makefile | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/lang/gcc34/Makefile b/lang/gcc34/Makefile index 9abfb504bd8..5a9a3f559dd 100644 --- a/lang/gcc34/Makefile +++ b/lang/gcc34/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.39 2007/04/07 22:23:01 dmcmahill Exp $ +# $NetBSD: Makefile,v 1.40 2007/10/25 21:04:22 jlam Exp $ # DISTNAME= gcc-${GCC_VERSION} @@ -115,7 +115,6 @@ USE_TOOLS+= gmake makeinfo msgfmt HAS_CONFIGURE= YES # no GNU_CONFIGURE! CONFIG_SHELL?= ${SH} CONFIGURE_ENV+= CONFIG_SHELL=${CONFIG_SHELL:Q} -PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC .if !empty(BUILD_ADA:M[Yy][Ee][Ss]) @@ -226,14 +225,11 @@ do-install: done ) .endif -post-install: - ${CP} -f ${PKGDIR}/PLIST ${PLIST_SRC} - ${FIND} ${GCC_PREFIX} \( -type f -o -type l \) -print \ - | ${SORT} | ${SED} -e "s,${PREFIX}/,,g" \ - >> ${PLIST_SRC} - ${FIND} ${GCC_PREFIX} -type d -print \ - | ${SORT} -r | ${SED} -e "s,${PREFIX}/,@dirrm ,g" \ - >> ${PLIST_SRC} +GENERATE_PLIST+= \ + ${FIND} ${GCC_PREFIX} \( -type f -o -type l \) -print \ + | ${SORT} | ${SED} -e "s,${PREFIX}/,,g"; \ + ${FIND} ${GCC_PREFIX} -type d -print \ + | ${SORT} -r | ${SED} -e "s,${PREFIX}/,@dirrm ,g"; .include "../../mk/bsd.prefs.mk" .if !empty(BUILD_ADA:M[Yy][Ee][Ss]) |