summaryrefslogtreecommitdiff
path: root/jpeg/jpeg_6b.oe
blob: df8fc6c083e9f399e566489f6027c08bd4ec1879 (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
SECTION = "libs"
PRIORITY = "required"
MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
DEPENDS = "virtual/libc"
DESCRIPTION = "libjpeg is a library for handling the JPEG (JFIF) image format."

SRC_URI = "http://www.ijg.org/files/jpegsrc.v${PV}.tar.gz \
	   file://${FILESDIR}/debian.patch;patch=1 \
	   file://${FILESDIR}/ldflags.patch;patch=1"

inherit autotools libtool

EXTRA_OECONF="--enable-static --enable-shared"

CFLAGS_append = " -D_REENTRANT"

do_stage() {
	install -m 644 -D jconfig.h ${STAGING_INCDIR}/jconfig.h
	install -m 644 -D jpeglib.h ${STAGING_INCDIR}/jpeglib.h
	install -m 644 -D jmorecfg.h ${STAGING_INCDIR}/jmorecfg.h
	install -m 644 -D jerror.h ${STAGING_INCDIR}/jerror.h
	install -m 644 -D jpegint.h ${STAGING_INCDIR}/jpegint.h
	oe_soinstall .libs/libjpeg.so.62.0.0 ${STAGING_LIBDIR}/
}

do_install() {
	install -d ${D}/${bindir} ${D}/${includedir} \
		   ${D}/${mandir}/man1 ${D}/${libdir}
	oe_runmake 'prefix=${D}/${prefix}' 'exec_prefix=${D}/${exec_prefix}' \
		   install
}