Ticket #1001: mythtv-0.19_pre8554-libdir.patch

File mythtv-0.19_pre8554-libdir.patch, 6.6 KB (added by herbs@…, 20 years ago)

patch to enable --libdir option

  • configure

     
    9696echo "  --compile-type=CTYPE     one of release, profile, debug [$compile_type]"
    9797echo "                           NOTE: profile is for sampling profilers"
    9898echo "  --prefix=PREFIX          install in PREFIX [$prefix]"
    99 #echo "  --libdir=DIR             install libs in DIR [PREFIX/lib]"
     99echo "  --libdir=DIR             install libs in DIR [PREFIX/lib]"
    100100#echo "  --mandir=DIR             man documentation in DIR [PREFIX/man]"
    101101echo "  --disable-ccache         disable compiler cache (ccache)"
    102102echo "  --disable-distcc         disable distributed compilation (distcc)"
     
    22322232echo "#define FFMPEG_CONFIGURATION "'"'"$FFMPEG_CONFIGURATION"'"' >> $TMPH
    22332233
    22342234echo "PREFIX=$prefix" >> $MYTH_CONFIG_MAK
    2235 #echo "libdir=$libdir" >> $MYTH_CONFIG_MAK
     2235echo "LIBDIR=$libdir" >> $MYTH_CONFIG_MAK
    22362236#echo "bindir=$bindir" >> $MYTH_CONFIG_MAK
    22372237#echo "mandir=$mandir" >> $MYTH_CONFIG_MAK
    22382238#echo "MAKE=$make" >> $MYTH_CONFIG_MAK
  • libs/libmythtv/libmythtv.pro

     
    44TEMPLATE = lib
    55TARGET = mythtv-$$LIBVERSION
    66CONFIG += thread dll
    7 target.path = $${PREFIX}/lib
     7target.path = $${LIBDIR}
    88INSTALLS = target
    99
    1010INCLUDEPATH += ../.. ..
  • libs/libmythmpeg2/libmythmpeg2.pro

     
    44TEMPLATE = lib
    55TARGET = mythmpeg2-$$LIBVERSION
    66CONFIG += thread staticlib warn_off
    7 target.path = $${PREFIX}/lib
     7target.path = $${LIBDIR}
    88INSTALLS = target
    99
    1010QMAKE_CFLAGS_RELEASE += -DPIC -fPIC -fno-common
  • libs/libmythsoundtouch/libmythsoundtouch.pro

     
    44TEMPLATE = lib
    55TARGET = mythsoundtouch-$$LIBVERSION
    66CONFIG += thread staticlib warn_off
    7 target.path = $${PREFIX}/lib
     7target.path = $${LIBDIR}
    88INSTALLS = target
    99
    1010INCLUDEPATH += ../../libs/libavcodec ../..
  • libs/libavformat/libavformat.pro

     
    44TEMPLATE = lib
    55TARGET = mythavformat-$$LIBVERSION
    66CONFIG += thread dll warn_off
    7 target.path = $${PREFIX}/lib
     7target.path = $${LIBDIR}
    88INSTALLS = target
    99
    1010INCLUDEPATH += ../ ../../ ../libavcodec ../libavutil ../libmythtv
  • libs/libmythsamplerate/libmythsamplerate.pro

     
    44TEMPLATE = lib
    55TARGET = mythsamplerate-$$LIBVERSION
    66CONFIG += thread staticlib warn_off
    7 target.path = $${PREFIX}/lib
     7target.path = $${LIBDIR}
    88INSTALLS = target
    99
    1010INCLUDEPATH += ../../
  • libs/libmythui/libmythui.pro

     
    44TEMPLATE = lib
    55TARGET = mythui-$$LIBVERSION
    66CONFIG += debug thread dll
    7 target.path = $${PREFIX}/lib
     7target.path = $${LIBDIR}
    88INSTALLS = target
    99
    1010INCLUDEPATH += ../libmyth
  • libs/libmyth/libmyth.pro

     
    44TEMPLATE = lib
    55TARGET = myth-$$LIBVERSION
    66CONFIG += thread dll
    7 target.path = $${PREFIX}/lib
     7target.path = $${LIBDIR}
    88INSTALLS = target
    99
    1010QMAKE_CLEAN += $(TARGET) $(TARGETA) $(TARGETD) $(TARGET0) $(TARGET1) $(TARGET2)
  • libs/libmyth/mythcontext.cpp

     
    184184    Settings *m_qtThemeSettings;
    185185
    186186    QString m_installprefix;
     187    QString m_installlibdir;
    187188
    188189    bool m_gui;
    189190    bool m_backend;
     
    255256MythContextPrivate::MythContextPrivate(MythContext *lparent)
    256257    : parent(lparent),
    257258      m_settings(new Settings()), m_qtThemeSettings(new Settings()),
    258       m_installprefix(PREFIX),
     259      m_installprefix(PREFIX), m_installlibdir(LIBDIR),
    259260      m_gui(false), m_backend(false), m_themeloaded(false),
    260261      m_menuthemepathname(QString::null), m_themepathname(QString::null),
    261262      m_backgroundimage(NULL),
     
    11021103
    11031104QString MythContext::GetLibraryDir(void)
    11041105{
    1105     return d->m_installprefix + "/lib/mythtv/";
     1106    return d->m_installlibdir + "/mythtv/";
    11061107}
    11071108
    11081109QString MythContext::GetThemesParentDir(void)
  • libs/libavcodec/libavcodec.pro

     
    44TEMPLATE = lib
    55TARGET = mythavcodec-$$LIBVERSION
    66CONFIG += thread dll warn_off
    7 target.path = $${PREFIX}/lib
     7target.path = $${LIBDIR}
    88INSTALLS = target
    99
    1010INCLUDEPATH = ../ ../../ ../libavutil
  • libs/libavutil/libavutil.pro

     
    55TARGET = mythavutil-$$LIBVERSION
    66CONFIG += thread dll warn_off
    77CONFIG -= qt
    8 target.path = $${PREFIX}/lib
     8target.path = $${LIBDIR}
    99INSTALLS = target
    1010
    1111INCLUDEPATH = ../ ../../
  • settings.pro

     
    5656DEFINES += _GNU_SOURCE
    5757DEFINES += _FILE_OFFSET_BITS=64
    5858DEFINES += PREFIX=\"$${PREFIX}\"
     59DEFINES += LIBDIR=\"$${LIBDIR}\"
    5960
    6061# construct linking path
    6162
  • filters/filter-common.pro

     
    44TEMPLATE = lib
    55CONFIG -= moc qt
    66CONFIG += plugin thread
    7 target.path = $${PREFIX}/lib/mythtv/filters
     7target.path = $${LIBDIR}/mythtv/filters
    88INSTALLS = target
    99
    1010QMAKE_CFLAGS_RELEASE += -Wno-missing-prototypes