diff options
author | Jingdong Lu <jingdong.lu@windriver.com> | 2011-02-01 10:32:09 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-01 23:59:41 +0000 |
commit | bbfd012c1ab981162c0f559e19dc27b19f6f3eab (patch) | |
tree | 6f90dcd57f50dfcedeb7f974d48d41a54ac7b901 /meta/recipes-extended/cups/cups14.inc | |
parent | c0811670ab12f22ca7e1ea03cfaec417bfba9b66 (diff) | |
download | poky-bbfd012c1ab981162c0f559e19dc27b19f6f3eab.tar.gz |
cups: add cups 1.4.6
This package has been added from meta-openembedded committed by Koen Kooi.
Changes from the meta-openembedded version:
* Add SUMMARY
* Change dependence name: libusb
* Add PR
Signed-off-by: Jingdong Lu <jingdong.lu@windriver.com>
Diffstat (limited to 'meta/recipes-extended/cups/cups14.inc')
-rw-r--r-- | meta/recipes-extended/cups/cups14.inc | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/meta/recipes-extended/cups/cups14.inc b/meta/recipes-extended/cups/cups14.inc new file mode 100644 index 0000000000..e64f239a6a --- /dev/null +++ b/meta/recipes-extended/cups/cups14.inc | |||
@@ -0,0 +1,85 @@ | |||
1 | SUMMARY = "An Internet printing system for Unix" | ||
2 | DESCRIPTION = "An Internet printing system for Unix." | ||
3 | SECTION = "console/utils" | ||
4 | LICENSE = "GPLv2 LGPLv2" | ||
5 | DEPENDS = "gnutls libpng jpeg dbus dbus-glib zlib" | ||
6 | PROVIDES = "cups14" | ||
7 | |||
8 | SRC_URI = "ftp://ftp.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2" | ||
9 | |||
10 | LEAD_SONAME = "libcupsdriver.so" | ||
11 | |||
12 | inherit autotools binconfig | ||
13 | |||
14 | EXTRA_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 | " | ||
25 | |||
26 | |||
27 | do_configure() { | ||
28 | gnu-configize | ||
29 | libtoolize --force | ||
30 | DSOFLAGS="${LDFLAGS}" oe_runconf | ||
31 | } | ||
32 | |||
33 | do_compile () { | ||
34 | sed -i s:STRIP:NOSTRIP: Makedefs | ||
35 | sed -i s:serial:: backend/Makefile | ||
36 | |||
37 | echo "all:" > man/Makefile | ||
38 | echo "libs:" >> man/Makefile | ||
39 | echo "install:" >> man/Makefile | ||
40 | echo "install-data:" >> man/Makefile | ||
41 | echo "install-exec:" >> man/Makefile | ||
42 | echo "install-headers:" >> man/Makefile | ||
43 | echo "install-libs:" >> man/Makefile | ||
44 | |||
45 | oe_runmake "SSLLIBS=-lgnutls -L${STAGING_LIBDIR}" \ | ||
46 | "LIBPNG=-lpng -lm -L${STAGING_LIBDIR}" \ | ||
47 | "LIBJPEG=-ljpeg -L${STAGING_LIBDIR}" \ | ||
48 | "LIBZ=-lz -L${STAGING_LIBDIR}" \ | ||
49 | "-I." | ||
50 | } | ||
51 | |||
52 | fakeroot do_install () { | ||
53 | oe_runmake "DSTROOT=${D}" install | ||
54 | |||
55 | # This directory gets installed with perms 511, which makes packaging fail | ||
56 | chmod 0711 "${D}/${localstatedir}/run/cups/certs" | ||
57 | } | ||
58 | |||
59 | python do_package_append() { | ||
60 | # Change permissions back the way they were, they probably had a reason... | ||
61 | workdir = bb.data.getVar('WORKDIR', d, 1) | ||
62 | os.system('chmod 0511 %s/install/cups/var/run/cups/certs' % workdir) | ||
63 | } | ||
64 | |||
65 | PACKAGES =+ "${PN}-lib ${PN}-libimage" | ||
66 | |||
67 | FILES_${PN}-lib = "${libdir}/libcups.so.*" | ||
68 | |||
69 | FILES_${PN}-libimage = "${libdir}/libcupsimage.so.*" | ||
70 | |||
71 | FILES_${PN}-dbg += "${libdir}/cups/backend/.debug \ | ||
72 | ${libdir}/cups/cgi-bin/.debug \ | ||
73 | ${libdir}/cups/filter/.debug \ | ||
74 | ${libdir}/cups/monitor/.debug \ | ||
75 | ${libdir}/cups/notifier/.debug \ | ||
76 | ${libdir}/cups/daemon/.debug \ | ||
77 | " | ||
78 | |||
79 | #package the html for the webgui inside the main packages (~1MB uncompressed) | ||
80 | |||
81 | FILES_${PN} += "${datadir}/doc/cups/images \ | ||
82 | ${datadir}/doc/cups/*html \ | ||
83 | ${datadir}/doc/cups/*.css \ | ||
84 | ${datadir}/icons/ \ | ||
85 | " | ||