git: 24336172a3e4 - main - emulators/wine-devel: Translate amd64 to x86_64
Gerald Pfeifer
gerald at FreeBSD.org
Fri Sep 17 14:29:43 UTC 2021
The branch main has been updated by gerald:
URL: https://cgit.FreeBSD.org/ports/commit/?id=24336172a3e441e40d9c9b4259b60b38928359ad
commit 24336172a3e441e40d9c9b4259b60b38928359ad
Author: Gerald Pfeifer <gerald at FreeBSD.org>
AuthorDate: 2021-09-17 14:26:55 +0000
Commit: Gerald Pfeifer <gerald at FreeBSD.org>
CommitDate: 2021-09-17 14:29:25 +0000
emulators/wine-devel: Translate amd64 to x86_64
In a02e3c6686d68350132a88379fc3d99445b9b80d we translated amd64
to x86-64, which is the marketing name, alas we need to use x86_64,
the technical name used on the GNU universe (and by Wine). What a
difference underscore vs dash makes.
---
emulators/wine-devel/Makefile | 2 +-
emulators/wine-devel/files/patch-amd64-vs-x86-64 | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/emulators/wine-devel/Makefile b/emulators/wine-devel/Makefile
index 7b1f2ea32179..ae303d246de5 100644
--- a/emulators/wine-devel/Makefile
+++ b/emulators/wine-devel/Makefile
@@ -150,7 +150,7 @@ X11_LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
# --libdir is required since Wine defaults to "${PREFIX}/lib64" on amd64.
CONFIGURE_ARGS+= --enable-win64 --libdir=${PREFIX}/lib
-PLIST_SUB+= WINE32="@comment " WINE64="" WINEARCH="x86-64"
+PLIST_SUB+= WINE32="@comment " WINE64="" WINEARCH="x86_64"
# Wine assumes a WoW64 package is available, which is not the case on
# FreeBSD yet.
diff --git a/emulators/wine-devel/files/patch-amd64-vs-x86-64 b/emulators/wine-devel/files/patch-amd64-vs-x86-64
index d20d34baca1b..36865ce7979c 100644
--- a/emulators/wine-devel/files/patch-amd64-vs-x86-64
+++ b/emulators/wine-devel/files/patch-amd64-vs-x86-64
@@ -5,13 +5,13 @@ index 59857762edd..ed7a58ed1f9 100644
if (!man_ext) man_ext = "3w";
if (arch)
{
-+ /* For historic reasons FreeBSD calls x86-64 by the name of amd64
++ /* For historic reasons FreeBSD calls x86_64 by the name of amd64
+ * and features a variable ARCH with that value in the environment
+ * when building ports. This breaks Wine in interesting ways, so
+ * revert to the industry standard name when we enouncter amd64.
+ */
+ if ( !strcmp(arch,"amd64") )
-+ arch = "x86-64";
++ arch = "x86_64";
so_dir = strmake( "$(dlldir)/%s-unix", arch );
pe_dir = strmake( "$(dlldir)/%s-windows", arch );
}
More information about the dev-commits-ports-all
mailing list