2010-12-15 00:18:57 +11:00
|
|
|
# Description: Tools to create, alter and inspect Matroska files.
|
2008-05-16 03:36:14 -04:00
|
|
|
# URL: http://www.bunkus.org/videotools/mkvtoolnix
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2010-12-15 00:18:57 +11:00
|
|
|
# Packager: Han Boetes, han at mijncomputer dot nl
|
2010-12-16 00:11:22 +11:00
|
|
|
# Depends on: boost file flac libmatroska libvorbis ruby
|
2012-06-14 20:26:51 +10:00
|
|
|
# Nice to have: wxgtk
|
2008-02-13 15:09:45 -05:00
|
|
|
|
|
|
|
name=mkvtoolnix
|
2015-04-23 00:02:27 +10:00
|
|
|
version=7.8.0
|
2015-04-23 20:30:56 +10:00
|
|
|
release=2
|
|
|
|
source=(http://www.bunkus.org/videotools/mkvtoolnix/sources/$name-$version.tar.xz
|
|
|
|
boost-1.58.patch)
|
2008-02-13 15:09:45 -05:00
|
|
|
|
2010-12-15 00:18:57 +11:00
|
|
|
build() {
|
2008-02-13 15:09:45 -05:00
|
|
|
cd $name-$version
|
2010-12-15 00:18:57 +11:00
|
|
|
|
2015-04-23 20:30:56 +10:00
|
|
|
patch -p1 -i $SRC/boost-1.58.patch
|
|
|
|
|
2013-11-19 22:38:30 +11:00
|
|
|
local JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
|
2015-04-23 00:02:27 +10:00
|
|
|
test -n "$JOBS" && export DRAKETHREADS="$JOBS"
|
2010-12-16 00:11:22 +11:00
|
|
|
|
2011-05-21 12:25:19 +10:00
|
|
|
# Disable automagic curl dep used for online update checking
|
|
|
|
sed -i -e '/curl/d' configure.in
|
|
|
|
export CURL_CFLAGS="" CURL_LIBS=""
|
|
|
|
|
2012-10-20 16:54:25 +11:00
|
|
|
export CFLAGS="${CFLAGS} -DBOOST_FILESYSTEM_VERSION=3"
|
|
|
|
export CXXFLAGS="${CXXFLAGS} -DBOOST_FILESYSTEM_VERSION=3"
|
|
|
|
|
2015-04-23 00:02:27 +10:00
|
|
|
autoreconf -vfi
|
2011-05-21 12:25:19 +10:00
|
|
|
|
2008-02-13 15:09:45 -05:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2011-05-21 12:25:19 +10:00
|
|
|
--mandir=/usr/man \
|
|
|
|
--disable-precompiled-headers
|
2010-12-15 00:18:57 +11:00
|
|
|
|
2013-07-01 12:55:15 +10:00
|
|
|
[ "$CXX" ] || CXX=g++
|
2015-04-23 00:02:27 +10:00
|
|
|
./drake CXX="$CXX"
|
|
|
|
./drake DESTDIR=$PKG install
|
2010-12-16 00:11:22 +11:00
|
|
|
|
|
|
|
rm -r \
|
2013-11-19 22:38:30 +11:00
|
|
|
$PKG/usr/man/{de,uk,ja,nl,zh_CN} \
|
2012-10-20 16:54:25 +11:00
|
|
|
$PKG/usr/share/locale
|
|
|
|
|
2013-03-05 22:33:29 +11:00
|
|
|
# remove doc's if wxgtk is installed
|
|
|
|
rm -rf $PKG/usr/share/doc
|
|
|
|
|
|
|
|
# remove if empty
|
|
|
|
find $PKG/usr/share -depth -empty -delete
|
2008-02-13 15:09:45 -05:00
|
|
|
}
|