1
0

Makefile 1.2 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:= p5-XML-Parser
  5. PKG_VERSION:= 2.40
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= c66e9adba003d0667cc40115ccd837a5
  8. PKG_DESCR:= XML::Parser
  9. PKG_SECTION:= lang
  10. PKG_DEPENDS:= perl libexpat
  11. PKG_BUILDDEP:= perl-host expat
  12. PKG_SITES:= http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/
  13. PKG_CFLINE_P5_XML_PARSER:= depends on ADK_BROKEN
  14. DISTFILES:= XML-Parser-${PKG_VERSION}.tar.gz
  15. WRKDIST= ${WRKDIR}/XML-Parser-${PKG_VERSION}
  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} && PATH='${HOST_PATH}' \
  23. perl-host Makefile.PL \
  24. EXPATLIBPATH=${STAGING_TARGET_DIR}/usr/lib \
  25. EXPATINCPATH=${STAGING_TARGET_DIR}/usr/include)
  26. p5-xml-parser-install:
  27. $(INSTALL_DIR) $(IDIR_P5_XML_PARSER)$(PERL_SITEDIR)
  28. $(CP) $(WRKINST)$(PERL_SITEDIR)/* \
  29. $(IDIR_P5_XML_PARSER)$(PERL_SITEDIR)
  30. include ${TOPDIR}/mk/pkg-bottom.mk