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