Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= p5-image-scale
  5. PKG_VERSION:= 0.08
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 60d6b1d78e229682c3565ee12a171cb4
  8. PKG_DESCR:= fast, high-quality fixed-point image resizing
  9. PKG_SECTION:= dev/perl
  10. PKG_DEPENDS:= perl libjpeg-turbo zlib libpng giflib
  11. PKG_BUILDDEP:= perl libjpeg-turbo zlib libpng giflib
  12. PKG_SITES:= http://cpan.metacpan.org/authors/id/A/AG/AGRUNDMA/
  13. DISTFILES:= Image-Scale-${PKG_VERSION}.tar.gz
  14. WRKDIST= ${WRKDIR}/Image-Scale-${PKG_VERSION}
  15. include $(ADK_TOPDIR)/mk/package.mk
  16. $(eval $(call PKG_template,P5_IMAGE_SCALE,p5-image-scale,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. include $(ADK_TOPDIR)/mk/perl.mk
  18. CONFIG_STYLE:= perl
  19. XAKE_FLAGS+= $(PERL_ENV)
  20. CONFIGURE_ARGS+= --with-jpeg-includes=${STAGING_TARGET_DIR}/usr/include \
  21. --with-jpeg-libs=${STAGING_TARGET_DIR}/usr/lib \
  22. --with-png-includes=${STAGING_TARGET_DIR}/usr/include \
  23. --with-png-libs=${STAGING_TARGET_DIR}/usr/lib \
  24. --with-gif-includes=${STAGING_TARGET_DIR}/usr/include \
  25. --with-gif-libs=${STAGING_TARGET_DIR}/usr/lib \
  26. p5-image-scale-install:
  27. $(INSTALL_DIR) $(IDIR_P5_IMAGE_SCALE)$(PERL_SITEDIR)
  28. $(CP) $(WRKINST)$(PERL_SITEDIR)/* \
  29. $(IDIR_P5_IMAGE_SCALE)$(PERL_SITEDIR)
  30. include ${ADK_TOPDIR}/mk/pkg-bottom.mk