2 # Copyright (C) 2014, 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_URL
:=http
://www.cpan.org
/authors
/id
/T
/TI
/TIMB
/
15 PKG_SOURCE
:=DBI-
$(PKG_VERSION
).
tar.gz
16 PKG_HASH
:=250712f385864818abfba409420d16d9ee61f1cc73ac85159d054a5ee86d1450
18 PKG_LICENSE
:=GPL-1.0
+ Artistic-1.0
-Perl
19 PKG_MAINTAINER
:=Marcel Denia
<naoir@gmx.net
>
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/perl
/DBI-
$(PKG_VERSION
)
22 HOST_BUILD_DIR
:=$(BUILD_DIR_HOST
)/perl
/DBI-
$(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-dbi
34 TITLE
:=Database independent interface for Perl
35 URL
:=http
://search.cpan.org
/dist/DBI
/
36 DEPENDS
:=perl
+perlbase-base
+perlbase-config
+perlbase-cwd
+perlbase-data
+perlbase-dynaloader
+perlbase-errno
+perlbase-essential
+perlbase-fcntl
+perlbase-file
+perlbase-io
+perlbase-ipc
+perlbase-scalar
+perlbase-storable
+perlbase-symbol
+perlbase-tie
+perlbase-universal
+perlbase-utf8
39 define Build
/Configure
40 $(call perlmod
/Configure
,,)
44 $(call perlmod
/Compile
,,)
48 $(call perlmod
/host
/Configure
,,)
52 $(call perlmod
/host
/Compile
,,)
56 $(call perlmod
/host
/Install
,$(1),)
59 define Package
/perl-dbi
/install
60 $(call perlmod
/Install
,$(1),DB
* auto
/DBI
,DBI
/W32ODBC.pm auto
/DBI
/*.h
)
64 $(eval
$(call BuildPackage
,perl-dbi
))
65 $(eval
$(call HostBuild
))