From 3d004591c11a91c4b92793088b49ecd1b24e9da2 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 11 Jan 2016 09:49:01 +0100 Subject: [PATCH] prboom-plus: fix cross compilation. --- srcpkgs/prboom-plus/template | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/srcpkgs/prboom-plus/template b/srcpkgs/prboom-plus/template index 12fda387746..df5928d4f95 100644 --- a/srcpkgs/prboom-plus/template +++ b/srcpkgs/prboom-plus/template @@ -4,8 +4,9 @@ version=2.5.1.4 revision=1 build_style=gnu-configure configure_args="--disable-cpu-opt --disable-dogs" -makedepends="fluidsynth-devel libmad-devel SDL_mixer-devel SDL_net-devel +hostmakedepends="pcre-devel fluidsynth-devel libmad-devel SDL_mixer-devel SDL_net-devel SDL_image-devel libpng-devel portmidi-devel libvorbis-devel glu-devel" +makedepends="${hostmakedepends}" short_desc="Doom source port developed from the original PrBoom" maintainer='Juan RP ' homepage="http://prboom-plus.sourceforge.net/" @@ -18,3 +19,7 @@ pre_configure() { sed -i 's|@PACKAGE@-@VERSION@|prboom-plus|g' Makefile.in sed -i 's|@PACKAGE@-@VERSION@|prboom-plus|g' doc/Makefile.in } +pre_build() { + cd data + make CC=cc CFLAGS="-Os" LDFLAGS= rdatawad +}