Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109706893
D24324.id71446.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
869 B
Referenced Files
None
Subscribers
None
D24324.id71446.diff
View Options
Index: Mk/bsd.port.mk
===================================================================
--- Mk/bsd.port.mk
+++ Mk/bsd.port.mk
@@ -1271,6 +1271,23 @@
PORTDIRNAME?= ${_PORTDIRNAME}
PKGORIGIN?= ${PKGCATEGORY}/${PORTDIRNAME}
+# Now that PKGORIGIN is set, look for origin-specific variables.
+# These are typically set in a make.conf, in the form:
+#
+# category_portname_VARS= varname=value othervar+=value
+#
+# e.g. devel_llvm10_VARS= make_jobs_number=2
+#
+# (the varname is always converted to uppercase)
+
+.for var in ${${PKGORIGIN:S/\//_/}_VARS:C/=.*//:O:u}
+. if ${var:M*+}
+${var:C/.$//:tu}+= ${${PKGORIGIN:S/\//_/}_VARS:M${var}=*:C/[^+]*\+=//:C/^"(.*)"$$/\1/}
+. else
+${var:tu}= ${${PKGORIGIN:S/\//_/}_VARS:M${var}=*:C/[^=]*=//:C/^"(.*)"$$/\1/}
+. endif
+.endfor
+
# where 'make config' records user configuration options
PORT_DBDIR?= /var/db/ports
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 9, 2:02 PM (20 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16555501
Default Alt Text
D24324.id71446.diff (869 B)
Attached To
Mode
D24324: Allow category_port_VARS= in make.conf for arbitrary per-port overrides.
Attached
Detach File
Event Timeline
Log In to Comment