b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 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 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=perl-net-http |
| 11 | PKG_VERSION:=6.19 |
| 12 | PKG_RELEASE:=1 |
| 13 | |
| 14 | PKG_SOURCE:=Net-HTTP-$(PKG_VERSION).tar.gz |
| 15 | PKG_SOURCE_URL:=https://cpan.metacpan.org/authors/id/O/OA/OALDERS |
| 16 | PKG_HASH:=52b76ec13959522cae64d965f15da3d99dcb445eddd85d2ce4e4f4df385b2fc4 |
| 17 | PKG_BUILD_DIR:=$(BUILD_DIR)/perl/Net-HTTP-$(PKG_VERSION) |
| 18 | |
| 19 | PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net> |
| 20 | PKG_LICENSE:=GPL-1.0-or-later Artistic-1.0-Perl |
| 21 | PKG_LICENSE_FILES:=LICENSE |
| 22 | |
| 23 | include $(INCLUDE_DIR)/package.mk |
| 24 | include ../perl/perlmod.mk |
| 25 | |
| 26 | define Package/perl-net-http |
| 27 | SUBMENU:=Perl |
| 28 | SECTION:=lang |
| 29 | CATEGORY:=Languages |
| 30 | TITLE:=Low-level HTTP connection (client) |
| 31 | URL:=https://search.cpan.org/dist/Net-HTTP/ |
| 32 | DEPENDS:=perl +perl-uri +perlbase-compress +perlbase-essential +perlbase-io |
| 33 | endef |
| 34 | |
| 35 | define Build/Configure |
| 36 | $(call perlmod/Configure,,) |
| 37 | endef |
| 38 | |
| 39 | define Build/Compile |
| 40 | $(call perlmod/Compile,,) |
| 41 | endef |
| 42 | |
| 43 | define Package/perl-net-http/install |
| 44 | $(call perlmod/Install,$(1),Net auto/Net) |
| 45 | endef |
| 46 | |
| 47 | |
| 48 | $(eval $(call BuildPackage,perl-net-http)) |