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.

62 lines
1.6 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=perl-netaddr-ip
  3. PKG_VERSION:=4.079
  4. PKG_RELEASE:=1
  5. PKG_SOURCE_NAME:=NetAddr-IP
  6. PKG_SOURCE_URL:=https://www.cpan.org/authors/id/M/MI/MIKER/
  7. PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.gz
  8. PKG_HASH:=ec5a82dfb7028bcd28bb3d569f95d87dd4166cc19867f2184ed3a59f6d6ca0e7
  9. PKG_LICENSE:=GPL-2.0-or-later Artistic-1.0-Perl
  10. PKG_LICENSE_FILES:=Copying
  11. PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
  12. HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/perl/NetAddr-IP-$(PKG_VERSION)
  13. HOST_BUILD_DEPENDS:=perl/host
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/perl/NetAddr-IP-$(PKG_VERSION)
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/host-build.mk
  17. include ../perl/perlmod.mk
  18. define Package/perl-netaddr-ip
  19. SUBMENU:=Perl
  20. SECTION:=lang
  21. CATEGORY:=Languages
  22. TITLE:=NetAddr::IP - Manages IPv4 and IPv6 addresses and subnets
  23. URL:=http://search.cpan.org/dist/NetAddr::IP/
  24. DEPENDS:=perl +perlbase-essential +perlbase-test
  25. endef
  26. define Host/Configure
  27. $(call perlmod/host/Configure,-noxs,,)
  28. $(call Host/Configure/Default,,,Lite/Util)
  29. endef
  30. define Host/Compile
  31. $(call Host/Compile/Default,,,Lite/Util)
  32. $(call perlmod/host/Compile,,)
  33. endef
  34. define Host/Install
  35. $(call perlmod/host/Install,$(1),)
  36. endef
  37. define Build/Configure
  38. $(call perlmod/Configure,-noxs,)
  39. $(call Build/Configure/Default,,,Lite/Util)
  40. endef
  41. define Build/Compile
  42. $(call Build/Compile/Default,,,Lite/Util)
  43. $(call perlmod/Compile,,)
  44. endef
  45. define Package/perl-netaddr-ip/install
  46. $(call perlmod/Install,$(1),NetAddr auto/NetAddr)
  47. endef
  48. $(eval $(call BuildPackage,perl-netaddr-ip))
  49. $(eval $(call HostBuild))