blob: b930870bc63c0bc56c311ee27504e37c249edd35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
DESCRIPTION = "libjpeg is a library for handling the JPEG (JFIF) image format."
LICENSE ="jpeg"
SECTION = "libs"
PRIORITY = "required"
DEPENDS = "libtool-cross"
PR = "r6"
SRC_URI = "http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz \
file://debian.patch;patch=1 \
file://ldflags.patch;patch=1 \
file://paths.patch;patch=1 \
file://libtool_tweak.patch;patch=1"
S = "${WORKDIR}/jpeg-${PV}"
inherit autotools
EXTRA_OECONF="--enable-static --enable-shared"
EXTRA_OEMAKE='"LIBTOOL=${STAGING_BINDIR_NATIVE}/${HOST_SYS}-libtool"'
CFLAGS_append = " -D_REENTRANT"
do_configure_prepend () {
rm -f ${S}/ltconfig
rm -f ${S}/ltmain.sh
}
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 'DESTDIR=${D}' install
}
PACKAGES =+ "jpeg-tools "
FILES_jpeg-tools = "${bindir}/*"
|