From 32edc14d192b79c11d028fb47b017caa851a2084 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Sat, 19 Oct 2013 05:48:43 -0500 Subject: [PATCH] patch: enhance STRIP_PERL5* and STRIP_PYTHON* to support odd usage --- .../Mk_bsd.local.mk-strip-perl5-python.patch | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/cdn/patch/Mk_bsd.local.mk-strip-perl5-python.patch b/cdn/patch/Mk_bsd.local.mk-strip-perl5-python.patch index c46d949..48e158d 100644 --- a/cdn/patch/Mk_bsd.local.mk-strip-perl5-python.patch +++ b/cdn/patch/Mk_bsd.local.mk-strip-perl5-python.patch @@ -1,6 +1,6 @@ --- Mk/bsd.local.mk.orig 2006-12-10 12:15:33.000000000 -0600 +++ Mk/bsd.local.mk 2010-08-29 02:57:11.000000000 -0500 -@@ -12,6 +12,38 @@ +@@ -12,6 +12,46 @@ Local_Pre_Include= bsd.local.mk @@ -10,12 +10,16 @@ +. undef USE_PERL5_BUILD +. undef USE_PERL5_RUN +.elif defined(STRIP_PERL5_BUILD) -+ USE_PERL5_RUN := ${USE_PERL5} ++. if defined(USE_PERL5) ++ USE_PERL5_RUN := ${USE_PERL5) ++. endif +. undef USE_PERL5 +. undef USE_PERL5_BUILD +.elif defined(STRIP_PERL5_RUN) + PKGNAMESUFFIX := $(PKGNAMESUFFIX)+noperl -+ USE_PERL5_BUILD := ${USE_PERL5} ++. if defined(USE_PERL5) ++ USE_PERL5_BUILD := ${USE_PERL5} ++. endif +. undef USE_PERL5 +. undef USE_PERL5_RUN +.endif @@ -26,12 +30,16 @@ +. undef USE_PYTHON_BUILD +. undef USE_PYTHON_RUN +.elif defined(STRIP_PYTHON_BUILD) -+ USE_PYTHON_RUN := ${USE_PYTHON} ++. if defined(USE_PYTHON) ++ USE_PYTHON_RUN := ${USE_PYTHON} ++. endif +. undef USE_PYTHON +. undef USE_PYTHON_BUILD +.elif defined(STRIP_PYTHON_RUN) + PKGNAMESUFFIX := $(PKGNAMESUFFIX)+nopython -+ USE_PYTHON_BUILD := ${USE_PYTHON} ++. if defined(USE_PYTHON) ++ USE_PYTHON_BUILD := ${USE_PYTHON} ++. endif +. undef USE_PYTHON +. undef USE_PYTHON_RUN +.endif -- 2.42.0