From: Philip Prindeville Date: Sun, 23 Sep 2018 19:36:37 +0000 (-0600) Subject: perlmod: fix ability to build module out-of-feed X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F8477%2Fhead;p=feed%2Fpackages.git perlmod: fix ability to build module out-of-feed Signed-off-by: Philip Prindeville --- diff --git a/lang/perl/Makefile b/lang/perl/Makefile index 86a4351ac3..b92b002796 100644 --- a/lang/perl/Makefile +++ b/lang/perl/Makefile @@ -11,7 +11,7 @@ include perlver.mk PKG_NAME:=perl PKG_VERSION:=$(PERL_VERSION) -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_URL:=\ https://cpan.metacpan.org/src/5.0 \ diff --git a/lang/perl/perlmod.mk b/lang/perl/perlmod.mk index d00a8c42ec..8a95099155 100644 --- a/lang/perl/perlmod.mk +++ b/lang/perl/perlmod.mk @@ -1,7 +1,11 @@ # This makefile simplifies perl module builds. # -include ../perl/perlver.mk +ifeq ($(origin PERL_INCLUDE_DIR),undefined) + PERL_INCLUDE_DIR:=$(dir $(lastword $(MAKEFILE_LIST))) +endif + +include $(PERL_INCLUDE_DIR)/perlver.mk ifneq ($(PKG_NAME),perl) PKG_VERSION:=$(PKG_VERSION)+perl$(PERL_VERSION2)