diff options
Diffstat (limited to 'print/foomatic-ppds/Makefile')
-rw-r--r-- | print/foomatic-ppds/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/print/foomatic-ppds/Makefile b/print/foomatic-ppds/Makefile new file mode 100644 index 00000000000..3b97a5092f2 --- /dev/null +++ b/print/foomatic-ppds/Makefile @@ -0,0 +1,39 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/12/17 18:39:24 jlam Exp $ + +.include "Makefile.common" + +DISTNAME= foomatic-filters-ppds-${FOOMATIC_PPDS_VERSION} +PKGNAME= ${DISTNAME:S/-filters-/-/} + +# The definitive location of the distfile is at www.linuxprinting.org, +# but this tarball is regenerated daily from the Foomatic database. +# Rather than track this file very aggressively, we'll place a new +# copy at MASTER_SITE_LOCAL periodically and update this package +# accordingly. +# +MASTER_SITES= ${MASTER_SITE_LOCAL} \ + http://www.linuxprinting.org/download/foomatic/ + +MAINTAINER= jlam@pkgsrc.org +COMMENT= Foomatic PPDs collection + +DEPENDS= foomatic-filters>=3.0.2:../../print/foomatic-filters + +USE_PKGINSTALL= yes +REQD_DIRS= share/foomatic +PLIST_SRC= ${WRKDIR}/PLIST_SRC + +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} + +do-install: + ${CP} -R ${WRKSRC}/share/ppd ${PREFIX}/share/foomatic/ppd + +.include "../../mk/bsd.pkg.mk" |