void-packages/srcpkgs/ogmtools/template
2018-11-29 14:30:36 -02:00

30 lines
1 KiB
Bash

# Template file for 'ogmtools'
pkgname=ogmtools
version=1.5
revision=3
build_style=gnu-configure
configure_args="--disable-oggtest --disable-vorbistest --with-dvdread
--with-dvdread-includes=${XBPS_CROSS_BASE}/usr
--with-dvdread-libs=${XBPS_CROSS_BASE}/usr/lib"
hostmakedepends="automake libtool pkg-config"
makedepends="libvorbis-devel libdvdread-devel"
short_desc="Tools for information,extractions or creation of OGG media streams"
maintainer="Martin Riese <grauehaare@gmx.de>"
license="GPL-2.0-only"
homepage="http://www.bunkus.org/videotools/ogmtools/"
distfiles="http://www.bunkus.org/videotools/ogmtools/ogmtools-${version}.tar.bz2"
checksum=c8d61d1dbceb981dc7399c1a85e43b509fd3d071fb8d3ca89ea9385e6e40fdea
CFLAGS="-I./avilib"
CXXFLAGS="${CFLAGS}"
pre_configure() {
mv configure.{in,ac}
autoreconf -if
if [ "$CROSS_BUILD" ]; then
# Fix unneeded error when cross compiling
sed -i configure \
-e '/.*test "$cross_compiling" = yes &&/d' \
-e '/.*as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5/d'
fi
}