contrib/mkvtoolnix/Pkgfile

47 lines
1.2 KiB
Plaintext
Raw Normal View History

2010-12-14 14:18:57 +01:00
# Description: Tools to create, alter and inspect Matroska files.
# URL: http://www.bunkus.org/videotools/mkvtoolnix
2010-12-14 14:18:57 +01:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
# Packager: Han Boetes, han at mijncomputer dot nl
2010-12-15 14:11:22 +01:00
# Depends on: boost file flac libmatroska libvorbis ruby
# Nice to have: wxgtk
2008-02-13 21:09:45 +01:00
name=mkvtoolnix
2014-09-02 14:44:03 +02:00
version=7.1.0
2013-03-11 03:31:40 +01:00
release=1
2013-02-01 09:34:04 +01:00
source=(http://www.bunkus.org/videotools/mkvtoolnix/sources/$name-$version.tar.xz)
2008-02-13 21:09:45 +01:00
2010-12-14 14:18:57 +01:00
build() {
2008-02-13 21:09:45 +01:00
cd $name-$version
2010-12-14 14:18:57 +01:00
2013-11-19 12:38:30 +01:00
local JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
test -n "$JOBS" && export JOBS="-j $JOBS"
2010-12-15 14:11:22 +01:00
2011-05-21 04:25:19 +02: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 07:54:25 +02:00
export CFLAGS="${CFLAGS} -DBOOST_FILESYSTEM_VERSION=3"
export CXXFLAGS="${CXXFLAGS} -DBOOST_FILESYSTEM_VERSION=3"
2011-05-21 04:25:19 +02:00
autoreconf
2008-02-13 21:09:45 +01:00
./configure \
--prefix=/usr \
2011-05-21 04:25:19 +02:00
--mandir=/usr/man \
--disable-precompiled-headers
2010-12-14 14:18:57 +01:00
2013-07-01 04:55:15 +02:00
[ "$CXX" ] || CXX=g++
./drake $JOBS CXX="$CXX"
2010-12-15 14:11:22 +01:00
./drake $JOBS DESTDIR=$PKG install
rm -r \
2013-11-19 12:38:30 +01:00
$PKG/usr/man/{de,uk,ja,nl,zh_CN} \
2012-10-20 07:54:25 +02:00
$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
2008-02-13 21:09:45 +01:00
}