Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] hedgewars: fix ppc build
@ 2019-12-24 18:19 voidlinux-github
  2019-12-24 18:32 ` voidlinux-github
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: voidlinux-github @ 2019-12-24 18:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]

There is a new pull request by nashimus against master on the void-packages repository

https://github.com/nashimus/void-packages hedgewars
https://github.com/void-linux/void-packages/pull/17759

hedgewars: fix ppc build


A patch file from https://github.com/void-linux/void-packages/pull/17759.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-hedgewars-17759.patch --]
[-- Type: text/x-diff, Size: 1089 bytes --]

From 2ec8ad47bb4568e6b61d8c466e905741ca0e9ab4 Mon Sep 17 00:00:00 2001
From: Dylan Nash <nashimus@dismail.de>
Date: Tue, 24 Dec 2019 11:20:15 -0700
Subject: [PATCH] hedgewars: fix ppc build

---
 srcpkgs/hedgewars/template | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/srcpkgs/hedgewars/template b/srcpkgs/hedgewars/template
index 80d7258552b..278689f6729 100644
--- a/srcpkgs/hedgewars/template
+++ b/srcpkgs/hedgewars/template
@@ -30,12 +30,19 @@ case $XBPS_TARGET_MACHINE in
 		hostmakedepends+=" glew-devel ghc libatomic-devel"
 		nopie_files+=" /usr/bin/hedgewars"
 		;;
+	# forces usage of C engine and ghc due to PPC lacking freepascal compiler
+	ppc*)
+		hostmakedepends="${hostmakedepends// fpc/}"
+		hostmakedepends+=" libatomic-devel ghc"
+		configure_args+=" -DBUILD_ENGINE_C=1"
+		nopie_files+=" /usr/bin/hedgewars"
+		;;
 esac
 
 pre_configure() {
 	# remove option not supported by clang
 	case $XBPS_TARGET_MACHINE in
-	i686*)
+	i686*|ppc*)
 		CFLAGS=${CFLAGS/-fstack-clash-protection/}
 		CXXFLAGS=${CXXFLAGS/-fstack-clash-protection/}
 		;;

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-12-26 11:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-24 18:19 [PR PATCH] hedgewars: fix ppc build voidlinux-github
2019-12-24 18:32 ` voidlinux-github
2019-12-24 18:35 ` voidlinux-github
2019-12-24 18:36 ` voidlinux-github
2019-12-25 13:28 ` voidlinux-github
2019-12-25 16:45 ` [PR PATCH] [Updated] " voidlinux-github
2019-12-25 23:14 ` voidlinux-github
2019-12-26  1:46 ` [PR PATCH] [Updated] " voidlinux-github
2019-12-26 11:22 ` voidlinux-github
2019-12-26 11:23 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).