* yet more dir-less .cache DEP updates
[t2sde.git] / package / multimedia / mythtv / mythtv-conf.in
blobe7cb5a21ef53cdeeb0b1be47de14b47a8282ef9a
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/mythtv/mythtv-conf.in
3 # Copyright (C) 2006 - 2023 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
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 prefix=/opt/mythtv
13 set_confopt
15 # Mythtv needs Qt3
16 pkgprefix -t qt
17 export PATH=$(pkgprefix bindir qt):$PATH
19 # brain damaged hardcoded path... have to replace it...
20 fix_mythtv_prefix() {
21         destdir="$root/$prefix" destdir="`echo $destdir | tr -s '/'`"
22         grep /usr/local * -R | sed 's,:.*,,' | xargs -n1 sed -i "s,/usr/local,$destdir,g"
25 # has non-standard configure script, so some options do not pass through eval_config_command
26 mythtv_config ()
28         local confcmd=$(eval echo "$configprefix $configscript $confopt")
29         echo "Running $confcmd"
30         eval "$confcmd"