2 # Copyright (C) 2014 - 2016 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-html-parser
14 PKG_SOURCE
:=HTML-Parser-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://www.cpan.org
/authors
/id
/C
/CA
/CAPOEIRAB
16 PKG_HASH
:=ac6b5e25a8df7af54885201e91c45fb9ab6744c08cedc1a38fcc7d95d21193a9
18 PKG_LICENSE
:=GPL-1.0
-or-later Artistic-1.0
-Perl
19 PKG_MAINTAINER
:=Marcel Denia
<naoir@gmx.net
>
20 PKG_CPE_ID
:=cpe
:/a
:derrick_oswald
:html-parser
22 PKG_BUILD_DIR
:=$(BUILD_DIR
)/perl
/HTML-Parser-
$(PKG_VERSION
)
23 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/perl
/HTML-Parser-
$(PKG_VERSION
)
24 HOST_BUILD_DEPENDS
:=perl
/host
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/host-build.mk
28 include ..
/perl
/perlmod.mk
30 define Package
/perl-html-parser
34 TITLE
:=A collection of modules that parse HTML text documents
35 URL
:=http
://search.cpan.org
/dist/HTML-Parser
/
36 DEPENDS
:=perl
+perl-html-tagset
+perlbase-essential
+perlbase-xsloader
39 define Build
/Configure
40 $(call perlmod
/Configure
,,)
44 $(call perlmod
/Compile
,,)
47 define Package
/perl-html-parser
/install
48 $(call perlmod
/Install
,$(1),HTML auto
/HTML
)
52 $(call perlmod
/host
/Configure
,,,)
56 $(call perlmod
/host
/Compile
,,)
60 $(call perlmod
/host
/Install
,$(1),)
63 $(eval
$(call BuildPackage
,perl-html-parser
))
64 $(eval
$(call HostBuild
))