Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F162567131
D43369.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
819 B
Referenced Files
None
Subscribers
None
D43369.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D43369: Mk/bsd.port.mk: Introduce generic WITH_<FEATURE>_PORTS knob.
Attached
Detach File
Event Timeline
Log In to Comment