Makefile 1018 B

123456789101112131415161718192021222324252627282930313233
  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:= gd
  5. PKG_VERSION:= 2.0.35
  6. PKG_RELEASE:= 1
  7. PKG_BUILDDEP+= libpng jpeg
  8. PKG_MD5SUM:= 982963448dc36f20cb79b6e9ba6fdede
  9. PKG_DESCR:= A library for the dynamic creation of images
  10. PKG_SECTION:= libs
  11. PKG_DEPENDS:= libjpeg libpng
  12. PKG_URL:= http://www.libgd.org
  13. PKG_SITES:= http://www.libgd.org/releases/
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,LIBGD,libgd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. AUTOTOOL_STYLE:= autotool
  17. CONFIGURE_ENV+= LIBPNG12_CONFIG="${STAGING_DIR}/usr/bin/libpng12-config"
  18. CONFIGURE_ARGS+= --without-x \
  19. --without-freetype \
  20. --with-jpeg=${STAGING_DIR}/usr \
  21. --with-png=${STAGING_DIR}/usr \
  22. --without-xpm
  23. post-install:
  24. ${INSTALL_DIR} ${IDIR_LIBGD}/usr/lib
  25. ${CP} ${WRKINST}/usr/lib/libgd.so* ${IDIR_LIBGD}/usr/lib/
  26. include ${TOPDIR}/mk/pkg-bottom.mk