summaryrefslogtreecommitdiff
path: root/mkvtoolnix/Pkgfile
blob: 05edf8454ef768c87c2a2c2c1cb536e2fb70d235 (plain)
    1 # Description: Tools to create, alter and inspect Matroska files.
    2 # URL: https://mkvtoolnix.download/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Packager: Han Boetes, han at mijncomputer dot nl
    5 # Depends on: boost file flac libmatroska libvorbis ruby
    6 # Nice to have: wxgtk
    7 
    8 name=mkvtoolnix
    9 version=9.3.1
   10 release=1
   11 source=(https://mkvtoolnix.download/sources/$name-$version.tar.xz)
   12 
   13 build() {
   14 	cd $name-$version
   15 
   16 	local JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
   17 	test -n "$JOBS" && export DRAKETHREADS="$JOBS"
   18 
   19 #	export CFLAGS="${CFLAGS} -DBOOST_FILESYSTEM_VERSION=3"
   20 #	export CXXFLAGS="${CXXFLAGS} -DBOOST_FILESYSTEM_VERSION=3"
   21 
   22 #	autoreconf -vfi
   23 
   24 	./configure \
   25 		--prefix=/usr \
   26 		--disable-precompiled-headers \
   27 		--without-curl
   28 
   29 	[ "$CXX" ] || CXX=g++
   30 	./drake CXX="$CXX"
   31 	./drake DESTDIR=$PKG install
   32 
   33 	rm -r \
   34 		$PKG/usr/share/man/{ca,de,es,ja,ko,nl,pl,uk,zh_CN} \
   35 		$PKG/usr/share/locale
   36 
   37 	# remove doc's if wxgtk is installed
   38 	rm -rf $PKG/usr/share/doc
   39 
   40 	# remove if empty
   41 	find $PKG/usr/share -depth -empty -delete
   42 }

Generated by cgit