lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1148B)


      1 #
      2 # Copyright (C) 2014 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-www-curl
     11 PKG_VERSION:=4.17
     12 PKG_RELEASE:=4
     13 
     14 PKG_SOURCE_URL:=http://www.cpan.org/authors/id/S/SZ/SZBALINT/
     15 PKG_SOURCE:=WWW-Curl-$(PKG_VERSION).tar.gz
     16 PKG_MD5SUM:=997ac81cd6b03b30b36f7cd930474845
     17 
     18 PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
     19 PKG_LICENSE_FILES:=LICENSE
     20 PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
     21 
     22 PKG_BUILD_DIR:=$(BUILD_DIR)/perl/WWW-Curl-$(PKG_VERSION)
     23 
     24 include $(INCLUDE_DIR)/package.mk
     25 include ../perl/perlmod.mk
     26 
     27 define Package/perl-www-curl
     28   SUBMENU:=Perl
     29   SECTION:=lang
     30   CATEGORY:=Languages
     31   TITLE:=Perl bindings to libcurl
     32   URL:=http://search.cpan.org/dist/WWW-Curl/
     33   DEPENDS:=perl +libcurl +perlbase-essential +perlbase-xsloader
     34 endef
     35 
     36 define Build/Configure
     37 	$(call perlmod/Configure,$(STAGING_DIR)/usr/include,)
     38 endef
     39 
     40 define Build/Compile
     41 	$(call perlmod/Compile,,)
     42 endef
     43 
     44 define Package/perl-www-curl/install
     45 	$(call perlmod/Install,$(1),WWW/Curl WWW/Curl.pm auto/WWW/Curl)
     46 endef
     47 
     48 
     49 $(eval $(call BuildPackage,perl-www-curl))