1 DESCRIPTION = "An Internet printing system for Unix."
2 SECTION = "console/utils"
4 DEPENDS = "gnutls jpeg dbus dbus-glib libpng zlib fakeroot-native"
7 SRC_URI = "ftp://ftp3.easysw.com/pub/cups/${PV}/cups-${PV}-source.tar.bz2 \
10 inherit autotools binconfig
12 LDFLAGS += " -L${STAGING_LIBDIR} "
34 sed -i s:STRIP:NOSTRIP: Makedefs
35 sed -i s:serial:: backend/Makefile
37 echo "all:" > man/Makefile
38 echo "install:" >> man/Makefile
40 oe_runmake "SSLLIBS=-lgnutls -L${STAGING_LIBDIR}" \
41 "LIBPNG=-lpng -lm -L${STAGING_LIBDIR}" \
42 "LIBJPEG=-ljpeg -L${STAGING_LIBDIR}" \
43 "LIBZ=-lz -L${STAGING_LIBDIR}" \
47 fakeroot do_install () {
48 oe_runmake "DSTROOT=${D}" install
52 install -d ${STAGING_INCDIR}/cups
53 install ${S}/cups/*.h ${STAGING_INCDIR}/cups/
54 install ${S}/filter/*.h ${STAGING_INCDIR}/cups/
55 oe_libinstall -C cups -so libcups ${STAGING_LIBDIR}
56 oe_libinstall -C filter -so libcupsimage ${STAGING_LIBDIR}
59 FILES_${PN}-dbg += "${libdir}/cups/backend/.debug \
60 ${libdir}/cups/cgi-bin/.debug \
61 ${libdir}/cups/filter/.debug \
62 ${libdir}/cups/monitor/.debug \
63 ${libdir}/cups/notifier/.debug \
64 ${libdir}/cups/daemon/.debug \
66 #package the html for the webgui inside the main packages (~1MB uncompressed)
68 FILES_${PN} += "${datadir}/doc/cups/images \
69 ${datadir}/doc/cups/*html \
70 ${datadir}/doc/cups/*.css \