From a5a4eafc930407dc082432acf50721598af84939 Mon Sep 17 00:00:00 2001 From: Philip Prindeville Date: Sun, 23 Sep 2018 13:36:37 -0600 Subject: [PATCH] perlmod: fix ability to build module out-of-feed Signed-off-by: Philip Prindeville --- lang/perl/Makefile | 2 +- lang/perl/perlmod.mk | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lang/perl/Makefile b/lang/perl/Makefile index 86a4351ac..b92b00279 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 d00a8c42e..8a9509915 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)