SECTION = "libs" PRIORITY = "required" MAINTAINER = "Chris Larson " DEPENDS = "virtual/libc" DESCRIPTION = "libjpeg is a library for handling the JPEG (JFIF) image format." PACKAGES =+ "jpeg-tools " FILES_jpeg-tools = "${bindir}" SRC_URI = "http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz \ file://${FILESDIR}/debian.patch;patch=1 \ file://${FILESDIR}/ldflags.patch;patch=1" inherit autotools EXTRA_OECONF="--enable-static --enable-shared" CFLAGS_append = " -D_REENTRANT" # This doesn't seem to exist, we need it to for our libtool.oeclass # to work properly, ensure that it does exist. do_configure_prepend() { touch ${S}/libtool } do_stage() { install -m 644 jconfig.h ${STAGING_INCDIR}/jconfig.h install -m 644 jpeglib.h ${STAGING_INCDIR}/jpeglib.h install -m 644 jmorecfg.h ${STAGING_INCDIR}/jmorecfg.h install -m 644 jerror.h ${STAGING_INCDIR}/jerror.h install -m 644 jpegint.h ${STAGING_INCDIR}/jpegint.h oe_libinstall -so libjpeg ${STAGING_LIBDIR} } do_install() { install -d ${D}/${bindir} ${D}/${includedir} \ ${D}/${mandir}/man1 ${D}/${libdir} oe_runmake 'prefix=${D}/${prefix}' 'exec_prefix=${D}/${exec_prefix}' \ install }