a20c69d22f
pkgsrc changes: - Fix build for (at least) older NetBSD versions that do not have execvpe(3). Changes: CHANGES IN V1.11.6 - pdftops: Do not default to simply "pdftops" when calling the Poppler pdftops utility, as the $PATH of CUPS when running filters/backends starts with /usr/lib/cups/filter/ and then pdftops would call itself (Bug #1380).
69 lines
2.7 KiB
Makefile
69 lines
2.7 KiB
Makefile
# $NetBSD: Makefile,v 1.57 2016/11/06 11:21:19 leot Exp $
|
|
|
|
DISTNAME= cups-filters-1.11.6
|
|
CATEGORIES= print
|
|
MASTER_SITES= http://openprinting.org/download/cups-filters/
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters
|
|
COMMENT= Backends, filters, and other software for cups
|
|
LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND mit
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= bash:run pkg-config gmake
|
|
USE_LANGUAGES= c c++
|
|
|
|
BUILD_DEPENDS+= gdbus-codegen-[0-9]*:../../devel/gdbus-codegen
|
|
DEPENDS+= poppler-utils-[0-9]*:../../print/poppler-utils
|
|
|
|
PKGCONFIG_OVERRIDE+= libcupsfilters.pc.in
|
|
PKGCONFIG_OVERRIDE+= libfontembed.pc.in
|
|
|
|
CONFLICTS+= cups<1.6
|
|
|
|
REPLACE_BASH+= filter/braille/drivers/generic/brftoembosser.in
|
|
REPLACE_BASH+= filter/braille/drivers/index/imageubrltoindexv3.in
|
|
REPLACE_BASH+= filter/braille/drivers/index/imageubrltoindexv4.in
|
|
REPLACE_BASH+= filter/braille/drivers/index/textbrftoindexv3.in
|
|
REPLACE_BASH+= filter/braille/filters/imagetobrf.in
|
|
REPLACE_BASH+= filter/braille/filters/texttobrf.in
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${INIT_SYSTEM} == "rc.d"
|
|
CONFIGURE_ARGS+= --with-rcdir=${PREFIX}/share/examples/rc.d
|
|
CONFIGURE_ARGS+= --with-rclevels=""
|
|
.endif
|
|
CONFIGURE_ARGS+= --disable-ldap
|
|
CONFIGURE_ARGS+= --disable-mutool
|
|
CONFIGURE_ARGS+= --with-shell=${TOOLS_PATH.bash}
|
|
|
|
INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples/cups-filters
|
|
|
|
CONF_FILES= ${PREFIX}/share/examples/cups-filters/fonts/conf.d/99pdftoopvp.conf ${PKG_SYSCONFDIR}/fontconfig/conf.d/99pdftoopvp.conf
|
|
CONF_FILES+= ${PREFIX}/share/examples/cups-filters/cups-browsed.conf ${PKG_SYSCONFDIR}/cups/cups-browsed.conf
|
|
|
|
post-install:
|
|
${MV} ${DESTDIR}${PREFIX}/etc/cups/cups-browsed.conf ${DESTDIR}${PREFIX}/share/examples/cups-filters/cups-browsed.conf
|
|
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../fonts/fontconfig/buildlink3.mk"
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
.include "../../graphics/lcms2/buildlink3.mk"
|
|
.include "../../graphics/png/buildlink3.mk"
|
|
.include "../../graphics/tiff/buildlink3.mk"
|
|
.include "../../net/avahi/buildlink3.mk"
|
|
BUILDLINK_ABI_DEPENDS.cups+= cups>=1.7.4nb1
|
|
.include "../../print/cups/buildlink3.mk"
|
|
.include "../../print/ghostscript/buildlink3.mk"
|
|
.include "../../print/ijs/buildlink3.mk"
|
|
.include "../../print/poppler-cpp/buildlink3.mk"
|
|
.include "../../print/poppler-glib/buildlink3.mk"
|
|
BUILDLINK_ABI_DEPENDS.poppler-includes?= poppler-includes>=0.26.1nb1
|
|
.include "../../print/poppler-includes/buildlink3.mk"
|
|
.include "../../print/qpdf/buildlink3.mk"
|
|
.include "../../mk/jpeg.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|