Hi guys
I want add a package to host(tools) in openwrt and it is dependence of a target package. The package is libxml-parser-perl-2.44 and dependence is expat 2.2.8. I have already compiled and installed expat2.2.8 in host(staging_dir/host) but have a issue for configure for libxml-parser-perl in make file. In my Ubuntu terminal If I use:
perl Makefile.PL PREFIX=/foo/bar
all things I right but I don't know to to use in make file of openwrt for host package. (/tools/xml-parser
) you can see make file in below
include $(TOPDIR)/rules.mk
PKG_NAME:=XML-Parser
PKG_VERSION:=2.44
PKG_MD5SUM:=af4813fe3952362451201ced6fbce379
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://cpan.metacpan.org/authors/id/T/TO/TODDR/
HOST_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/host-build.mk
define Host/Configure
(cd $(HOST_BUILD_DIR)/$(3);
$(STAGING_DIR_HOST)/bin/perl Makefile.PL \
PREFIX=$(STAGING_DIR_HOST) \
EXPATLIBPATH=$(STAGING_DIR_HOST)/lib \
EXPATINCPATH=$(STAGING_DIR_HOST)/include \
INSTALLDIRS=site \
INSTALLSITELIB=$(STAGING_DIR_HOST)/lib/perl \
INSTALLSITEARCH=$(STAGING_DIR_HOST)/lib/perl;
)
endef
define Host/Compile
+$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR)
endef
define Host/Install
$(MAKE) -C $(HOST_BUILD_DIR) install
endef
define Host/Clean
$(MAKE) -C $(HOST_BUILD_DIR) uninstall
$(call Host/Clean/Default)
endef
$(eval $(call HostBuild))
I found some package with Make.PL but all of them was target not host and it has different strategy.
Please help me in define Host/Configure
part
Thanks