milis/talimatname/genel/vlc/talimat

50 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Description: VLC, özgür ve açık kaynak kodlu, platformlar arası, bir ortam oynatıcı ve çatıdır.
# URL: http://www.videolan.org/vlc/
# Packager: milisarge
# Depends on: opus libssh2 qt5 x264 flac libmad glib dbus libupnp libidn librsvg alsa-lib xorg-libxinerama xorg-libxpm libvpx libcdio vcdimager live libdvdcss libdvdread libdvdnav libogg libtheora lame faac libvorbis ffmpeg28 faad2 liba52 libmpeg2 libmpcdec fribidi lua libdv speex
name=vlc
version=2.2.6
release=1
source=(https://download.videolan.org/${name}/${version}/${name}-${version}.tar.xz
lua53_compat.patch)
build() {
cd $name-$version
sed -i -e 's:truetype/freefont:TTF:g' modules/text_renderer/freetype.c
sed -i -e 's:truetype/ttf-dejavu:TTF:g' modules/visualization/projectm.cpp
patch -p1 < "${SRC}/lua53_compat.patch"
sed -i '/seems to be moved/s/^/#/' autotools/ltmain.sh
export PKG_CONFIG_PATH="/usr/lib/ffmpeg2.8/pkgconfig"
export CXXFLAGS+=" -std=c++11"
export LUAC=/usr/bin/luac
export LUA_LIBS="`pkg-config --libs lua`"
export RCC=/usr/bin/rcc-qt5
./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-rpath \
--enable-faad \
--enable-nls \
--enable-lirc \
--enable-ncurses \
--enable-realrtsp \
--enable-aa \
--enable-vcdx \
--enable-upnp \
--enable-bluray \
--enable-opus \
--enable-sftp
make
make DESTDIR=$PKG install
for res in 16 32 48 128; do
install -Dm 644 "${SRC}/vlc-${version}/share/icons/${res}x${res}/vlc.png" \
"${PKG}/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png"
done
}