1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../vlc/vlc.conf
5 # Copyright (C) 2004 - 2019 The T2 SDE Project
6 # Copyright (C) 1998 - 2003 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- T2-COPYRIGHT-NOTE-END ---
16 var_append confopt ' ' '--disable-avcodec'
17 pkginstalled lirc && var_append confopt ' ' '--enable-lirc'
18 pkginstalled faad && var_append confopt ' ' '--enable-faad'
19 pkginstalled twolame && var_append confopt ' ' '--enable-twolame'
20 pkginstalled libtheora && var_append confopt ' ' '--enable-theora'
22 if pkginstalled firefox; then
23 xpidldir=`firefox-config --libs | sed 's/-L//'`
24 elif pkginstalled seamonkey; then
25 xpidldir=`seamonkey-config --libs | sed 's/-L//'`
27 if [ "$xpidldir" ]; then
28 var_append confopt ' ' '--enable-mozilla'
29 var_append configprefix ' ' "XPIDL=$xpidldir/xpidl"
32 var_append confopt ' ' '--enable-dvdread'
33 var_append confopt ' ' '--enable-v4l --enable-dvb'
34 var_append confopt ' ' '--enable-release'
36 # it is not lib64 aware and thus path the X11/lib* to it ...
37 var_append GCC_WRAPPER_APPEND ' ' -L$root/usr/X11/${libdir##*/}
39 var_append GCC_WRAPPER_APPEND ' ' "-I$root/$(pkgprefix includedir librsvg)"
41 # vlc configure puts it into CC which is used later by the SDE
42 var_append CC_WRAPPER_APPEND ' ' "-std=gnu99"
44 #don't run vlc-cache-gen in chroot build
45 [ ! -f $root/var/lib/dbus/machine-id ] && var_append extraconfopt ' ' "--disable-dbus"