1 DESCRIPTION = "libjpeg is a library for handling the JPEG (JFIF) image format."
6 DEPENDS = "libtool-cross"
7 RPROVIDES_${PN} = "jpeg"
11 #SRC_URI = "http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz \
12 SRC_URI = "ftp://aeneas.mit.edu/pub/gnu/ghostscript/jpegsrc.v${PV}.tar.gz \
13 file://debian.patch;patch=1 \
14 file://ldflags.patch;patch=1 \
15 file://paths.patch;patch=1 \
16 file://libtool_tweak.patch;patch=1"
17 S = "${WORKDIR}/jpeg-${PV}"
21 EXTRA_OECONF="--enable-static --enable-shared"
22 EXTRA_OEMAKE='"LIBTOOL=${STAGING_BINDIR_NATIVE}/${HOST_SYS}-libtool"'
24 CFLAGS_append = " -D_REENTRANT"
26 do_configure_prepend () {
32 install -m 644 jconfig.h ${STAGING_INCDIR}/jconfig.h
33 install -m 644 jpeglib.h ${STAGING_INCDIR}/jpeglib.h
34 install -m 644 jmorecfg.h ${STAGING_INCDIR}/jmorecfg.h
35 install -m 644 jerror.h ${STAGING_INCDIR}/jerror.h
36 install -m 644 jpegint.h ${STAGING_INCDIR}/jpegint.h
37 oe_libinstall -so libjpeg ${STAGING_LIBDIR}
41 install -d ${D}${bindir} ${D}${includedir} \
42 ${D}${mandir}/man1 ${D}${libdir}
43 oe_runmake 'DESTDIR=${D}' install
46 PACKAGES =+ "jpeg-tools "
47 FILES_jpeg-tools = "${bindir}/*"