-
Notifications
You must be signed in to change notification settings - Fork 124
/
Makefile
58 lines (40 loc) · 1.64 KB
/
Makefile
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
58
COMMENT= OpenPrinting CUPS filters
V= 2.0.0
DISTNAME= cups-filters-${V}
REVISION= 0
CATEGORIES= print
HOMEPAGE= https://wiki.linuxfoundation.org/openprinting/cups-filters
MAINTAINER= Antoine Jacoutot <[email protected]>
# GPLv3 - LGPLv2 - GPLv2+ - MIT
PERMIT_PACKAGE= Yes
WANTLIB += avahi-client avahi-common brotlidec brotlienc c crypto
WANTLIB += cups cupsfilters dbus-1 execinfo exif expat fontconfig
WANTLIB += freetype gmp hogweed iconv idn2 intl jpeg lcms2 lzma
WANTLIB += m nettle p11-kit png poppler-cpp ppd pthread qpdf ssl
WANTLIB += tasn1 tiff unistring z zstd
SITES= https://github.com/OpenPrinting/cups-filters/releases/download/${V}/
# cc1plus: error: unrecognized command line option "-std=c++0x"
COMPILER= base-clang ports-gcc
USE_GMAKE= Yes
LIB_DEPENDS= print/libcupsfilters>=2.0.0 \
print/libppd \
print/qpdf
# make it easier for users: bring in foomatic-db and allow the
# regeneration of PPD files from share/foomatic/db/source/*/*.xml
RUN_DEPENDS += print/foomatic-db-engine
FAKE_FLAGS= pkgfontconfigdir=${PREFIX}/share/examples/cups-filters \
pkgcupsserverrootdir=${PREFIX}/share/examples/cups-filters/cups
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-shell=/bin/ksh \
--disable-mutool
DEBUG_PACKAGES= ${BUILD_PACKAGES}
pre-configure:
sed -i 's,/etc/cups,${SYSCONFDIR}/cups,g' \
${WRKSRC}/filter/foomatic-rip/spooler.c
sed -i 's,/usr/local,${LOCALBASE},g' \
${WRKSRC}/filter/foomatic-rip/foomaticrip.c
post-install:
# handle old filters looking for these
cd ${PREFIX}/libexec/cups/filter && ln -s gstopxl pstopxl
cd ${PREFIX}/libexec/cups/filter && ln -s gstoraster pstoraster
.include <bsd.port.mk>