| @@ -1,16 +1,17 @@ | | | @@ -1,16 +1,17 @@ |
1 | # $NetBSD: Makefile,v 1.61 2016/12/30 16:14:32 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.62 2017/01/19 10:19:26 markd Exp $ |
2 | | | 2 | |
3 | DISTNAME= cups-filters-1.13.2 | | 3 | DISTNAME= cups-filters-1.13.2 |
| | | 4 | PKGREVISION= 1 |
4 | CATEGORIES= print | | 5 | CATEGORIES= print |
5 | MASTER_SITES= http://openprinting.org/download/cups-filters/ | | 6 | MASTER_SITES= http://openprinting.org/download/cups-filters/ |
6 | EXTRACT_SUFX= .tar.xz | | 7 | EXTRACT_SUFX= .tar.xz |
7 | | | 8 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters | | 10 | HOMEPAGE= http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters |
10 | COMMENT= Backends, filters, and other software for cups | | 11 | COMMENT= Backends, filters, and other software for cups |
11 | LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND mit | | 12 | LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND mit |
12 | | | 13 | |
13 | GNU_CONFIGURE= yes | | 14 | GNU_CONFIGURE= yes |
14 | USE_LIBTOOL= yes | | 15 | USE_LIBTOOL= yes |
15 | USE_TOOLS+= bash:run pkg-config gmake | | 16 | USE_TOOLS+= bash:run pkg-config gmake |
16 | USE_LANGUAGES= c c++ | | 17 | USE_LANGUAGES= c c++ |
| @@ -33,34 +34,35 @@ REPLACE_BASH+= filter/braille/filters/te | | | @@ -33,34 +34,35 @@ REPLACE_BASH+= filter/braille/filters/te |
33 | .include "../../mk/bsd.prefs.mk" | | 34 | .include "../../mk/bsd.prefs.mk" |
34 | | | 35 | |
35 | .if ${OPSYS} == "Darwin" | | 36 | .if ${OPSYS} == "Darwin" |
36 | CFLAGS+= -framework IOKit | | 37 | CFLAGS+= -framework IOKit |
37 | .endif | | 38 | .endif |
38 | | | 39 | |
39 | .if ${INIT_SYSTEM} == "rc.d" | | 40 | .if ${INIT_SYSTEM} == "rc.d" |
40 | CONFIGURE_ARGS+= --with-rcdir=${PREFIX}/share/examples/rc.d | | 41 | CONFIGURE_ARGS+= --with-rcdir=${PREFIX}/share/examples/rc.d |
41 | CONFIGURE_ARGS+= --with-rclevels="" | | 42 | CONFIGURE_ARGS+= --with-rclevels="" |
42 | .endif | | 43 | .endif |
43 | CONFIGURE_ARGS+= --disable-ldap | | 44 | CONFIGURE_ARGS+= --disable-ldap |
44 | CONFIGURE_ARGS+= --disable-mutool | | 45 | CONFIGURE_ARGS+= --disable-mutool |
45 | CONFIGURE_ARGS+= --with-shell=${TOOLS_PATH.bash} | | 46 | CONFIGURE_ARGS+= --with-shell=${TOOLS_PATH.bash} |
| | | 47 | CONFIGURE_ARGS+= --with-pdftops-path=${PREFIX}/bin/pdftops |
46 | | | 48 | |
47 | INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples/cups-filters | | 49 | INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples/cups-filters |
48 | | | 50 | |
49 | CONF_FILES= ${PREFIX}/share/examples/cups-filters/fonts/conf.d/99pdftoopvp.conf ${PKG_SYSCONFDIR}/fontconfig/conf.d/99pdftoopvp.conf | | 51 | CONF_FILES= ${PREFIX}/share/examples/cups-filters/fonts/conf.d/99pdftoopvp.conf ${PKG_SYSCONFDIR}/fontconfig/conf.d/99pdftoopvp.conf |
50 | CONF_FILES+= ${PREFIX}/share/examples/cups-filters/cups-browsed.conf ${PKG_SYSCONFDIR}/cups/cups-browsed.conf | | 52 | CONF_FILES+= ${PREFIX}/share/examples/cups-filters/cups-browsed.conf ${PKG_SYSCONFDIR}/cups/cups-browsed.conf |
51 | | | 53 | |
52 | post-install: | | 54 | post-install: |
53 | ${MV} ${DESTDIR}${PREFIX}/etc/cups/cups-browsed.conf ${DESTDIR}${PREFIX}/share/examples/cups-filters/cups-browsed.conf | | 55 | ${MV} ${DESTDIR}${PKG_SYSCONFDIR}/cups/cups-browsed.conf ${DESTDIR}${PREFIX}/share/examples/cups-filters/cups-browsed.conf |
54 | # backends that need root access should not have world read and execute permissions | | 56 | # backends that need root access should not have world read and execute permissions |
55 | ${CHMOD} go-rwx ${DESTDIR}${PREFIX}/libexec/cups/backend/parallel | | 57 | ${CHMOD} go-rwx ${DESTDIR}${PREFIX}/libexec/cups/backend/parallel |
56 | ${CHMOD} go-rwx ${DESTDIR}${PREFIX}/libexec/cups/backend/serial | | 58 | ${CHMOD} go-rwx ${DESTDIR}${PREFIX}/libexec/cups/backend/serial |
57 | | | 59 | |
58 | .include "../../devel/glib2/buildlink3.mk" | | 60 | .include "../../devel/glib2/buildlink3.mk" |
59 | .include "../../devel/zlib/buildlink3.mk" | | 61 | .include "../../devel/zlib/buildlink3.mk" |
60 | .include "../../fonts/fontconfig/buildlink3.mk" | | 62 | .include "../../fonts/fontconfig/buildlink3.mk" |
61 | .include "../../graphics/freetype2/buildlink3.mk" | | 63 | .include "../../graphics/freetype2/buildlink3.mk" |
62 | .include "../../graphics/lcms2/buildlink3.mk" | | 64 | .include "../../graphics/lcms2/buildlink3.mk" |
63 | .include "../../graphics/png/buildlink3.mk" | | 65 | .include "../../graphics/png/buildlink3.mk" |
64 | .include "../../graphics/tiff/buildlink3.mk" | | 66 | .include "../../graphics/tiff/buildlink3.mk" |
65 | .include "../../net/avahi/buildlink3.mk" | | 67 | .include "../../net/avahi/buildlink3.mk" |
66 | BUILDLINK_ABI_DEPENDS.cups+= cups>=1.7.4nb1 | | 68 | BUILDLINK_ABI_DEPENDS.cups+= cups>=1.7.4nb1 |