From 2ec8ad47bb4568e6b61d8c466e905741ca0e9ab4 Mon Sep 17 00:00:00 2001 From: Dylan Nash 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/} ;;