diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2024-04-19 17:17:22 +0000 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2024-04-24 21:21:13 +0000 |
commit | a0f774de061d2c484393fcadeda2817bc5fda19b (patch) | |
tree | b9f7c678e3d0abf93a4a03908de0e6192d122d48 | |
parent | 8cf619a68547cc47a891bc87ba30f52130f4e862 (diff) |
games/iortcw: fix build on powerpc*
-rw-r--r-- | games/iortcw/Makefile | 2 | ||||
-rw-r--r-- | games/iortcw/files/patch-MP_Makefile | 11 | ||||
-rw-r--r-- | games/iortcw/files/patch-SP_Makefile | 11 |
3 files changed, 23 insertions, 1 deletions
diff --git a/games/iortcw/Makefile b/games/iortcw/Makefile index 9c20425cd256..86dff84e9df0 100644 --- a/games/iortcw/Makefile +++ b/games/iortcw/Makefile @@ -30,7 +30,7 @@ MAKE_ARGS= BINDIR="${STAGEDIR}${PREFIX}/bin" \ LDFLAGS_i386= -Wl,-znotext -PLIST_SUB= ARCH="${ARCH:S/amd64/x86_64/:S/i386/x86/:S/powerpc/ppc/}" \ +PLIST_SUB= ARCH="${ARCH:S/amd64/x86_64/:S/i386/x86/}" \ WOLFDIR="${WOLFDIR}" SUB_FILES= iowolfded iowolfmp iowolfsp pkg-message diff --git a/games/iortcw/files/patch-MP_Makefile b/games/iortcw/files/patch-MP_Makefile index be11bab35ea7..195d8804563a 100644 --- a/games/iortcw/files/patch-MP_Makefile +++ b/games/iortcw/files/patch-MP_Makefile @@ -1,5 +1,16 @@ --- MP/Makefile.orig 2019-03-16 18:09:48 UTC +++ MP/Makefile +@@ -5,8 +5,8 @@ COMPILE_PLATFORM=$(shell uname | sed -e 's/_.*//' | tr + # + + COMPILE_PLATFORM=$(shell uname | sed -e 's/_.*//' | tr '[:upper:]' '[:lower:]' | sed -e 's/\//_/g') +-COMPILE_ARCH=$(shell uname -m | sed -e 's/i.86/x86/' | sed -e 's/^arm.*/arm/') +-ARM_VER_CHECK=$(shell uname -m) ++COMPILE_ARCH=$(shell uname -p | sed -e 's/i.86/x86/' | sed -e 's/^arm.*/arm/') ++ARM_VER_CHECK=$(shell uname -p) + + ifeq ($(COMPILE_PLATFORM),sunos) + # Solaris uname and GNU uname differ @@ -101,14 +101,6 @@ export ARCH endif export ARCH diff --git a/games/iortcw/files/patch-SP_Makefile b/games/iortcw/files/patch-SP_Makefile index 294a9b7c76d6..40cd99e00098 100644 --- a/games/iortcw/files/patch-SP_Makefile +++ b/games/iortcw/files/patch-SP_Makefile @@ -1,5 +1,16 @@ --- SP/Makefile.orig 2019-03-16 18:09:48 UTC +++ SP/Makefile +@@ -5,8 +5,8 @@ COMPILE_PLATFORM=$(shell uname | sed -e 's/_.*//' | tr + # + + COMPILE_PLATFORM=$(shell uname | sed -e 's/_.*//' | tr '[:upper:]' '[:lower:]' | sed -e 's/\//_/g') +-COMPILE_ARCH=$(shell uname -m | sed -e 's/i.86/x86/' | sed -e 's/^arm.*/arm/') +-ARM_VER_CHECK=$(shell uname -m) ++COMPILE_ARCH=$(shell uname -p | sed -e 's/i.86/x86/' | sed -e 's/^arm.*/arm/') ++ARM_VER_CHECK=$(shell uname -p) + + ifeq ($(COMPILE_PLATFORM),sunos) + # Solaris uname and GNU uname differ @@ -98,14 +98,6 @@ export ARCH endif export ARCH |