# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/vlc/vlc.conf # Copyright (C) 2004 - 2022 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- pkginstalled lirc && var_append confopt ' ' '--enable-lirc' pkginstalled faad && var_append confopt ' ' '--enable-faad' pkginstalled twolame && var_append confopt ' ' '--enable-twolame' pkginstalled libtheora && var_append confopt ' ' '--enable-theora' if pkginstalled firefox; then xpidldir=`firefox-config --libs | sed 's/-L//'` elif pkginstalled seamonkey; then xpidldir=`seamonkey-config --libs | sed 's/-L//'` fi if [ "$xpidldir" ]; then var_append confopt ' ' '--enable-mozilla' var_append configprefix ' ' "XPIDL=$xpidldir/xpidl" fi var_append confopt ' ' '--enable-dvdread' var_append confopt ' ' '--enable-v4l --enable-dvb' var_append confopt ' ' '--enable-release' # it is not lib64 aware and thus path the X11/lib* to it ... var_append GCC_WRAPPER_APPEND ' ' -L$root/usr/X11/${libdir##*/} var_append GCC_WRAPPER_APPEND ' ' "-I$root/$(pkgprefix includedir librsvg)" # vlc configure puts it into CC which is used later by the SDE var_append CC_WRAPPER_APPEND ' ' "-std=gnu99" pkginstalled lua && var_append GCC_WRAPPER_APPEND ' ' '-c?:-llua -c?:-lm' #don't run vlc-cache-gen in chroot build [ ! -f $root/var/lib/dbus/machine-id ] && var_append extraconfopt ' ' "--disable-dbus"