[mythtv] 28.0 build error
Stuart Auchterlonie
stuarta at squashedfrog.net
Tue Apr 19 12:49:30 UTC 2016
On 18/04/16 16:23, Richard Shaw wrote:
> Ok, it appears that it was due to the way the spec file is written (it's
> also this way in the one on github) but I had to comment out one line as
> the following shows for the mythplugin build:
>
> # Fix things up so they can find our "temp" install location for mythtv-libs
> echo "QMAKE_PROJECT_DEPTH = 0" >> settings.pro <http://settings.pro>
> find . -name \*.pro \
> -exec sed -i -e "s,INCLUDEPATH += .\+/include/mythtv,INCLUDEPATH
> += $temp%{_includedir}/mythtv," {} \; \
> -exec sed -i -e "s,DEPLIBS = \$\${LIBDIR},DEPLIBS =
> $temp%{_libdir}," {} \; \
> -exec sed -i -e
> "s,\$\${PREFIX}/include/mythtv,$temp%{_includedir}/mythtv," {} \;
> echo "INCLUDEPATH -= \$\${PREFIX}/include" >> settings.pro
> <http://settings.pro>
> echo "INCLUDEPATH -= \$\${SYSROOT}/\$\${PREFIX}/include" >>
> settings.pro <http://settings.pro>
> echo "INCLUDEPATH -= %{_includedir}" >> settings.pro
> <http://settings.pro>
> echo "INCLUDEPATH += $temp%{_includedir}" >> settings.pro
> <http://settings.pro>
> #echo "INCLUDEPATH += %{_includedir}" >> settings.pro
> <http://settings.pro>
> echo "LIBS *= -L$temp%{_libdir}" >> settings.pro
> <http://settings.pro>
> echo "QMAKE_LIBDIR += $temp%{_libdir}" >> targetdep.pro
> <http://targetdep.pro>
>
That is all very ugly..
> I think it's long overdue that the spec file gets a good scrubbing but I
> would need a lot of input.
tbh, i'd start again and just cherry pick the nice bits from the old
spec file.... especially given a simple "configure; make" will build
things just fine
Regards
Stuart
More information about the mythtv-dev
mailing list