123456789101112131415161718192021222324252627282930313233343536373839404142 |
- # This file is part of the OpenADK project. OpenADK is copyrighted
- # material, please see the LICENCE file in the top-level directory.
- include ${TOPDIR}/rules.mk
- PKG_NAME:= libpng
- PKG_VERSION:= 1.2.44
- PKG_RELEASE:= 3
- PKG_MD5SUM:= 89b62f8daaeeab1342e307d6d1411ff1
- PKG_DESCR:= A library for reading/writing PNG images
- PKG_SECTION:= libs
- PKG_DEPENDS:= zlib
- 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
- include ${TOPDIR}/mk/package.mk
- $(eval $(call PKG_template,LIBPNG,libpng,${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}))
- libpng-install:
- ${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
- ${INSTALL_DIR} ${IDIR_LIBPNG_DEV}/usr/lib/pkgconfig
- ${CP} ${WRKINST}/usr/lib/pkgconfig/*.pc \
- ${IDIR_LIBPNG_DEV}/usr/lib/pkgconfig
- include ${TOPDIR}/mk/pkg-bottom.mk
|