summaryrefslogtreecommitdiff
path: root/mythtv/Pkgfile
blob: 392fca06e7efac58d377ad91c2b32c6d410b3645 (plain)
    1 # Description: Homebrew PVR Project for Linux
    2 # URL:         http://www.mythtv.org/
    3 # Maintainer: Lucas Hazel, lucas at die dot net dot au
    4 # Packager:    James Mills, <prologic at shortcircuit dot net dot au>
    5 #
    6 # Depends on:  mysql, qt3, ffmpeg, lame
    7 
    8 name=mythtv
    9 version=0.20
   10 release=1
   11 source=(http://www.mythtv.org/mc/$name-$version.tar.bz2
   12         $name-$version-settings.diff
   13         mythbackend)
   14 
   15 build() {
   16    cd $name-$version
   17 
   18    patch -p0 settings.pro < $SRC/$name-$version-settings.diff
   19    sed -i -e "s/#CFLAGS#/$CFLAGS/" settings.pro
   20    for i in `grep -lr "usr/local" *`
   21       do
   22          sed -i -e 's|usr/local|usr|g' "$i"
   23       done
   24 
   25    ./configure --prefix=/usr \
   26       --enable-lirc
   27    qmake $name.pro
   28    make qmake
   29 
   30    find . -name "Makefile" -exec \
   31       sed -i -e 's|$(QTDIR)|/usr|g' \
   32          -e 's|../../../../../../../../|/usr/|g' \
   33          -e 's|../../../../../../../|/usr/|g' '{}' \;
   34 
   35    make
   36    make INSTALL_ROOT=$PKG/ install
   37    install -m 644 database/mc.sql $PKG/usr/share/mythtv/
   38 
   39    rm -rf $PKG/usr/share/mythtv/i18n
   40 
   41    mkdir -p $PKG/etc/rc.d
   42    install -m 755 $SRC/mythbackend $PKG/etc/rc.d/
   43 
   44    # set suid on mythfrontend
   45    chmod a+s $PKG/usr/bin/mythfrontend
   46 
   47    chown root:root $PKG
   48 }

Generated by cgit