Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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:= p5-XML-Parser
  5. PKG_VERSION:= 2.40
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= c66e9adba003d0667cc40115ccd837a5
  8. PKG_DESCR:= XML::Parser
  9. PKG_SECTION:= lang
  10. PKG_DEPENDS:= libexpat
  11. PKG_BUILDDEP:= expat
  12. PKG_SITES:= http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/
  13. DISTFILES:= XML-Parser-${PKG_VERSION}.tar.gz
  14. WRKDIST= ${WRKDIR}/XML-Parser-${PKG_VERSION}
  15. PKG_CFLINE_P5_XML_PARSER:=depends on ADK_NATIVE
  16. include $(TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,P5_XML_PARSER,p5-xml-parser,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. CONFIG_STYLE:= manual
  19. XAKE_FLAGS+= CC="$(TARGET_CC)" CCFLAGS="$(TARGET_CFLAGS)"
  20. include $(TOPDIR)/mk/perl.mk
  21. pre-build:
  22. (cd ${WRKSRC} && perl Makefile.PL EXPATLIBPATH=${STAGING_TARGET_DIR}/usr/lib EXPATINCPATH=${STAGING_TARGET_DIR}/usr/include)
  23. post-install:
  24. $(INSTALL_DIR) $(IDIR_P5_XML_PARSER)$(PERL_SITEDIR)
  25. $(CP) $(WRKINST)$(PERL_SITEDIR)/* \
  26. $(IDIR_P5_XML_PARSER)$(PERL_SITEDIR)
  27. include ${TOPDIR}/mk/pkg-bottom.mk