Makefile for Makefile.PL package dependence on openwrt, wrtnode2r

Hello
sorry chinese is not my mother tongue.
I want add a package to openwrt on wrtnode 2r, you can see graphical  dependence for a package.
 
linphone3.png

 
Blue is meaning already openwrt had it.
pink is  meaning  added by myself 
yellow meaning need to development and add to openwrt.
As you can see 70% dependences is done but need to help for add (host-libxml-parser-perl-2.44) on /tools or host.
host libxml-parser-perl had a Makefile.PL and you can make in ubuntu terminal normaly with :
perl Makefile.PL PREFIX=/place/of/foo/bar
but I don't know how add it in Makefile on /tools/xml-parser in openwrt . please pay attention to 
define Host/Configure
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);
export SHELL="$(BASH)";
$(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))

you can see my make file and I know it is not correct.Please help me to modify it.
 
 
 
你好
对不起,中文不是我的母语。
我想在wrtnode 2r上的openwrt中添加一个软件包,您可以看到软件包的图形依赖性。
linphone3.png

蓝色表示已经openwrt拥有它。
粉红色是我自己添加的意思
黄色表示需要开发并添加到openwrt。
如您所见,已经完成了70%的依赖关系,但需要帮助在/ tools或主机上添加(host-libxml-parser-perl-2.44)。
主机libxml-parser-perl具有Makefile.PL,您可以使用以下命令在ubuntu终端中正常进行制作:
perl Makefile.PL PREFIX = / place / of / foo / bar
但是我不知道如何在openwrt的/ tools / xml-parser的Makefile中添加它.
define Host/Configure
 
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);
export SHELL="$(BASH)";
$(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))
~

 

您可以看到我的make文件,但我知道它不正确。请帮助我进行修改。
 
 
 
 
已邀请:

xzmu - 10w

赞同来自:

do you want this package? https://github.com/openwrt/packages/tree/lede-17.01/lang/perl-xml-parser it's already add to openwrt

要回复问题请先登录注册