blob: 41a88aec1a95e0b6c314896f4e8c06eec7369aa0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# $NetBSD: Makefile,v 1.12 2005/12/17 05:20:23 jlam Exp $
DISTNAME= all-com-ppds
PKGNAME= cupsomatic-ppds-20010515
PKGREVISION= 2
CATEGORIES= print
# Not sure why ${MASTER_SITE_LOCAL:=${PKGNAME}} doesn't work, but the
# following does the correct substitution.
#
.for subdir in ${PKGNAME}
MASTER_SITES= ${MASTER_SITE_LOCAL:=${subdir}/}
.endfor
# The definitive location of the distfile is at www.linuxprinting.org,
# but this file changes daily as more PPDs are added. 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+= http://www.linuxprinting.org/
MAINTAINER= jlam@pkgsrc.org
HOMEPAGE= http://www.linuxprinting.org/cups-doc.html
COMMENT= Free software printer drivers for use with CUPS
CONFLICTS+= cupsomatic-200012??
WRKSRC= ${WRKDIR}/cupsomatic-ppd
DIST_SUBDIR= ${PKGNAME_NOREV}
DEPENDS+= cups>=1.1.14nb1:../../print/cups
DEPENDS+= cupsomatic-[0-9]*:../../print/cupsomatic
NO_CONFIGURE= yes
NO_BUILD= yes
PLIST_SRC= ${WRKDIR}/PLIST
MODELDIR= share/cups/model
# Dynamically generate the PLIST during installation to ease package
# upgrading.
#
do-install:
${RM} -f ${PLIST_SRC}
${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC}
cd ${WRKSRC}/ppd; for dir in *; do ( \
cd $${dir}; for file in *.ppd; do \
${ECHO} "Installing ${PREFIX}/${MODELDIR}/$${dir}/$${file}"; \
${INSTALL_DATA_DIR} ${PREFIX}/${MODELDIR}/$${dir}; \
${INSTALL_DATA} $${file} \
${PREFIX}/${MODELDIR}/$${dir}/$${file}; \
${ECHO} "${MODELDIR}/$${dir}/$${file}" >> ${PLIST_SRC}; \
done; \
${ECHO} "@dirrm ${MODELDIR}/$${dir}" >> ${PLIST_SRC} ); \
done
.include "../../mk/bsd.pkg.mk"
|