47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
# Description: Tools to create, alter and inspect Matroska files.
|
|
# URL: http://www.bunkus.org/videotools/mkvtoolnix
|
|
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
|
|
# Packager: Han Boetes, han at mijncomputer dot nl
|
|
# Depends on: boost file flac libmatroska libvorbis ruby
|
|
# Nice to have: wxgtk
|
|
|
|
name=mkvtoolnix
|
|
version=7.1.0
|
|
release=1
|
|
source=(http://www.bunkus.org/videotools/mkvtoolnix/sources/$name-$version.tar.xz)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
local JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
|
|
test -n "$JOBS" && export JOBS="-j $JOBS"
|
|
|
|
# Disable automagic curl dep used for online update checking
|
|
sed -i -e '/curl/d' configure.in
|
|
export CURL_CFLAGS="" CURL_LIBS=""
|
|
|
|
export CFLAGS="${CFLAGS} -DBOOST_FILESYSTEM_VERSION=3"
|
|
export CXXFLAGS="${CXXFLAGS} -DBOOST_FILESYSTEM_VERSION=3"
|
|
|
|
autoreconf
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--mandir=/usr/man \
|
|
--disable-precompiled-headers
|
|
|
|
[ "$CXX" ] || CXX=g++
|
|
./drake $JOBS CXX="$CXX"
|
|
./drake $JOBS DESTDIR=$PKG install
|
|
|
|
rm -r \
|
|
$PKG/usr/man/{de,uk,ja,nl,zh_CN} \
|
|
$PKG/usr/share/locale
|
|
|
|
# remove doc's if wxgtk is installed
|
|
rm -rf $PKG/usr/share/doc
|
|
|
|
# remove if empty
|
|
find $PKG/usr/share -depth -empty -delete
|
|
}
|