3 MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
4 DEPENDS = "libtool-cross"
5 DESCRIPTION = "libjpeg is a library for handling the JPEG (JFIF) image format."
6 PACKAGES =+ "jpeg-tools "
7 FILES_jpeg-tools = "${bindir}"
9 SRC_URI = "http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz \
10 file://debian.patch;patch=1 \
11 file://ldflags.patch;patch=1 \
12 file://paths.patch;patch=1"
13 S = "${WORKDIR}/jpeg-${PV}"
17 EXTRA_OECONF="--enable-static --enable-shared"
18 EXTRA_OEMAKE='"LIBTOOL=${STAGING_BINDIR}/${HOST_SYS}-libtool"'
20 CFLAGS_append = " -D_REENTRANT"
23 install -m 644 jconfig.h ${STAGING_INCDIR}/jconfig.h
24 install -m 644 jpeglib.h ${STAGING_INCDIR}/jpeglib.h
25 install -m 644 jmorecfg.h ${STAGING_INCDIR}/jmorecfg.h
26 install -m 644 jerror.h ${STAGING_INCDIR}/jerror.h
27 install -m 644 jpegint.h ${STAGING_INCDIR}/jpegint.h
28 oe_libinstall -so libjpeg ${STAGING_LIBDIR}
32 install -d ${D}${bindir} ${D}${includedir} \
33 ${D}${mandir}/man1 ${D}${libdir}
34 oe_runmake 'DESTDIR=${D}' install