Page MenuHomeFreeBSD

D43369.diff
No OneTemporary

D43369.diff

diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1325,11 +1325,21 @@
TMPDIR?= /tmp
. endif # defined(PACKAGE_BUILDING)
-. if defined(WITH_DEBUG_PORTS)
-. if ${WITH_DEBUG_PORTS:M${PKGORIGIN}}
-WITH_DEBUG= yes
+# For each Feature we support, process the
+# WITH_FEATURE_PORTS and WITHOUT_FEATURE_PORTS variables
+. for feature in ${_LIST_OF_WITH_FEATURES}
+. if ${_DEFAULT_WITH_FEATURES:M${feature}}
+_WITH_OR_WITHOUT= WITHOUT
+. else
+_WITH_OR_WITHOUT= WITH
. endif
-. endif
+
+. if defined(${_WITH_OR_WITHOUT}_${feature:tu}_PORTS)
+. if ${${_WITH_OR_WITHOUT}_${feature:tu}_PORTS:M${PKGORIGIN}}
+${_WITH_OR_WITHOUT}_${feature:tu}= yes
+. endif
+. endif
+. endfor
. if defined(USE_LTO)
WITH_LTO= ${USE_LTO}

File Metadata

Mime Type
text/plain
Expires
Wed, Jul 15, 3:16 PM (1 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35104378
Default Alt Text
D43369.diff (819 B)

Event Timeline