From b8970833bfef1da3fe677325f12066acec3a6c44 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 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) -- 2.30.2