2 # Copyright (C) 2015 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-parse-recdescent
14 PKG_SOURCE_URL
:=http
://www.cpan.org
/authors
/id
/J
/JT
/JTBRAUN
15 PKG_SOURCE
:=Parse-RecDescent-
$(PKG_VERSION
).
tar.gz
16 PKG_HASH
:=226590d3850cd1678deb0190d5207b3477fb9070a8ca6f18d8999daf44485930
18 PKG_LICENSE
:=GPL-1.0
+ Artistic-1.0
-Perl
19 PKG_MAINTAINER
:=Marcel Denia
<naoir@gmx.net
>
21 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/perl
/Parse-RecDescent-
$(PKG_VERSION
)
22 HOST_BUILD_DEPENDS
:=perl
/host
23 PKG_BUILD_DIR
:=$(BUILD_DIR
)/perl
/Parse-RecDescent-
$(PKG_VERSION
)
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/host-build.mk
27 include ..
/perl
/perlmod.mk
29 define Package
/perl-parse-recdescent
33 TITLE
:=Generate Recursive-Descent Parsers
34 URL
:=http
://search.cpan.org
/dist/Parse-RecDescent
/
35 DEPENDS
:=perl
+perlbase-essential
+perlbase-test
+perlbase-text
39 $(call perlmod
/host
/Configure
,,,)
43 $(call perlmod
/host
/Compile
,,)
47 $(call perlmod
/host
/Install
,$(1),)
50 define Build
/Configure
51 $(call perlmod
/Configure
,,)
55 $(call perlmod
/Compile
,,)
58 define Package
/perl-parse-recdescent
/install
59 $(call perlmod
/Install
,$(1),Parse auto
/Parse
)
63 $(eval
$(call BuildPackage
,perl-parse-recdescent
))
64 $(eval
$(call HostBuild
))