[packages] add perl-www-mechanize (closes: #7099)
[openwrt/svn-archive/archive.git] / lang / perl-www-mechanize / Makefile
1 #
2 # Copyright (C) 2010 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-mechanize
11 PKG_VERSION:=1.58
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=WWW-Mechanize-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/
16 PKG_MD5SUM:=c928d1bf3218bfe0c0d99096cf34db52
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/perl/WWW-Mechanize-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21 include ../perl/perlmod.mk
22
23 define Package/perl-www-mechanize
24 SUBMENU:=Perl
25 SECTION:=lang
26 CATEGORY:=Languages
27 TITLE:=Perl WWW Mechanize
28 URL:=http://search.cpan.org/dist/WWW-Mechanize/
29 DEPENDS:=perl +perl-www
30 endef
31
32 define Build/Configure
33 $(call perlmod/Configure,$(STAGING_DIR)/usr/include,)
34 endef
35
36 define Build/Compile
37 $(call perlmod/Compile,,)
38 endef
39
40 define Package/perl-www-mechanize/install
41 $(call perlmod/Install,$(1),WWW/Mechanize WWW/Mechanize.pm)
42 endef
43
44 $(eval $(call BuildPackage,perl-www-mechanize))