blob: 8745978b36aa2b26102bc02f56178c028826997e (
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.8 2003/07/21 17:16:19 martti Exp $
DISTNAME= all-com-ppds
PKGNAME= cupsomatic-ppds-20010515
PKGREVISION= 1
WRKSRC= ${WRKDIR}/cupsomatic-ppd
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@NetBSD.org
HOMEPAGE= http://www.linuxprinting.org/cups-doc.html
COMMENT= Free software printer drivers for use with CUPS
CONFLICTS+= cupsomatic-200012??
DIST_SUBDIR= ${PKGNAME_NOREV}
DEPENDS+= cups>=1.1.14nb1:../../print/cups
DEPENDS+= cupsomatic-[0-9]*:../../print/cupsomatic
NO_CONFIGURE= # defined
NO_BUILD= # defined
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"
|