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 /print/foomatic-ppds | |
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 'print/foomatic-ppds')
-rw-r--r-- | print/foomatic-ppds/Makefile | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/print/foomatic-ppds/Makefile b/print/foomatic-ppds/Makefile index 384485c91ef..b156863f1a9 100644 --- a/print/foomatic-ppds/Makefile +++ b/print/foomatic-ppds/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2007/03/14 12:12:57 markd Exp $ +# $NetBSD: Makefile,v 1.6 2007/10/25 21:04:23 jlam Exp $ .include "Makefile.common" @@ -20,19 +20,18 @@ COMMENT= Foomatic PPDs collection DEPENDS= foomatic-filters>=3.0.2:../../print/foomatic-filters REQD_DIRS= share/foomatic -PLIST_SRC= ${WRKDIR}/PLIST_SRC CHECK_PORTABILITY_SKIP= install -do-build: - ${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC} - cd ${WRKSRC}/share; \ - ${FIND} ppd -type f -print | ${SORT} -u | \ - ${SED} -e "s|^|share/foomatic/|" >> ${PLIST_SRC} - cd ${WRKSRC}/share; \ - ${FIND} ppd -type d -print | ${SORT} -ur | \ - ${SED} -e "s|^|@dirrm share/foomatic/|" >> ${PLIST_SRC} - ${ECHO} "@dirrm share/foomatic" >> ${PLIST_SRC} +GENERATE_PLIST+= \ + ( cd ${WRKSRC}/share; \ + ${FIND} ppd -type f -print | ${SORT} -u | \ + ${SED} -e "s|^|share/foomatic/|"; \ + ${FIND} ppd -type d -print | ${SORT} -ur | \ + ${SED} -e "s|^|@dirrm share/foomatic/|"; \ + ${ECHO} "@dirrm share/foomatic" ); + +do-build: # nothing do-install: ${CP} -R ${WRKSRC}/share/ppd ${PREFIX}/share/foomatic/ppd |