Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= libtiff
  5. PKG_VERSION:= 3.9.4
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 2006c1bdd12644dbf02956955175afd6
  8. PKG_DESCR:= A library for reading/writing TIFF images
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://www.libtiff.org/
  11. PKG_SITES:= ftp://ftp.remotesensing.org/pub/libtiff/
  12. PKG_SUBPKGS:= LIBTIFF LIBTIFF_DEV
  13. PKGSD_LIBTIFF_DEV:= development files for libtiff
  14. PKGSC_LIBTIFF_DEV:= devel
  15. DISTFILES:= tiff-${PKG_VERSION}.tar.gz
  16. WRKDIST= ${WRKDIR}/tiff-${PKG_VERSION}
  17. ifeq ($(ADK_STATIC),y)
  18. PKG_OPTS:= libonly
  19. endif
  20. include ${TOPDIR}/mk/package.mk
  21. $(eval $(call PKG_template,LIBTIFF,libtiff,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  22. $(eval $(call PKG_template,LIBTIFF_DEV,libtiff-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBTIFF_DEV},${PKGSC_LIBTIFF_DEV},${PKG_OPTS}))
  23. SUB_INSTALLS-y:=
  24. SUB_INSTALLS-m:=
  25. SUB_INSTALLS-${ADK_PACKAGE_LIBTIFF_DEV}+= libtiff-dev-install
  26. CONFIGURE_ARGS+= --disable-cxx
  27. post-install: ${SUB_INSTALLS-m} ${SUB_INSTALLS-y}
  28. ${INSTALL_DIR} ${IDIR_LIBTIFF}/usr/lib
  29. ${CP} ${WRKINST}/usr/lib/libtiff.so* ${IDIR_LIBTIFF}/usr/lib/
  30. libtiff-dev-install:
  31. ${INSTALL_DIR} ${IDIR_LIBTIFF_DEV}/usr/include
  32. ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBTIFF_DEV}/usr/include
  33. include ${TOPDIR}/mk/pkg-bottom.mk