diff options
Diffstat (limited to 'meta/packages/jpeg/jpeg_6b.bb')
| -rw-r--r-- | meta/packages/jpeg/jpeg_6b.bb | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/meta/packages/jpeg/jpeg_6b.bb b/meta/packages/jpeg/jpeg_6b.bb new file mode 100644 index 0000000000..23e3ed82be --- /dev/null +++ b/meta/packages/jpeg/jpeg_6b.bb | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | PR = "r2" | ||
| 2 | SECTION = "libs" | ||
| 3 | PRIORITY = "required" | ||
| 4 | MAINTAINER = "Chris Larson <kergoth@handhelds.org>" | ||
| 5 | DEPENDS = "libtool-cross" | ||
| 6 | DESCRIPTION = "libjpeg is a library for handling the JPEG (JFIF) image format." | ||
| 7 | PACKAGES =+ "jpeg-tools " | ||
| 8 | FILES_jpeg-tools = "${bindir}" | ||
| 9 | LICENSE ="jpeg" | ||
| 10 | SRC_URI = "http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz \ | ||
| 11 | file://debian.patch;patch=1 \ | ||
| 12 | file://ldflags.patch;patch=1 \ | ||
| 13 | file://paths.patch;patch=1" | ||
| 14 | S = "${WORKDIR}/jpeg-${PV}" | ||
| 15 | |||
| 16 | inherit autotools | ||
| 17 | |||
| 18 | EXTRA_OECONF="--enable-static --enable-shared" | ||
| 19 | EXTRA_OEMAKE='"LIBTOOL=${STAGING_BINDIR}/${HOST_SYS}-libtool"' | ||
| 20 | |||
| 21 | CFLAGS_append = " -D_REENTRANT" | ||
| 22 | |||
| 23 | do_stage() { | ||
| 24 | install -m 644 jconfig.h ${STAGING_INCDIR}/jconfig.h | ||
| 25 | install -m 644 jpeglib.h ${STAGING_INCDIR}/jpeglib.h | ||
| 26 | install -m 644 jmorecfg.h ${STAGING_INCDIR}/jmorecfg.h | ||
| 27 | install -m 644 jerror.h ${STAGING_INCDIR}/jerror.h | ||
| 28 | install -m 644 jpegint.h ${STAGING_INCDIR}/jpegint.h | ||
| 29 | oe_libinstall -so libjpeg ${STAGING_LIBDIR} | ||
| 30 | } | ||
| 31 | |||
| 32 | do_install() { | ||
| 33 | install -d ${D}${bindir} ${D}${includedir} \ | ||
| 34 | ${D}${mandir}/man1 ${D}${libdir} | ||
| 35 | oe_runmake 'DESTDIR=${D}' install | ||
| 36 | } | ||
