diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-12-16 14:26:37 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-12-16 14:26:37 +0100 |
commit | 1d45a317cb0be93ad8f1d548d97744b350b7294d (patch) | |
tree | 46ebc3159796c321c066395aeb0fc588dcffee6d | |
parent | e675191cfaa9c388e8360b56cff12f6e7e702e18 (diff) |
add header subpackage
-rw-r--r-- | package/libpng/Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/package/libpng/Makefile b/package/libpng/Makefile index 62eac961e..83408d1d3 100644 --- a/package/libpng/Makefile +++ b/package/libpng/Makefile @@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk PKG_NAME:= libpng PKG_VERSION:= 1.2.44 -PKG_RELEASE:= 2 +PKG_RELEASE:= 3 PKG_MD5SUM:= 89b62f8daaeeab1342e307d6d1411ff1 PKG_DESCR:= A library for reading/writing PNG images PKG_SECTION:= libs @@ -14,6 +14,10 @@ PKG_BUILDDEP:= zlib PKG_URL:= http://www.libpng.org/pub/png/libpng.html PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=libpng/} +PKG_SUBPKGS:= LIBPNG LIBPNG_DEV +PKGSD_LIBPNG_DEV:= development files for libpng +PKGSC_LIBPNG_DEV:= devel + ifeq ($(ADK_STATIC),y) PKG_OPTS:= libonly endif @@ -21,9 +25,19 @@ endif include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,LIBPNG,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) +$(eval $(call PKG_template,LIBPNG_DEV,libpng-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBPNG_DEV},${PKGSC_LIBPNG_DEV},${PKG_OPTS})) + +SUB_INSTALLS-y:= +SUB_INSTALLS-m:= +SUB_INSTALLS-${ADK_PACKAGE_LIBPNG_DEV}+= libpng-dev-install -post-install: +post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y} ${INSTALL_DIR} ${IDIR_LIBPNG}/usr/lib ${CP} ${WRKINST}/usr/lib/libpng{,12}.so* ${IDIR_LIBPNG}/usr/lib/ +libpng-dev-install: + ${INSTALL_DIR} ${IDIR_LIBPNG_DEV}/usr/include/libpng12 + ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBPNG_DEV}/usr/include + ${CP} ${WRKINST}/usr/include/libpng12/*.h ${IDIR_LIBPNG_DEV}/usr/include/libpng12 + include ${TOPDIR}/mk/pkg-bottom.mk |