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-file-sharedir-install
14 PKG_SOURCE_URL
:=http
://www.cpan.org
/authors
/id
/G
/GW
/GWYN
15 PKG_SOURCE
:=File-ShareDir-Install-
$(PKG_VERSION
).
tar.gz
16 PKG_HASH
:=708af71dec4dfb5a8cf9a5e863b566714c3f65f0a76722302de5a07ee202e6f7
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
/File-ShareDir-Install-
$(PKG_VERSION
)
22 HOST_BUILD_DEPENDS
:=perl
/host
23 PKG_BUILD_DIR
:=$(BUILD_DIR
)/perl
/File-ShareDir-Install-
$(PKG_VERSION
)
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/host-build.mk
27 include ..
/perl
/perlmod.mk
29 define Package
/perl-file-sharedir-install
33 TITLE
:=Install read-only data files
34 URL
:=http
://search.cpan.org
/dist/File-ShareDir-Install
/
35 DEPENDS
:=perl
+perlbase-essential
+perlbase-extutils
+perlbase-file
+perlbase-io
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-file-sharedir-install
/install
59 $(call perlmod
/Install
,$(1),File auto
/File
)
63 $(eval
$(call BuildPackage
,perl-file-sharedir-install
))
64 $(eval
$(call HostBuild
))