1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/mythtv/mythtv.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 . $base/package/*/*/mythtv-conf.in
15 hook_add preconf 3 "fix_mythtv_prefix"
17 # Skip mythuitest, does complain about missing QGLWidget
18 hook_add preconf 4 "sed -i -e 's,mythuitest,,' ./programs/programs.pro"
20 hook_add preconf 5 "mythtv_config"
22 var_append GCC_WRAPPER_APPEND ' ' "-I$root/$prefix/include -L$root/$prefix/lib"
25 pkginstalled xorg-server || var_append confopt ' ' "--disable-xv --disable-x11"
26 pkginstalled libxvmc && var_append confopt ' ' "--enable-xvmc"
29 var_append confopt ' ' "--enable-dvb --enable-dvb-eit --dvb-path=$root/usr/include"
32 pkginstalled lirc && var_append confopt ' ' "--enable-lirc"
34 # controlled by T2 itself
35 var_append confopt ' ' "--disable-ccache --disable-distcc"
37 hook_add premake 5 "qmake myth*.pro"
38 hook_add premake 8 "make qmake"
39 hook_add postmake 5 "cp -av database contrib $root$datadir"