From 1fa555c69efb457502d76c7a08b91ed69460b935 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 5 Nov 2014 19:40:50 +0100 Subject: [PATCH] gnubg: fix cross build, fix CPU deps, enable more features. --- srcpkgs/gnubg/template | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/srcpkgs/gnubg/template b/srcpkgs/gnubg/template index d4f78f082f8..a39757ffbcc 100644 --- a/srcpkgs/gnubg/template +++ b/srcpkgs/gnubg/template @@ -1,10 +1,17 @@ # Template file for 'gnubg' pkgname=gnubg version=1.04.000 -revision=1 +revision=2 build_style=gnu-configure +if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then + configure_args="--enable-simd=sse2" +fi hostmakedepends="pkg-config python gdk-pixbuf-devel" -makedepends="libglib-devel gtk+-devel python-devel readline-devel readline" +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" ${pkgname}>=${version}" +fi +makedepends="libglib-devel gtk+-devel gtkglext-devel python-devel + libcanberra-devel readline-devel readline sqlite-devel" short_desc="GNU Backgammon game" maintainer="Christian Neukirchen " license="GPL-3" @@ -13,4 +20,13 @@ update_site="http://www.gnubg.org/index.php?itemid=22" update_pattern='gnubg-release-\K[\d.]+\d+' distfiles="http://www.gnubg.org/media/sources/$pkgname-release-$version-sources.tar.gz" checksum=66ca950d33d697f7a87605dfd3b83165ed756a927eaef164684914b9b0a14e3f -nocross=yes + +pre_configure() { + if [ "$CROSS_BUILD" ]; then + makeweights < gnubg.weights > gnubg.wd + makebearoff -o 6 -s 7999999 -f gnubg_os0.bd + makebearoff -t 6x6 -f gnubg_ts0.bd + export LDFLAGS= + fi +} +