Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177575477
D16789.1794783435.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
930 B
Referenced Files
None
Subscribers
None
D16789.1794783435.diff
View Options
Index: lang/go/Makefile
===================================================================
--- lang/go/Makefile
+++ lang/go/Makefile
@@ -3,6 +3,7 @@
PORTNAME= go
PORTVERSION= 1.10.3
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= lang
MASTER_SITES= https://golang.org/dl/
@@ -15,6 +16,13 @@
BUILD_DEPENDS= go14>=1.4:lang/go14
+FLAVORS= default nosse2
+FLAVOR?= ${FLAVORS:[1]}
+
+nosse2_CONFLICTS_INSTALL= ${PORTNAME}
+nosse2_PKGNAMESUFFIX= -nosse2
+default_CONFLICTS_INSTALL= ${PORTNAME}-nosse2
+
USES= shebangfix
SHEBANG_LANG= sh perl
SHEBANG_FILES= src/*.bash \
@@ -32,9 +40,6 @@
WRKSRC= ${WRKDIR}/go
ONLY_FOR_ARCHS= i386 amd64 armv6 armv7
-OPTIONS_DEFINE= GO387
-GO387_DESC= Do not generate code with SSE2 (for old x86 CPU)
-
.include <bsd.port.pre.mk>
.if ${ARCH} == i386
@@ -47,7 +52,7 @@
IGNORE= unknown arch ${ARCH}
.endif
-.if ${PORT_OPTIONS:MGO387}
+.if ${FLAVOR} == nosse2
GO386=387
.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 10:57 PM (22 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41750228
Default Alt Text
D16789.1794783435.diff (930 B)
Attached To
Mode
D16789: lang/go: flavorize; add -nosse2 flavor for older i386 CPUs lacking SSE2 support
Attached
Detach File
Event Timeline