talimat 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # Tanım: VLC, özgür ve açık kaynak kodlu, platformlar arası, bir ortam oynatıcı ve çatıdır.
  2. # URL: http://www.videolan.org/vlc/
  3. # Paketçi: milisarge
  4. # Gerekler: opus libssh2 qt5-base qt5-x11extras qt5-svg 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
  5. # Grup: medya
  6. isim=vlc
  7. surum=3.0.3
  8. devir=1
  9. kaynak=(https://download.videolan.org/${isim}/${surum}/${isim}-${surum}.tar.xz
  10. update-vlc-plugin-cache.hook
  11. lua53_compat.patch
  12. vlc-qt5.11.patch)
  13. derle() {
  14. echo > /usr/bin/c99-gcc <<\EOF
  15. #!/bin/bash
  16. gcc -std=gnu99 "$@"
  17. EOF
  18. chmod a+x /usr/bin/c99-gcc
  19. cd $isim-$surum
  20. sed -e 's:truetype/ttf-dejavu:TTF:g' -i modules/visualization/projectm.cpp
  21. sed -e 's|-Werror-implicit-function-declaration||g' -i configure
  22. patch -Np1 < "${SRC}/lua53_compat.patch"
  23. sed 's|whoami|echo builduser|g' -i configure
  24. sed 's|hostname -f|echo arch|g' -i configure
  25. patch -Np1 < "${SRC}/vlc-qt5.11.patch"
  26. export CFLAGS+=" -I/usr/include/samba-4.0"
  27. export CPPFLAGS+=" -I/usr/include/samba-4.0"
  28. export CXXFLAGS+=" -std=c++11"
  29. export LUAC=/usr/bin/luac
  30. export LUA_LIBS="$(pkg-config --libs lua)"
  31. export RCC=/usr/bin/rcc-qt5
  32. BUILDCC="/usr/bin/gcc -std=gnu99"
  33. ./configure --prefix=/usr \
  34. --sysconfdir=/etc \
  35. --disable-rpath \
  36. --enable-nls \
  37. --enable-archive \
  38. --enable-dvdread \
  39. --enable-dvdnav \
  40. --enable-bluray \
  41. --disable-opencv \
  42. --enable-smbclient \
  43. --enable-sftp \
  44. --enable-realrtsp \
  45. --enable-ogg \
  46. --enable-mod \
  47. --enable-mpc \
  48. --enable-mad \
  49. --enable-mpg123 \
  50. --enable-gst-decode \
  51. --enable-avcodec \
  52. --enable-libva \
  53. --enable-avformat \
  54. --enable-postproc \
  55. --enable-faad \
  56. --enable-vpx \
  57. --disable-fdkaac \
  58. --enable-a52 \
  59. --enable-flac \
  60. --enable-libmpeg2 \
  61. --enable-vorbis \
  62. --enable-speex \
  63. --enable-opus \
  64. --enable-oggspots \
  65. --disable-schroedinger \
  66. --enable-png \
  67. --enable-jpeg \
  68. --enable-x264 \
  69. --enable-x265 \
  70. --enable-zvbi \
  71. --enable-libass \
  72. --enable-vdpau \
  73. --enable-wayland \
  74. --enable-sdl-image \
  75. --enable-freetype \
  76. --enable-fribidi \
  77. --enable-harfbuzz \
  78. --enable-fontconfig \
  79. --enable-svg \
  80. --enable-svgdec \
  81. --enable-aa \
  82. --enable-caca \
  83. --enable-pulse \
  84. --enable-alsa \
  85. --enable-samplerate \
  86. --enable-soxr \
  87. --enable-chromaprint \
  88. --enable-chromecast \
  89. --enable-qt \
  90. --enable-skins2 \
  91. --enable-libtar \
  92. --enable-ncurses \
  93. --enable-lirc \
  94. --enable-projectm \
  95. --enable-avahi \
  96. --enable-mtp \
  97. --enable-upnp \
  98. --enable-libxml2 \
  99. --disable-libgcrypt \
  100. --enable-gnutls \
  101. --enable-taglib \
  102. --enable-secret \
  103. --disable-update-check \
  104. --enable-notify \
  105. --enable-vlc
  106. make
  107. make DESTDIR="${PKG}" install
  108. for res in 16 32 48 128 256; do
  109. install -Dm 644 "${SRC}/vlc-${pkgver}/share/icons/${res}x${res}/vlc.png" \
  110. "${PKG}/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png"
  111. done
  112. install -Dm 644 "${SRC}/update-vlc-plugin-cache.hook" -t "${PKG}/usr/share/libalpm/hooks"
  113. }