puzzles: update to 20160428.

Respect LDFLAGS.
This commit is contained in:
Christian Neukirchen 2016-06-21 21:36:47 +02:00
parent 0c2a0b8a4a
commit 02470705ce

View file

@ -1,21 +1,23 @@
# Template file for 'puzzles'
pkgname=puzzles
version=20150502
revision=2
wrksrc="${pkgname}-7f64f4a"
version=20160428
revision=1
wrksrc="${pkgname}-b31155b"
hostmakedepends="pkg-config perl"
makedepends="gtk+-devel"
short_desc="Simon Tatham's Portable Puzzle Collection"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="MIT"
homepage="http://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
distfiles="http://tartarus.org/~simon-git/gitweb/?p=puzzles.git;a=snapshot;h=7f64f4a50e46304b7bad011a1251e146ab63ca15;sf=tgz>${pkgname}-${version}.tar.gz"
checksum=7f4edcbe542b64726461c17272ba49790197272231460abb363dd67fc3cde739
distfiles="http://tartarus.org/~simon-git/gitweb/?p=puzzles.git;a=snapshot;h=b31155b732c1bab2e744a0ebf7532af2de2ce4a5;sf=tgz>${pkgname}-${version}.tar.gz"
checksum=d4ac37d3dbba1ab49c26d0ad10f1ac69be20ed17140b137f0a4a1f0c0351d563
do_build() {
./mkfiles.pl
CC="${CC}" CFLAGS="${CFLAGS} -Wno-error" make ${makejobs} -f Makefile.gtk \
prefix=/usr BINPREFIX=puzzles-
echo "XLIBS += ${LDFLAGS}" >>Makefile.gtk
echo "ULIBS += ${LDFLAGS}" >>Makefile.gtk
CC="${CC}" CFLAGS="${CFLAGS} -Wno-error" \
make ${makejobs} -f Makefile.gtk prefix=/usr BINPREFIX=puzzles-
}
do_install() {