void-packages/srcpkgs/cdrdao/template

26 lines
790 B
Bash

# Template file for 'cdrdao'
pkgname=cdrdao
version=1.2.5
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="lame-devel libao-devel libmad-devel libvorbis-devel"
short_desc="Records audio or data CD-Rs in disk-at-once (DAO) mode"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://cdrdao.sourceforge.net/"
changelog="https://cdrdao.sourceforge.net/changelog.html"
distfiles="${SOURCEFORGE_SITE}/cdrdao/${version}/cdrdao-${version}.tar.bz2"
checksum=d19b67c853c5dba2406afaab6cd788e77f35eebe634cac4679528477c7be01b6
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
}