mpv.mk (722B)
1 # TODO: 2 # - enable sndio, alsa, sdl2? 3 # - enable support for more libs (DVD etc). 4 # - ffmpeg ? 5 # make deps: python2.7?, perl 6 TARG = mpv 7 INSTALL_BIN = mpv 8 DEPS = xorglibxv xorglibxinerama xorglibx11 xorglibxcb xorglibxext xorglibxau \ 9 xorglibxdmcp xorgprotoall libav alsalib \ 10 libass fontconfig expat freetype libpng zlib libfribidi 11 12 <$mkbuild/mk.common 13 14 mpv:QV: 15 export CFLAGS="-std=c99 $CFLAGS -I`pwd` -I`pwd`/old_build $DEPS_CFLAGS" 16 export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS" 17 # 18 mkdir -p old_build 19 cp ../config.h old_build/config.h 20 cp ../config.mak old_build/config.mak 21 cp old-makefile Makefile 22 make -j$nprocs \ 23 CC="$CC" \ 24 LD="$LD" \ 25 LDFLAGS="$LDFLAGS" \ 26 CFLAGS="$CFLAGS" \ 27 EXTRALIBS="$LDFLAGS" \ 28 V="1"