fwknop: init script improvements
[feed/packages.git] / lang / perl-dbi / Makefile
1 #
2 # Copyright (C) 2014, 2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=perl-dbi
11 PKG_VERSION:=1.642
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=DBI-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://www.cpan.org/authors/id/T/TI/TIMB/
16 PKG_HASH:=3f2025023a56286cebd15cb495e36ccd9b456c3cc229bf2ce1f69e9ebfc27f5d
17
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
21
22 PKG_BUILD_DIR:=$(BUILD_DIR)/perl/DBI-$(PKG_VERSION)
23 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/perl/DBI-$(PKG_VERSION)
24 HOST_BUILD_DEPENDS:=perl/host
25
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/host-build.mk
28 include ../perl/perlmod.mk
29
30 define Package/perl-dbi
31 SUBMENU:=Perl
32 SECTION:=lang
33 CATEGORY:=Languages
34 TITLE:=Database independent interface for Perl
35 URL:=https://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
37 endef
38
39 define Build/Configure
40 $(call perlmod/Configure,,)
41 endef
42
43 define Build/Compile
44 $(call perlmod/Compile,,)
45 endef
46
47 define Host/Configure
48 $(call perlmod/host/Configure,,)
49 endef
50
51 define Host/Compile
52 $(call perlmod/host/Compile,,)
53 endef
54
55 define Host/Install
56 $(call perlmod/host/Install,$(1),)
57 endef
58
59 define Package/perl-dbi/install
60 $(call perlmod/Install,$(1),DB* auto/DBI,DBI/W32ODBC.pm auto/DBI/*.h)
61 endef
62
63
64 $(eval $(call BuildPackage,perl-dbi))
65 $(eval $(call HostBuild))