svn commit: r506580 - in head/devel: ice ice37
Mark Linimon
linimon at FreeBSD.org
Sat Jul 13 21:33:53 UTC 2019
Author: linimon
Date: Sat Jul 13 21:33:52 2019
New Revision: 506580
URL: https://svnweb.freebsd.org/changeset/ports/506580
Log:
Simplify architecture tests for 64-bit. Listing each ARCH is fragile; e.g.,
misses some 64-bit mips variants.
Tested on: amd64, powerpc64, armv7.
Approved by: portmgr (tier-2 blanket)
Modified:
head/devel/ice/Makefile
head/devel/ice37/Makefile
Modified: head/devel/ice/Makefile
==============================================================================
--- head/devel/ice/Makefile Sat Jul 13 21:27:16 2019 (r506579)
+++ head/devel/ice/Makefile Sat Jul 13 21:33:52 2019 (r506580)
@@ -52,7 +52,8 @@ CFLAGS+= -ftemplate-depth-128 -fPIC -DPIC -Wall -D_RE
CFLAGS+= -DNDEBUG
.endif
-.if ((${ARCH} != i386) && (${ARCH} != powerpc))
+# determine if we are on a 64-bit arch
+.if ${ARCH:M*64*}
MAKE_ENV+= LP64=yes
.endif
Modified: head/devel/ice37/Makefile
==============================================================================
--- head/devel/ice37/Makefile Sat Jul 13 21:27:16 2019 (r506579)
+++ head/devel/ice37/Makefile Sat Jul 13 21:33:52 2019 (r506580)
@@ -55,7 +55,8 @@ USE_GITHUB= yes
GH_ACCOUNT= zeroc-ice
GH_PROJECT= ice
-.if ((${ARCH} != i386) && (${ARCH} != powerpc))
+# determine if we are on a 64-bit arch
+.if ${ARCH:M*64*}
MAKE_ENV+= LP64=yes
.endif
More information about the svn-ports-all
mailing list