summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/cups/cups16.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/cups/cups16.inc')
-rw-r--r--meta/recipes-extended/cups/cups16.inc101
1 files changed, 101 insertions, 0 deletions
diff --git a/meta/recipes-extended/cups/cups16.inc b/meta/recipes-extended/cups/cups16.inc
new file mode 100644
index 0000000000..9b0ae5b61d
--- /dev/null
+++ b/meta/recipes-extended/cups/cups16.inc
@@ -0,0 +1,101 @@
1SUMMARY = "An Internet printing system for Unix"
2DESCRIPTION = "An Internet printing system for Unix."
3SECTION = "console/utils"
4LICENSE = "GPLv2 & LGPLv2"
5DEPENDS = "gnutls libpng jpeg dbus dbus-glib zlib"
6PROVIDES = "cups14"
7
8SRC_URI = "ftp://ftp.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2"
9
10LEAD_SONAME = "libcupsdriver.so"
11
12inherit autotools binconfig
13
14EXTRA_OECONF = " \
15 --enable-gnutls \
16 --enable-dbus \
17 --enable-browsing \
18 --disable-openssl \
19 --disable-tiff \
20 --without-php \
21 --without-perl \
22 --without-python \
23 --without-java \
24 --with-pdftops=none \
25 "
26
27
28do_configure() {
29 gnu-configize
30 libtoolize --force
31 DSOFLAGS="${LDFLAGS}" SERVERBIN="${libdir}/cups" oe_runconf
32}
33
34do_compile () {
35 sed -i s:STRIP:NOSTRIP: Makedefs
36 sed -i s:serial:: backend/Makefile
37
38 echo "all:" > man/Makefile
39 echo "libs:" >> man/Makefile
40 echo "install:" >> man/Makefile
41 echo "install-data:" >> man/Makefile
42 echo "install-exec:" >> man/Makefile
43 echo "install-headers:" >> man/Makefile
44 echo "install-libs:" >> man/Makefile
45
46 oe_runmake "SSLLIBS=-lgnutls -L${STAGING_LIBDIR}" \
47 "LIBPNG=-lpng -lm -L${STAGING_LIBDIR}" \
48 "LIBJPEG=-ljpeg -L${STAGING_LIBDIR}" \
49 "LIBZ=-lz -L${STAGING_LIBDIR}" \
50 "-I."
51}
52
53fakeroot do_install () {
54 oe_runmake "DSTROOT=${D}" install
55
56 # This directory gets installed with perms 511, which makes packaging fail
57 chmod 0711 "${D}/${localstatedir}/run/cups/certs"
58 rmdir ${D}/${libdir}/${BPN}/driver
59}
60
61python do_package_append() {
62 import subprocess
63 # Change permissions back the way they were, they probably had a reason...
64 workdir = d.getVar('WORKDIR', True)
65 subprocess.call('chmod 0511 %s/install/cups/var/run/cups/certs' % workdir, shell=True)
66}
67
68PACKAGES =+ "${PN}-lib ${PN}-libimage"
69
70FILES_${PN} += "${libdir}/cups/backend \
71 ${libdir}/cups/cgi-bin \
72 ${libdir}/cups/filter \
73 ${libdir}/cups/monitor \
74 ${libdir}/cups/notifier \
75 ${libdir}/cups/daemon \
76 "
77
78FILES_${PN}-lib = "${libdir}/libcups.so.*"
79
80FILES_${PN}-libimage = "${libdir}/libcupsimage.so.*"
81
82FILES_${PN}-dbg += "${libdir}/cups/backend/.debug \
83 ${libdir}/cups/cgi-bin/.debug \
84 ${libdir}/cups/filter/.debug \
85 ${libdir}/cups/monitor/.debug \
86 ${libdir}/cups/notifier/.debug \
87 ${libdir}/cups/daemon/.debug \
88 "
89
90#package the html for the webgui inside the main packages (~1MB uncompressed)
91
92FILES_${PN} += "${datadir}/doc/cups/images \
93 ${datadir}/doc/cups/*html \
94 ${datadir}/doc/cups/*.css \
95 ${datadir}/icons/ \
96 "
97
98SYSROOT_PREPROCESS_FUNCS += "cups_sysroot_preprocess"
99cups_sysroot_preprocess () {
100 sed -i ${SYSROOT_DESTDIR}${bindir_crossscripts}/cups-config -e 's:cups_datadir=.*:cups_datadir=${datadir}/cups:' -e 's:cups_serverbin=.*:cups_serverbin=${libdir}/cups:'
101}