2 # Copyright (C) 2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=perl-www-mechanize
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
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/perl
/WWW-Mechanize-
$(PKG_VERSION
)
20 include $(INCLUDE_DIR
)/package.mk
21 include ..
/perl
/perlmod.mk
23 define Package
/perl-www-mechanize
27 TITLE
:=Perl WWW Mechanize
28 URL
:=http
://search.cpan.org
/dist/WWW-Mechanize
/
29 DEPENDS
:=perl
+perl-www
32 define Build
/Configure
33 $(call perlmod
/Configure
,$(STAGING_DIR
)/usr
/include,)
37 $(call perlmod
/Compile
,,)
40 define Package
/perl-www-mechanize
/install
41 $(call perlmod
/Install
,$(1),WWW
/Mechanize WWW
/Mechanize.pm
)
44 $(eval
$(call BuildPackage
,perl-www-mechanize
))