Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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:= tiff
  5. PKG_VERSION:= 3.9.4
  6. PKG_RELEASE:= 3
  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_NEED_CXX:= 1
  13. PKG_SUBPKGS:= LIBTIFF LIBTIFF_DEV
  14. PKGSD_LIBTIFF_DEV:= development files for libtiff
  15. PKGSC_LIBTIFF_DEV:= devel
  16. ifeq ($(ADK_STATIC),y)
  17. PKG_OPTS:= libonly
  18. endif
  19. include ${TOPDIR}/mk/package.mk
  20. $(eval $(call PKG_template,LIBTIFF,libtiff,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  21. $(eval $(call PKG_template,LIBTIFF_DEV,libtiff-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBTIFF_DEV},${PKGSC_LIBTIFF_DEV},${PKG_OPTS}))
  22. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  23. CONFIGURE_ARGS+= --disable-cxx \
  24. --disable-rpath
  25. post-install:
  26. ${INSTALL_DIR} ${IDIR_LIBTIFF}/usr/lib
  27. ${CP} ${WRKINST}/usr/lib/libtiff.so* ${IDIR_LIBTIFF}/usr/lib/
  28. libtiff-dev-install:
  29. ${INSTALL_DIR} ${IDIR_LIBTIFF_DEV}/usr/include
  30. ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBTIFF_DEV}/usr/include
  31. include ${TOPDIR}/mk/pkg-bottom.mk