Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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-dbi
  5. PKG_VERSION:= 1.631
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= d70a7420863055917fe204c83e6a83838c58f7483baa68499727720899cdd511
  8. PKG_DESCR:= database independent interface
  9. PKG_SECTION:= dev/perl
  10. PKG_DEPENDS:= perl
  11. PKG_BUILDDEP:= perl
  12. PKG_SITES:= http://cpan.metacpan.org/authors/id/T/TI/TIMB/
  13. DISTFILES:= DBI-${PKG_VERSION}.tar.gz
  14. WRKDIST= ${WRKDIR}/DBI-${PKG_VERSION}
  15. include $(ADK_TOPDIR)/mk/host.mk
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call HOST_template,P5_DBI,p5-dbi,$(PKG_VERSION)-${PKG_RELEASE}))
  18. $(eval $(call PKG_template,P5_DBI,p5-dbi,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. TARGET_CFLAGS+= -fPIC
  20. include $(ADK_TOPDIR)/mk/perl.mk
  21. HOST_STYLE:= perl
  22. CONFIG_STYLE:= perl
  23. XAKE_FLAGS+= $(PERL_ENV)
  24. hostpost-install:
  25. (cd $(WRKBUILD) && PATH='$(HOST_PATH)' $(HOST_PERL_ENV) make install)
  26. p5-dbi-install:
  27. $(INSTALL_DIR) $(IDIR_P5_DBI)$(PERL_SITEDIR)
  28. $(CP) $(WRKINST)$(PERL_SITEDIR)/* \
  29. $(IDIR_P5_DBI)$(PERL_SITEDIR)
  30. include ${ADK_TOPDIR}/mk/host-bottom.mk
  31. include ${ADK_TOPDIR}/mk/pkg-bottom.mk