Makefile (1303B)
1 # 2 # Copyright (C) 2016 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-cgi 11 PKG_VERSION:=4.35 12 PKG_RELEASE:=2 13 14 PKG_SOURCE_URL:=http://www.cpan.org/authors/id/L/LE/LEEJO 15 PKG_SOURCE:=CGI-$(PKG_VERSION).tar.gz 16 PKG_MD5SUM:=15e63942c02354426b25f056f2a4467c 17 18 PKG_LICENSE:=GPL Artistic-2.0 19 PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>, \ 20 Philip Prindeville <philipp@redfish-solutions.com> 21 22 PKG_BUILD_DIR:=$(BUILD_DIR)/perl/CGI-$(PKG_VERSION) 23 24 # don't strip comments because that will mangle this module 25 PKG_LEAVE_COMMENTS:=1 26 27 include $(INCLUDE_DIR)/package.mk 28 include ../perl/perlmod.mk 29 30 define Package/perl-cgi 31 SUBMENU:=Perl 32 SECTION:=lang 33 CATEGORY:=Languages 34 TITLE:=Handle Common Gateway Interface requests and responses 35 URL:=http://search.cpan.org/dist/CGI/ 36 DEPENDS:=perl +perl-html-parser +perlbase-base +perlbase-config +perlbase-encode +perlbase-essential +perlbase-file +perlbase-if +perlbase-utf8 37 endef 38 39 define Build/Configure 40 $(call perlmod/Configure,,) 41 endef 42 43 define Build/Compile 44 $(call perlmod/Compile,,) 45 endef 46 47 define Package/perl-cgi/install 48 $(call perlmod/Install,$(1),CGI CGI.pm auto/CGI) 49 endef 50 51 52 $(eval $(call BuildPackage,perl-cgi))