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