2010-09-27 14:44:05 +00:00
SUMMARY = " libjpeg is a library for handling the JPEG (JFIF) image format. "
DESCRIPTION = " libjpeg contains a library for handling the JPEG (JFIF) image format, as well as related programs for accessing the libjpeg functions. "
2010-07-01 09:50:37 +00:00
HOMEPAGE = " http://www.ijg.org/ "
BUGTRACKER = " "
2011-12-03 23:48:29 +00:00
LICENSE = " BSD-3-Clause "
2012-05-13 18:37:03 +00:00
LIC_FILES_CHKSUM = " file://README;md5=4f46756b064c225fae088903300e5c98 "
2010-07-01 09:50:37 +00:00
2005-08-31 10:45:47 +00:00
SECTION = " libs "
2006-11-21 12:15:23 +00:00
2009-12-22 15:31:14 +00:00
DEPENDS = " libtool-cross "
2012-10-27 08:48:17 +00:00
DEPENDS_class - native = " libtool-native "
2006-11-21 12:15:23 +00:00
2012-07-06 04:57:44 +00:00
PR = " r1 "
2006-11-21 12:15:23 +00:00
2005-08-31 10:45:47 +00:00
SRC_URI = " http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz \
2012-07-06 04:57:44 +00:00
file : / / debian - libjpeg7_7 - 1. diff \
file : / / fix_for_automake_1 .1 2. 1. patch "
2005-08-31 10:45:47 +00:00
2012-05-13 18:37:03 +00:00
SRC_URI [ md5sum ] = " 52654eb3b2e60c35731ea8fc87f1bd29 "
SRC_URI [ sha256sum ] = " 00029b1473f0f0ea72fbca3230e8cb25797fbb27e58ae2e46bb8bf5a806fe0b3 "
2010-12-08 04:06:29 +00:00
2005-08-31 10:45:47 +00:00
inherit autotools
EXTRA_OECONF = " --enable-static --enable-shared "
2009-11-25 14:39:19 +00:00
EXTRA_OEMAKE = ' " LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool " '
2005-08-31 10:45:47 +00:00
CFLAGS_append = " -D_REENTRANT "
2008-05-07 15:00:30 +00:00
do_configure_prepend ( ) {
rm - f $ { S } / ltconfig
rm - f $ { S } / ltmain . sh
}
2005-08-31 10:45:47 +00:00
do_install ( ) {
install - d $ { D } $ { bindir } $ { D } $ { includedir } \
$ { D } $ { mandir } / man1 $ { D } $ { libdir }
oe_runmake ' DESTDIR = $ { D } ' install
}
2006-11-21 12:15:23 +00:00
PACKAGES = + " jpeg-tools "
2010-09-27 14:44:05 +00:00
DESCRIPTION_jpeg - tools = " The jpeg-tools package includes the client programs for access libjpeg functionality. These tools allow for the compression, decompression, transformation and display of JPEG files. "
2006-11-21 12:15:23 +00:00
FILES_jpeg - tools = " ${bindir}/* "
2009-11-05 17:10:56 +00:00
BBCLASSEXTEND = " native "
2011-04-15 10:26:00 +00:00
2011-04-20 22:53:12 +00:00
pkg_postinst_ $ { PN } _ linuxstdbase ( ) {
2011-04-15 10:26:00 +00:00
if [ " $D " = " " ] ; then
if [ ! - e $ { libdir } / libjpeg . so .62 ] ; then
JPEG = ` find $ { libdir } - type f - name libjpeg . so . \ * . \ * . \ * `
ln - sf ` basename $ JPEG ` $ { libdir } / libjpeg . so .62
fi
else
exit 1
fi
}