vlc-2.2.4-r1.ebuild 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. SCM=""
  5. if [[ ${PV} = *9999 ]] ; then
  6. SCM="git-r3"
  7. if [ "${PV%.9999}" != "${PV}" ] ; then
  8. EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git"
  9. else
  10. EGIT_REPO_URI="git://git.videolan.org/vlc.git"
  11. fi
  12. fi
  13. inherit autotools flag-o-matic toolchain-funcs versionator virtualx ${SCM}
  14. MY_PV="${PV/_/-}"
  15. MY_PV="${MY_PV/-beta/-test}"
  16. MY_P="${PN}-${MY_PV}"
  17. DESCRIPTION="VLC media player - Video player and streamer"
  18. HOMEPAGE="http://www.videolan.org/vlc/"
  19. if [[ ${PV} = *9999 ]] ; then # Live ebuild
  20. SRC_URI=""
  21. elif [[ "${MY_P}" == "${P}" ]]; then
  22. SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz"
  23. else
  24. SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz"
  25. fi
  26. LICENSE="LGPL-2.1 GPL-2"
  27. SLOT="0/5-8" # vlc - vlccore
  28. if [[ ${PV} != *9999 ]] ; then
  29. KEYWORDS="amd64 arm ppc ppc64 -sparc x86 ~x86-fbsd"
  30. fi
  31. IUSE="a52 aalib alsa altivec atmo +audioqueue +avcodec
  32. +avformat bidi bluray cdda cddb chromaprint dbus dc1394 debug
  33. directfb directx dts dvb +dvbpsi dvd dxva2 elibc_glibc +encode faad fdk
  34. fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls
  35. growl gstreamer httpd ieee1394 jack jpeg kate kde libass libav libcaca libnotify
  36. +libsamplerate libtiger linsys libtar lirc live lua
  37. macosx-dialog-provider macosx-eyetv macosx-quartztext macosx-qtkit
  38. matroska cpu_flags_x86_mmx modplug mp3 mpeg
  39. mtp musepack ncurses neon ogg omxil opencv opengl optimisememory opus
  40. png postproc projectm pulseaudio +qt4 qt5 rdp rtsp run-as-root samba
  41. schroedinger sdl sdl-image sftp shout sid skins speex cpu_flags_x86_sse svg +swscale
  42. taglib theora tremor truetype twolame udev upnp vaapi v4l vcdx vdpau
  43. vlm vnc vorbis vpx wma-fixed +X x264 x265 +xcb xml xv zeroconf zvbi"
  44. RDEPEND="
  45. dev-libs/libgpg-error:0
  46. net-dns/libidn:0
  47. sys-libs/zlib:0[minizip]
  48. virtual/libintl:0
  49. a52? ( >=media-libs/a52dec-0.7.4-r3:0 )
  50. aalib? ( media-libs/aalib:0 )
  51. alsa? ( >=media-libs/alsa-lib-1.0.24:0 )
  52. avcodec? (
  53. !libav? ( media-video/ffmpeg:0= )
  54. libav? ( media-video/libav:0= )
  55. )
  56. avformat? (
  57. !libav? ( media-video/ffmpeg:0= )
  58. libav? ( media-video/libav:0= )
  59. )
  60. bidi? ( dev-libs/fribidi:0 )
  61. bluray? ( >=media-libs/libbluray-0.3:0= )
  62. cddb? ( >=media-libs/libcddb-1.2:0 )
  63. chromaprint? ( >=media-libs/chromaprint-0.6:0 )
  64. dbus? ( >=sys-apps/dbus-1.6:0 )
  65. dc1394? ( >=sys-libs/libraw1394-2.0.1:0 >=media-libs/libdc1394-2.1:2 )
  66. directfb? ( dev-libs/DirectFB:0 sys-libs/zlib:0 )
  67. dts? ( >=media-libs/libdca-0.0.5:0 )
  68. dvbpsi? ( >=media-libs/libdvbpsi-1.0.0:0= )
  69. dvd? ( >=media-libs/libdvdread-4.9:0 >=media-libs/libdvdnav-4.9:0 )
  70. elibc_glibc? ( >=sys-libs/glibc-2.8:2.2 )
  71. faad? ( >=media-libs/faad2-2.6.1:0 )
  72. fdk? ( media-libs/fdk-aac:0 )
  73. flac? ( >=media-libs/libogg-1:0 >=media-libs/flac-1.1.2:0 )
  74. fluidsynth? ( >=media-sound/fluidsynth-1.1.2:0 )
  75. fontconfig? ( media-libs/fontconfig:1.0 )
  76. gcrypt? ( >=dev-libs/libgcrypt-1.2.0:0= )
  77. gme? ( media-libs/game-music-emu:0 )
  78. gnome? ( gnome-base/gnome-vfs:2 dev-libs/glib:2 )
  79. gnutls? ( >=net-libs/gnutls-3.0.20:0 )
  80. gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 )
  81. ieee1394? ( >=sys-libs/libraw1394-2.0.1:0 >=sys-libs/libavc1394-0.5.3:0 )
  82. jack? ( virtual/jack )
  83. jpeg? ( virtual/jpeg:0 )
  84. kate? ( >=media-libs/libkate-0.3:0 )
  85. libass? ( >=media-libs/libass-0.9.8:0= media-libs/fontconfig:1.0 )
  86. libcaca? ( >=media-libs/libcaca-0.99_beta14:0 )
  87. libnotify? ( x11-libs/libnotify:0 x11-libs/gtk+:2 x11-libs/gdk-pixbuf:2 dev-libs/glib:2 )
  88. libsamplerate? ( media-libs/libsamplerate:0 )
  89. libtar? ( >=dev-libs/libtar-1.2.11-r3:0 )
  90. libtiger? ( >=media-libs/libtiger-0.3.1:0 )
  91. linsys? ( >=media-libs/zvbi-0.2.28:0 )
  92. lirc? ( app-misc/lirc:0 )
  93. live? ( >=media-plugins/live-2011.12.23:0 )
  94. lua? ( >=dev-lang/lua-5.1:0 )
  95. matroska? ( >=dev-libs/libebml-1:0= >=media-libs/libmatroska-1:0= )
  96. modplug? ( >=media-libs/libmodplug-0.8.4:0 !~media-libs/libmodplug-0.8.8 )
  97. mp3? ( media-libs/libmad:0 )
  98. mpeg? ( >=media-libs/libmpeg2-0.3.2:0 )
  99. mtp? ( >=media-libs/libmtp-1:0 )
  100. musepack? ( >=media-sound/musepack-tools-444:0 )
  101. ncurses? ( sys-libs/ncurses:0=[unicode] )
  102. ogg? ( >=media-libs/libogg-1:0 )
  103. opencv? ( >media-libs/opencv-2:0 )
  104. opengl? ( virtual/opengl:0 >=x11-libs/libX11-1.3.99.901:0 )
  105. opus? ( >=media-libs/opus-1.0.3:0 )
  106. png? ( media-libs/libpng:0= sys-libs/zlib:0 )
  107. postproc? (
  108. !libav? ( >=media-video/ffmpeg-2.2:0= )
  109. libav? ( media-libs/libpostproc:0= )
  110. )
  111. projectm? ( media-libs/libprojectm:0 media-fonts/dejavu:0 )
  112. pulseaudio? ( >=media-sound/pulseaudio-1:0 )
  113. !qt5? ( qt4? ( dev-qt/qtcore:4 dev-qt/qtgui:4 ) )
  114. qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtwidgets:5 dev-qt/qtx11extras:5 )
  115. rdp? ( =net-misc/freerdp-1*:0=[client] )
  116. samba? ( >=net-fs/samba-4.0.0_alpha1:0[client] )
  117. schroedinger? ( >=media-libs/schroedinger-1.0.10:0 )
  118. sdl? ( >=media-libs/libsdl-1.2.10:0
  119. sdl-image? ( >=media-libs/sdl-image-1.2.10:0 sys-libs/zlib:0 ) )
  120. sftp? ( net-libs/libssh2:0 )
  121. shout? ( >=media-libs/libshout-2.1:0 )
  122. sid? ( media-libs/libsidplay:2 )
  123. skins? ( x11-libs/libXext:0 x11-libs/libXpm:0 x11-libs/libXinerama:0 )
  124. speex? ( media-libs/speex:0 )
  125. svg? ( >=gnome-base/librsvg-2.9:2 >=x11-libs/cairo-1.13.1:0 )
  126. swscale? (
  127. !libav? ( media-video/ffmpeg:0= )
  128. libav? ( media-video/libav:0= )
  129. )
  130. taglib? ( >=media-libs/taglib-1.9:0 sys-libs/zlib:0 )
  131. theora? ( >=media-libs/libtheora-1.0_beta3:0 )
  132. tremor? ( media-libs/tremor:0 )
  133. truetype? ( media-libs/freetype:2 virtual/ttf-fonts:0
  134. !fontconfig? ( media-fonts/dejavu:0 ) )
  135. twolame? ( media-sound/twolame:0 )
  136. udev? ( >=virtual/udev-142:0 )
  137. upnp? ( net-libs/libupnp:0 )
  138. v4l? ( media-libs/libv4l:0 )
  139. vaapi? (
  140. x11-libs/libva:0[X,drm]
  141. !libav? ( media-video/ffmpeg:0=[vaapi] )
  142. libav? ( media-video/libav:0=[vaapi] )
  143. )
  144. vcdx? ( >=dev-libs/libcdio-0.78.2:0 >=media-video/vcdimager-0.7.22:0 )
  145. zeroconf? ( >=net-dns/avahi-0.6:0[dbus] )
  146. "
  147. # Temporarily block non-live FFMPEG versions as they break vdpau, 9999 works;
  148. # thus we'll have to wait for a new release there.
  149. RDEPEND="${RDEPEND}
  150. vdpau? (
  151. x11-libs/libvdpau:0
  152. !libav? ( media-video/ffmpeg:0= )
  153. libav? ( >=media-video/libav-10:0= )
  154. )
  155. vnc? ( >=net-libs/libvncserver-0.9.9:0 )
  156. vorbis? ( media-libs/libvorbis:0 )
  157. vpx? ( media-libs/libvpx:0= )
  158. X? ( x11-libs/libX11:0 )
  159. x264? ( media-libs/x264:0= )
  160. x265? ( media-libs/x265:0= )
  161. xcb? ( x11-libs/libxcb:0 x11-libs/xcb-util:0 x11-libs/xcb-util-keysyms:0 )
  162. xml? ( dev-libs/libxml2:2 )
  163. zvbi? ( media-libs/zvbi:0 )
  164. "
  165. DEPEND="${RDEPEND}
  166. !qt5? ( kde? ( kde-frameworks/kdelibs:4 ) )
  167. amd64? ( dev-lang/yasm:* )
  168. x86? ( dev-lang/yasm:* )
  169. xcb? ( x11-proto/xproto:0 )
  170. app-arch/xz-utils:0
  171. >=sys-devel/gettext-0.18.3:*
  172. virtual/pkgconfig:*
  173. "
  174. REQUIRED_USE="
  175. aalib? ( X )
  176. bidi? ( truetype )
  177. cddb? ( cdda )
  178. dvb? ( dvbpsi )
  179. dxva2? ( avcodec )
  180. ffmpeg? ( avcodec avformat swscale )
  181. fontconfig? ( truetype )
  182. gnutls? ( gcrypt )
  183. httpd? ( lua )
  184. libcaca? ( X )
  185. libtar? ( skins )
  186. libtiger? ( kate )
  187. qt4? ( X )
  188. qt5? ( X )
  189. sdl? ( X )
  190. skins? ( truetype X xml || ( qt4 qt5 ) )
  191. vaapi? ( avcodec X )
  192. vdpau? ( X )
  193. vlm? ( encode )
  194. xv? ( xcb )
  195. "
  196. PATCHES=(
  197. # Fix build system mistake.
  198. "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch
  199. # Patch up incompatibilities and reconfigure autotools.
  200. "${FILESDIR}"/${PN}-9999-libva-1.2.1-compat.patch
  201. # Fix up broken audio when skipping using a fixed reversed bisected commit.
  202. "${FILESDIR}"/${PN}-2.1.0-TomWij-bisected-PA-broken-underflow.patch
  203. # Bug #541678
  204. "${FILESDIR}"/qt4-select.patch
  205. # Allow QT5.5 since Gentoo has a patched QTwidgets
  206. "${FILESDIR}"/${PN}-2.2.2-qt5widgets.patch
  207. # Bug #575072
  208. "${FILESDIR}"/${PN}-2.2.4-relax_ffmpeg.patch
  209. "${FILESDIR}"/${PN}-2.2.4-ffmpeg3.patch
  210. # Bug #589396
  211. "${FILESDIR}"/${PN}-2.2.4-qt57.patch
  212. "${FILESDIR}"/${PN}-2.2.4-cxx0x.patch
  213. # Bug #594126
  214. "${FILESDIR}"/${PN}-2.2.4-decoder-lock-scope.patch
  215. "${FILESDIR}"/${PN}-2.2.4-alsa-large-buffers.patch
  216. # Bug #593460
  217. "${FILESDIR}"/${PN}-2.2.4-libav-11.7.patch
  218. )
  219. DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt doc/intf-vcd.txt )
  220. S="${WORKDIR}/${MY_P}"
  221. pkg_setup() {
  222. if [[ "${MERGE_TYPE}" != "binary" ]] && tc-is-gcc ; then
  223. if ! version_is_at_least 4.5 $(gcc-version) ; then
  224. die "You need to have at least >=sys-devel/gcc-4.5 to build and/or have a working vlc, see bug #426754."
  225. fi
  226. fi
  227. }
  228. src_unpack() {
  229. if [[ ${PV} = *9999 ]] ; then
  230. git-r3_src_unpack
  231. else
  232. unpack ${A}
  233. fi
  234. }
  235. src_prepare() {
  236. # Remove unnecessary warnings about unimplemented pragmas on gcc for now.
  237. # Need to recheck this with gcc 4.9 and every subsequent minor bump of gcc.
  238. #
  239. # config.h:792: warning: ignoring #pragma STDC FENV_ACCESS [-Wunknown-pragmas]
  240. # config.h:793: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
  241. #
  242. # https://gcc.gnu.org/c99status.html
  243. if tc-is-gcc ; then
  244. sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die
  245. fi
  246. # Bootstrap when we are on a git checkout.
  247. if [[ ${PV} = *9999 ]] ; then
  248. ./bootstrap
  249. fi
  250. # Make it build with libtool 1.5
  251. rm -f m4/lt* m4/libtool.m4 || die
  252. # We are not in a real git checkout due to the absence of a .git directory.
  253. touch src/revision.txt || die
  254. default
  255. # Don't use --started-from-file when not using dbus.
  256. if ! use dbus ; then
  257. sed -i 's/ --started-from-file//' share/vlc.desktop.in || die
  258. fi
  259. eautoreconf
  260. # Disable automatic running of tests.
  261. find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die
  262. # If qtchooser is installed, it may break the build, because moc,rcc and uic binaries for wrong qt
  263. # version may be used. Setting QT_SELECT environment variable will enforce correct binaries.
  264. if use qt5; then
  265. export QT_SELECT=qt5
  266. elif use qt4; then
  267. export QT_SELECT=qt4
  268. fi
  269. }
  270. src_configure() {
  271. local myconf
  272. # Compatibility fix for Samba 4.
  273. use samba && append-cppflags "-I/usr/include/samba-4.0"
  274. # We need to disable -fstack-check if use >=gcc 4.8.0.
  275. # See bug #499996
  276. use x86 && append-cflags $(test-flags-CC -fno-stack-check)
  277. # Needs libresid-builder from libsidplay:2 which is in another directory...
  278. # FIXME!
  279. append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
  280. if use truetype || use projectm ; then
  281. local dejavu="/usr/share/fonts/dejavu/"
  282. myconf="--with-default-font=${dejavu}/DejaVuSans.ttf \
  283. --with-default-font-family=Sans \
  284. --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf
  285. --with-default-monospace-font-family=Monospace"
  286. fi
  287. if use qt5 ; then
  288. myconf+=" --enable-qt=5"
  289. else
  290. if use qt4 ; then
  291. myconf+=" --enable-qt=4"
  292. else
  293. myconf+=" --disable-qt"
  294. fi
  295. use kde && myconf+=" --with-kde-solid"
  296. fi
  297. econf \
  298. ${myconf} \
  299. --enable-vlc \
  300. --docdir=/usr/share/doc/${PF} \
  301. --disable-dependency-tracking \
  302. --disable-optimizations \
  303. --disable-update-check \
  304. --enable-fast-install \
  305. --enable-screen \
  306. $(use_enable a52) \
  307. $(use_enable aalib aa) \
  308. $(use_enable alsa) \
  309. $(use_enable altivec) \
  310. $(use_enable atmo) \
  311. $(use_enable audioqueue) \
  312. $(use_enable avcodec) \
  313. $(use_enable avformat) \
  314. $(use_enable bidi fribidi) \
  315. $(use_enable bluray) \
  316. $(use_enable cdda vcd) \
  317. $(use_enable cddb libcddb) \
  318. $(use_enable chromaprint) \
  319. $(use_enable dbus) \
  320. $(use_enable directfb) \
  321. $(use_enable directx) \
  322. $(use_enable dc1394) \
  323. $(use_enable debug) \
  324. $(use_enable dts dca) \
  325. $(use_enable dvbpsi) \
  326. $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \
  327. $(use_enable dxva2) \
  328. $(use_enable encode sout) \
  329. $(use_enable faad) \
  330. $(use_enable fdk fdkaac) \
  331. $(use_enable flac) \
  332. $(use_enable fluidsynth) \
  333. $(use_enable fontconfig) \
  334. $(use_enable gcrypt libgcrypt) \
  335. $(use_enable gme) \
  336. $(use_enable gnome gnomevfs) \
  337. $(use_enable gnutls) \
  338. $(use_enable growl) \
  339. $(use_enable gstreamer gst-decode) \
  340. $(use_enable httpd) \
  341. $(use_enable ieee1394 dv1394) \
  342. $(use_enable jack) \
  343. $(use_enable jpeg) \
  344. $(use_enable kate) \
  345. $(use_enable libass) \
  346. $(use_enable libcaca caca) \
  347. $(use_enable libnotify notify) \
  348. $(use_enable libsamplerate samplerate) \
  349. $(use_enable libtar) \
  350. $(use_enable libtiger tiger) \
  351. $(use_enable linsys) \
  352. $(use_enable lirc) \
  353. $(use_enable live live555) \
  354. $(use_enable lua) \
  355. $(use_enable macosx-dialog-provider) \
  356. $(use_enable macosx-eyetv) \
  357. $(use_enable macosx-qtkit) \
  358. $(use_enable macosx-quartztext) \
  359. $(use_enable matroska mkv) \
  360. $(use_enable cpu_flags_x86_mmx mmx) \
  361. $(use_enable modplug mod) \
  362. $(use_enable mp3 mad) \
  363. $(use_enable mpeg libmpeg2) \
  364. $(use_enable mtp) \
  365. $(use_enable musepack mpc) \
  366. $(use_enable ncurses) \
  367. $(use_enable neon) \
  368. $(use_enable ogg) $(use_enable ogg mux_ogg) \
  369. $(use_enable omxil) \
  370. $(use_enable omxil omxil-vout) \
  371. $(use_enable opencv) \
  372. $(use_enable opengl glspectrum) \
  373. $(use_enable opus) \
  374. $(use_enable optimisememory optimize-memory) \
  375. $(use_enable png) \
  376. $(use_enable postproc) \
  377. $(use_enable projectm) \
  378. $(use_enable pulseaudio pulse) \
  379. $(use_enable rdp freerdp) \
  380. $(use_enable rtsp realrtsp) \
  381. $(use_enable run-as-root) \
  382. $(use_enable samba smbclient) \
  383. $(use_enable schroedinger) \
  384. $(use_enable sdl) \
  385. $(use_enable sdl-image) \
  386. $(use_enable sid) \
  387. $(use_enable sftp) \
  388. $(use_enable shout) \
  389. $(use_enable skins skins2) \
  390. $(use_enable speex) \
  391. $(use_enable cpu_flags_x86_sse sse) \
  392. $(use_enable svg) \
  393. $(use_enable svg svgdec) \
  394. $(use_enable swscale) \
  395. $(use_enable taglib) \
  396. $(use_enable theora) \
  397. $(use_enable tremor) \
  398. $(use_enable truetype freetype) \
  399. $(use_enable twolame) \
  400. $(use_enable udev) \
  401. $(use_enable upnp) \
  402. $(use_enable v4l v4l2) \
  403. $(use_enable vaapi libva) \
  404. $(use_enable vcdx) \
  405. $(use_enable vdpau) \
  406. $(use_enable vlm) \
  407. $(use_enable vnc) \
  408. $(use_enable vorbis) \
  409. $(use_enable vpx) \
  410. $(use_enable wma-fixed) \
  411. $(use_with X x) \
  412. $(use_enable x264) \
  413. $(use_enable x265) \
  414. $(use_enable xcb) \
  415. $(use_enable xml libxml2) \
  416. $(use_enable xv xvideo) \
  417. $(use_enable zeroconf bonjour) \
  418. $(use_enable zvbi) $(use_enable !zvbi telx) \
  419. --disable-asdcp \
  420. --disable-coverage \
  421. --disable-cprof \
  422. --disable-crystalhd \
  423. --disable-decklink \
  424. --disable-gles1 \
  425. --disable-gles2 \
  426. --disable-goom \
  427. --disable-kai \
  428. --disable-kva \
  429. --disable-maintainer-mode \
  430. --disable-merge-ffmpeg \
  431. --disable-mfx \
  432. --disable-mmal-codec \
  433. --disable-mmal-vout \
  434. --disable-opensles \
  435. --disable-oss \
  436. --disable-quicktime \
  437. --disable-rpi-omxil \
  438. --disable-shine \
  439. --disable-sndio \
  440. --disable-vda \
  441. --disable-vsxu \
  442. --disable-wasapi
  443. # ^ We don't have these disabled libraries in the Portage tree yet.
  444. # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo.
  445. # Other values of _FORTIFY_SOURCE may break the build (bug 523144), so definition should not be removed from config.h.
  446. # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the very start of config.h file
  447. sed -i '1i#undef _FORTIFY_SOURCE' "${S}"/config.h || die
  448. }
  449. src_test() {
  450. virtx emake check-TESTS
  451. }
  452. src_install() {
  453. default
  454. # Punt useless libtool's .la files
  455. find "${D}" -name '*.la' -delete || die
  456. }
  457. pkg_postinst() {
  458. if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then
  459. einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/"
  460. "/usr/$(get_libdir)/vlc/vlc-cache-gen" -f "/usr/$(get_libdir)/vlc/plugins/"
  461. else
  462. ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)"
  463. ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually"
  464. ewarn "If you do not do it, vlc will take a long time to load."
  465. fi
  466. }