]> code.ossystems Code Review - openembedded-core.git/commitdiff
cups: clean up autotools use
authorRoss Burton <ross.burton@intel.com>
Tue, 9 Jun 2015 18:37:49 +0000 (19:37 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Jun 2015 22:55:45 +0000 (23:55 +0100)
Instead of hand-rolling a do_configure() simply use autotools and disable
autoheader (upstream uses a hand-generated config.h.in).

Also do_compile() doesn't need to pass SSLLIBS as configure uses pkgconfig to
find gnutls, LIBPNG and LIBJPEG are not used anywhere in the build system, and
LIBZ is detected correctly.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-extended/cups/cups.inc

index df47c81d59cd28a9e78630e051a01b2709da37c1..ba50296ba7da09ae64914bdbcc8b11b11eb77d26 100644 (file)
@@ -43,13 +43,7 @@ EXTRA_OECONF = " \
                --without-java \
                "
 
-
-do_configure() {
-       gnu-configize
-       libtoolize --force
-       autoconf --force
-       DSOFLAGS="${LDFLAGS}" SERVERBIN="${libdir}/cups" oe_runconf
-}
+EXTRA_AUTORECONF += "--exclude=autoheader"
 
 do_compile () {
        sed -i s:STRIP:NOSTRIP: Makedefs
@@ -63,11 +57,7 @@ do_compile () {
        echo "install-headers:" >> man/Makefile
        echo "install-libs:" >> man/Makefile
 
-       oe_runmake "SSLLIBS=-lgnutls -L${STAGING_LIBDIR}" \
-                  "LIBPNG=-lpng -lm -L${STAGING_LIBDIR}" \
-                  "LIBJPEG=-ljpeg -L${STAGING_LIBDIR}" \
-                  "LIBZ=-lz -L${STAGING_LIBDIR}" \
-                  "-I."
+       oe_runmake
 }
 
 do_install () {