void-packages/srcpkgs/ogmtools/template
Đoàn Trần Công Danh a92d370caa srcpkgs: add patch_args=-Np0 en-mass
Generated with:

	git ls-files 'srcpkgs/**/patches/*' |
	cut -d/ -f2 | uniq |
	xargs printf 'srcpkgs/%s/template\n'  |
	xargs grep -L 'patch_args=' |
	xargs sed -i "$(printf '1,/^$/{/^$/i\\\npatch_args=-Np0\n}\n')"
2021-06-20 13:17:29 +07:00

31 lines
1 KiB
Bash

# Template file for 'ogmtools'
pkgname=ogmtools
version=1.5
revision=5
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
patch_args=-Np0
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
}