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-inline-c
14 PKG_SOURCE
:=Inline-C-
$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://www.cpan.org
/authors
/id
/T
/TI
/TINITA
16 PKG_HASH
:=f185258d9050d7f79b4f00f12625cc469c2f700ff62d3e831cb18d80d2c87aac
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 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/perl
/Inline-C-
$(PKG_VERSION
)
23 HOST_BUILD_DEPENDS
:=perl
/host perl-inline
/host perl-parse-recdescent
/host perl-file-sharedir-install
/host
24 PKG_BUILD_DIR
:=$(BUILD_DIR
)/perl
/Inline-C-
$(PKG_VERSION
)
25 PKG_BUILD_DEPENDS
:=perl-inline
/host perl-parse-recdescent
/host perl-file-sharedir-install
/host
27 include $(INCLUDE_DIR
)/package.mk
28 include $(INCLUDE_DIR
)/host-build.mk
29 include ..
/perl
/perlmod.mk
31 define Package
/perl-inline-c
35 TITLE
:=C Language Support for Inline
36 URL
:=https
://search.cpan.org
/dist/Inline-C
/
37 DEPENDS
:=perl
+perl-inline
+perl-parse-recdescent
+perlbase-config
+perlbase-cwd
+perlbase-data
+perlbase-essential
+perlbase-file
+perlbase-if
41 $(call perlmod
/host
/Configure
,,,)
45 $(call perlmod
/host
/Compile
,,)
49 $(call perlmod
/host
/Install
,$(1),)
52 define Build
/Configure
53 $(call perlmod
/Configure
,,)
57 $(call perlmod
/Compile
,,)
60 define Package
/perl-inline-c
/install
61 $(call perlmod
/Install
,$(1),Inline auto
/Inline
)
65 $(eval
$(call BuildPackage
,perl-inline-c
))
66 $(eval
$(call HostBuild
))