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_MD5SUM
:=b4fe13b9a51c1446c5f3cf93e69a2044
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 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/host-build.mk
26 include ..
/perl
/perlmod.mk
28 define Package
/perl-dbi
32 TITLE
:=Database independent interface for Perl
33 URL
:=http
://search.cpan.org
/dist/DBI
/
34 DEPENDS
:=perl
+perlbase-essential
37 define Build
/Configure
38 $(call perlmod
/Configure
,,)
42 $(call perlmod
/Compile
,,)
46 $(call perlmod
/host
/Configure
,,)
50 $(call perlmod
/host
/Compile
,,)
54 $(call perlmod
/host
/Install
,$(1),)
57 define Package
/perl-dbi
/install
58 $(call perlmod
/Install
,$(1),DB
* auto
/DBI
,DBI
/W32ODBC.pm auto
/DBI
/*.h
)
62 $(eval
$(call BuildPackage
,perl-dbi
))
63 $(eval
$(call HostBuild
))