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
14 PKG_SOURCE
:=Inline-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://cpan.metacpan.org
/authors
/id
/I
/IN
/INGY
16 PKG_HASH
:=510a7de2d011b0db80b0874e8c0f7390010991000ae135cff7474df1e6d51e3a
18 PKG_MAINTAINER
:=Marcel Denia
<naoir@gmx.net
>
19 PKG_LICENSE
:=GPL-1.0
-or-later Artistic-1.0
-Perl
20 PKG_LICENSE_FILES
:=LICENSE
22 PKG_BUILD_DIR
:=$(BUILD_DIR
)/perl
/Inline-
$(PKG_VERSION
)
23 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/perl
/Inline-
$(PKG_VERSION
)
25 HOST_BUILD_DEPENDS
:=perl
/host
27 include $(INCLUDE_DIR
)/package.mk
28 include $(INCLUDE_DIR
)/host-build.mk
29 include ..
/perl
/perlmod.mk
31 define Package
/perl-inline
35 TITLE
:=Write subroutines in other languages
36 URL
:=https
://search.cpan.org
/dist/Inline
/
37 DEPENDS
:=perl
+perlbase-base
+perlbase-config
+perlbase-cwd
+perlbase-digest
+perlbase-essential
+perlbase-fcntl
+perlbase-file
40 define Build
/Configure
41 $(call perlmod
/Configure
,,)
45 $(call perlmod
/Compile
,,)
48 define Package
/perl-inline
/install
49 $(call perlmod
/Install
,$(1),Inline.pm Inline auto
/Inline
)
53 $(call perlmod
/host
/Configure
,,,)
57 $(call perlmod
/host
/Compile
,,)
61 $(call perlmod
/host
/Install
,$(1),)
65 $(eval
$(call BuildPackage
,perl-inline
))
66 $(eval
$(call HostBuild
))