cdrdao: fix cross

This commit is contained in:
Jürgen Buchmüller 2018-01-04 00:41:10 +01:00
parent 169d64dc91
commit c9b87c6605

View file

@ -2,7 +2,6 @@
pkgname=cdrdao
version=1.2.3
revision=3
nocross=yes # runs pccts/antlr/antlr
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="lame-devel libmad-devel libvorbis-devel libao-devel"
@ -12,3 +11,14 @@ license="GPL-2"
homepage="http://cdrdao.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/cdrdao/cdrdao/1.2.3/cdrdao-1.2.3.tar.bz2"
checksum=8193cb8fa6998ac362c55807e89ad0b3c63edc6b01afaeb3d5042519527fb75e
pre_build() {
local f
if [ -n "$CROSS_BUILD" ]; then
# build antlr and dlg for the host
for f in antlr dlg; do
cd ${wrksrc}/pccts/$f
make CC=gcc LD=gcc CFLAGS="-O2 -pipe" LDFLAGS="-s"
done
fi
}