milis/talimatname/genel/v/vlc/talimat

58 lines
1.9 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.

# Tanım: VLC, özgür ve açık kaynak kodlu, platformlar arası, bir ortam oynatıcı ve çatıdır.
# URL: http://www.videolan.org/vlc/
# Paketçi: milisarge
# Gerekler: opus libssh2 qt5 x264 flac libmad glib dbus libupnp libvlc 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
# Grup: medya
isim=vlc
surum=2.2.8
devir=1
kaynak=(https://download.videolan.org/${isim}/${surum}/${isim}-${surum}.tar.xz
lua53_compat.patch)
derle() {
cd $isim-$surum
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 's/^Exec=/Name[tr]=VLC Medya Oynatıcı \
GenericName[tr]=Medya Oynatıcı \
Comment[tr]=Multimedya akışlarınızı okur,yakalar,yayınlar \
&/' $SRC/$isim-$surum/share/vlc.desktop.in
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
sed -i '/354/s/.*/#define QT_XMAS_JOKE_DAY 666/' $SRC/$isim-$surum/modules/gui/qt4/qt4.hpp
sed -i -e 's/\'--owner=root'\>//g' share/Makefile
sed -i -e 's/\'--group=root'\>//g' share/Makefile
make
make DESTDIR=$PKG install
for res in 16 32 48 128; do
install -Dm 644 "${SRC}/vlc-${surum}/share/icons/${res}x${res}/vlc.png" \
"${PKG}/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png"
done
}