|
|
@ -2,6 +2,7 @@ |
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
# |
|
|
|
# Filename: package/.../mythtv/mythtv.conf |
|
|
|
# Copyright (C) 2011 The OpenSDE Project |
|
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
|
|
# |
|
|
|
# More information can be found in the files COPYING and README. |
|
|
@ -14,29 +15,38 @@ |
|
|
|
|
|
|
|
. $base/package/*/*/mythtv-conf.in |
|
|
|
|
|
|
|
runconf=0 |
|
|
|
hook_add preconf 3 "fix_mythtv_prefix" |
|
|
|
# mythtv is using a custom configure script which is not accepting our |
|
|
|
# auto-generated configure options |
|
|
|
confopt='' |
|
|
|
|
|
|
|
# Skip mythuitest, does complain about missing QGLWidget |
|
|
|
hook_add preconf 4 "sed -i -e 's,mythuitest,,' ./programs/programs.pro" |
|
|
|
var_append confopt ' ' "--prefix=/$prefix" |
|
|
|
|
|
|
|
hook_add preconf 5 "mythtv_config" |
|
|
|
# compiler |
|
|
|
var_append confopt ' ' "--cc=$CC" |
|
|
|
var_append confopt ' ' "--cxx=$CXX" |
|
|
|
# architecture/cpu |
|
|
|
var_append confopt ' ' "--arch=$arch_machine" |
|
|
|
var_append confopt ' ' "--cpu=$SDECFG_X86_OPT" |
|
|
|
# TODO tuning |
|
|
|
# --tune=CPU tune instruction usage for a particular CPU [generic] |
|
|
|
|
|
|
|
var_append GCC_WRAPPER_APPEND ' ' "-I$root/$prefix/include -L$root/$prefix/lib" |
|
|
|
# controlled by OpenSDE itself |
|
|
|
var_append confopt ' ' "--disable-ccache --disable-distcc" |
|
|
|
|
|
|
|
# X11 |
|
|
|
pkginstalled xorg-server || var_append confopt ' ' "--disable-xv --disable-x11" |
|
|
|
pkginstalled libxvmc && var_append confopt ' ' "--enable-xvmc" |
|
|
|
|
|
|
|
# DVB Support |
|
|
|
var_append confopt ' ' "--enable-dvb --enable-dvb-eit --dvb-path=$root/usr/include" |
|
|
|
if pkginstalled -f libx11; then |
|
|
|
# location of X11 include files |
|
|
|
var_append confopt ' ' "--x11-path=$(pkgprefix -r includedir libx11)" |
|
|
|
#var_append confopt ' ' "--extra-cflags=-I$(pkgprefix -r includedir libx11)" |
|
|
|
var_append confopt ' ' "--extra-ldflags=-L$(pkgprefix -r libdir libx11)" |
|
|
|
else |
|
|
|
var_append confopt ' ' "--disable-x11" |
|
|
|
fi |
|
|
|
|
|
|
|
# Lirc Support |
|
|
|
pkginstalled lirc && var_append confopt ' ' "--enable-lirc" |
|
|
|
|
|
|
|
# controlled by T2 itself |
|
|
|
var_append confopt ' ' "--disable-ccache --disable-distcc" |
|
|
|
if ! pkginstalled -f lirc; then |
|
|
|
var_append confopt ' ' "--disable-lirc" |
|
|
|
fi |
|
|
|
|
|
|
|
hook_add premake 5 "qmake myth*.pro" |
|
|
|
hook_add premake 8 "make qmake" |
|
|
|
hook_add postmake 5 "cp -av database configfiles contrib $root/$datadir" |
|
|
|
# install database and contrib stuff |
|
|
|
hook_add postmake 5 "cp -av database contrib $root/$datadir" |