You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2014, 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=perl-dbi
  9. PKG_VERSION:=1.633
  10. PKG_RELEASE:=3
  11. PKG_SOURCE_URL:=http://www.cpan.org/authors/id/T/TI/TIMB/
  12. PKG_SOURCE:=DBI-$(PKG_VERSION).tar.gz
  13. PKG_MD5SUM:=b4fe13b9a51c1446c5f3cf93e69a2044
  14. PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
  15. PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
  16. PKG_BUILD_DIR:=$(BUILD_DIR)/perl/DBI-$(PKG_VERSION)
  17. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/perl/DBI-$(PKG_VERSION)
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/host-build.mk
  20. include ../perl/perlmod.mk
  21. define Package/perl-dbi
  22. SUBMENU:=Perl
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=Database independent interface for Perl
  26. URL:=http://search.cpan.org/dist/DBI/
  27. DEPENDS:=perl +perlbase-essential
  28. endef
  29. define Build/Configure
  30. $(call perlmod/Configure,,)
  31. endef
  32. define Build/Compile
  33. $(call perlmod/Compile,,)
  34. endef
  35. define Host/Configure
  36. $(call perlmod/host/Configure,,)
  37. endef
  38. define Host/Compile
  39. $(call perlmod/host/Compile,,)
  40. endef
  41. define Host/Install
  42. $(call perlmod/host/Install,$(1),)
  43. endef
  44. define Package/perl-dbi/install
  45. $(call perlmod/Install,$(1),DB* auto/DBI,DBI/W32ODBC.pm auto/DBI/*.h)
  46. endef
  47. $(eval $(call BuildPackage,perl-dbi))
  48. $(eval $(call HostBuild))