update Thu Feb 11 18:37:00 PST 2010
[pkgsrc.git] / print / foomatic-ppds / Makefile
1 # $NetBSD: Makefile,v 1.9 2010/02/12 00:06:13 joerg Exp $
2
3 PKG_DESTDIR_SUPPORT=    user-destdir
4
5 .include "Makefile.common"
6
7 DISTNAME=       foomatic-filters-ppds-${FOOMATIC_PPDS_VERSION}
8 PKGNAME=        ${DISTNAME:S/-filters-/-/}
9
10 # The definitive location of the distfile is at www.linuxprinting.org,
11 # but this tarball is regenerated daily from the Foomatic database.
12 # Rather than track this file very aggressively, we'll place a new
13 # copy at MASTER_SITE_LOCAL periodically and update this package
14 # accordingly.
15 #
16 MASTER_SITES=   ${MASTER_SITE_LOCAL} \
17                 http://www.linuxprinting.org/download/foomatic/
18
19 MAINTAINER=     jlam@pkgsrc.org
20 COMMENT=        Foomatic PPDs collection
21
22 DEPENDS=        foomatic-filters>=3.0.2:../../print/foomatic-filters
23
24 REQD_DIRS=      share/foomatic
25
26 CHECK_PORTABILITY_SKIP=         install
27
28 GENERATE_PLIST+=                                                        \
29         ( cd ${WRKSRC}/share;                                           \
30           ${FIND} ppd -type f -print | ${SORT} -u |                     \
31           ${SED} -e "s|^|share/foomatic/|" );
32
33 NO_BUILD=       yes
34
35 INSTALLATION_DIRS+=     share/foomatic
36
37 do-install:
38         ${CP} -R ${WRKSRC}/share/ppd ${DESTDIR}${PREFIX}/share/foomatic
39
40 .include "../../mk/bsd.pkg.mk"