perl-dbi: Build host package

Signed-off-by: Marcel Denia <naoir@gmx.net>
This commit is contained in:
Marcel Denia 2014-08-02 23:24:03 +02:00
parent d98f1cc781
commit 867365dbde
1 changed files with 15 additions and 0 deletions

View File

@ -19,8 +19,10 @@ PKG_LICENSE:=GPLv1+ ARTISTIC
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/DBI-$(PKG_VERSION)
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/perl/DBI-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../perl/perlmod.mk
define Package/perl-dbi
@ -40,9 +42,22 @@ define Build/Compile
$(call perlmod/Compile,,)
endef
define Host/Configure
$(call perlmod/host/Configure,,)
endef
define Host/Compile
$(call perlmod/host/Compile,,)
endef
define Host/Install
$(call perlmod/host/Install,$(1),)
endef
define Package/perl-dbi/install
$(call perlmod/Install,$(1),DB* auto/DBI,DBI/W32ODBC.pm auto/DBI/*.h)
endef
$(eval $(call BuildPackage,perl-dbi))
$(eval $(call HostBuild))