summaryrefslogtreecommitdiff
path: root/package/jpeg
diff options
context:
space:
mode:
Diffstat (limited to 'package/jpeg')
-rw-r--r--package/jpeg/Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/package/jpeg/Makefile b/package/jpeg/Makefile
index 4b91d88b3..2ab0d4941 100644
--- a/package/jpeg/Makefile
+++ b/package/jpeg/Makefile
@@ -5,14 +5,16 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= jpeg
PKG_VERSION:= 7
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 382ef33b339c299b56baf1296cda9785
PKG_DESCR:= The Independent JPEG Groups JPEG runtime library
PKG_SECTION:= libs
PKG_URL:= http://www.ijg.org/
PKG_SITES:= http://www.ijg.org/files/
-PKG_SUBPKGS:= LIBJPEG
+PKG_SUBPKGS:= LIBJPEG JPEG_DEV
+PKGSD_JPEG_DEV:= development files for jpeg
+PKGSC_JPEG_DEV:= devel
DISTFILES:= ${PKG_NAME}src.v${PKG_VERSION}.tar.gz
@@ -23,9 +25,18 @@ endif
include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,LIBJPEG,libjpeg,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+$(eval $(call PKG_template,JPEG_DEV,libjpeg-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_JPEG_DEV},${PKGSC_JPEG_DEV}))
-post-install:
+SUB_INSTALLS-y:=
+SUB_INSTALLS-m:=
+SUB_INSTALLS-${ADK_PACKAGE_JPEG_DEV}+= jpeg-dev-install
+
+post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
${INSTALL_DIR} ${IDIR_LIBJPEG}/usr/lib
${CP} ${WRKINST}/usr/lib/libjpeg.so* ${IDIR_LIBJPEG}/usr/lib/
+jpeg-dev-install:
+ ${INSTALL_DIR} ${IDIR_JPEG_DEV}/usr/include
+ ${CP} ${WRKINST}/usr/include/*.h ${IDIR_JPEG_DEV}/usr/include
+
include ${TOPDIR}/mk/pkg-bottom.mk