Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #
  2. # Copyright (C) 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-file-sharedir-install
  9. PKG_VERSION:=0.10
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL:=http://www.cpan.org/authors/id/G/GW/GWYN
  12. PKG_SOURCE:=File-ShareDir-Install-$(PKG_VERSION).tar.gz
  13. PKG_MD5SUM:=37fb7fa72ce7184516dd022aba62f524
  14. PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
  15. PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
  16. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/perl/File-ShareDir-Install-$(PKG_VERSION)
  17. HOST_BUILD_DEPENDS:=perl/host
  18. PKG_BUILD_DIR:=$(BUILD_DIR)/perl/File-ShareDir-Install-$(PKG_VERSION)
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/host-build.mk
  21. include ../perl/perlmod.mk
  22. define Package/perl-file-sharedir-install
  23. SUBMENU:=Perl
  24. SECTION:=lang
  25. CATEGORY:=Languages
  26. TITLE:=Install read-only data files
  27. URL:=http://search.cpan.org/dist/File-ShareDir-Install/
  28. DEPENDS:=perl +perlbase-essential +perlbase-extutils +perlbase-file +perlbase-io
  29. endef
  30. define Host/Configure
  31. $(call perlmod/host/Configure,,,)
  32. endef
  33. define Host/Compile
  34. $(call perlmod/host/Compile,,)
  35. endef
  36. define Host/Install
  37. $(call perlmod/host/Install,$(1),)
  38. endef
  39. define Build/Configure
  40. $(call perlmod/Configure,,)
  41. endef
  42. define Build/Compile
  43. $(call perlmod/Compile,,)
  44. endef
  45. define Package/perl-file-sharedir-install/install
  46. $(call perlmod/Install,$(1),File auto/File)
  47. endef
  48. $(eval $(call BuildPackage,perl-file-sharedir-install))
  49. $(eval $(call HostBuild))