void-packages/srcpkgs/cdrdao/template
Jürgen Buchmüller c9b87c6605 cdrdao: fix cross
2018-01-04 00:41:10 +01:00

24 lines
717 B
Bash

# Template file for 'cdrdao'
pkgname=cdrdao
version=1.2.3
revision=3
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="lame-devel libmad-devel libvorbis-devel libao-devel"
short_desc="Records audio or data CD-Rs in disk-at-once (DAO) mode"
maintainer="Orphaned <orphan@voidlinux.eu>"
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
}