Page MenuHomeFreeBSD

D12483.id33384.diff
No OneTemporary

D12483.id33384.diff

Index: Mk/bsd.options.mk
===================================================================
--- Mk/bsd.options.mk
+++ Mk/bsd.options.mk
@@ -173,6 +173,11 @@
OPTIONSMKINCLUDED= bsd.options.mk
OPTIONS_NAME?= ${PKGORIGIN:S/\//_/}
+# If there is a FLAVOR and it is not the default one, append it to OPTIONS_NAME
+# so that the options can be different than the default flavor.
+.if !empty(FLAVOR) && ${FLAVOR} != ${FLAVORS:[1]}
+OPTIONS_NAME:= ${OPTIONS_NAME}@${FLAVOR}
+.endif
OPTIONS_FILE?= ${PORT_DBDIR}/${OPTIONS_NAME}/options
_OPTIONS_FLAGS= ALL_TARGET BROKEN CATEGORIES CFLAGS CONFIGURE_ENV CONFLICTS \
Index: Mk/bsd.port.mk
===================================================================
--- Mk/bsd.port.mk
+++ Mk/bsd.port.mk
@@ -1089,6 +1089,20 @@
# Do not leak flavors to childs make
.MAKEOVERRIDES:= ${MAKEOVERRIDES:NFLAVOR=*}
+.if !empty(FLAVOR)
+.for c in PKGNAMEPREFIX PKGNAMESUFFIX
+.if define(${FLAVOR}_${c})
+${c}= ${${FLAVOR}_${c}}
+.endif
+.endfor
+
+.for c in CONFLICTS CONFLICTS_BUILD CONFLICTS_INSTALL
+.if define(${FLAVOR}_${c})
+${c}+= ${${FLAVOR}_${c}}
+.endif
+.endfor
+.endif # defined(${FLAVOR})
+
.if defined(CROSS_TOOLCHAIN)
.if !defined(CROSS_SYSROOT)
IGNORE= CROSS_SYSROOT should be defined

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 2, 5:34 AM (2 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30708120
Default Alt Text
D12483.id33384.diff (1 KB)

Event Timeline