diff options
author | James Mills <prologic@daisy.(none)> | 2006-11-14 09:01:22 +1000 |
---|---|---|
committer | James Mills <prologic@daisy.(none)> | 2006-11-14 09:01:22 +1000 |
commit | 70006e31d25693aa65fc985124ce9babbd3347fc (patch) | |
tree | f5d0078562a07b6fe3a22a630ea5310561d9b538 /mythtv/Pkgfile | |
parent | 797dcbebf82a5cee45294314ddd587d3a847932f (diff) | |
download | contrib-70006e31d25693aa65fc985124ce9babbd3347fc.tar.gz contrib-70006e31d25693aa65fc985124ce9babbd3347fc.tar.xz |
Imported from old-control
Diffstat (limited to 'mythtv/Pkgfile')
-rw-r--r-- | mythtv/Pkgfile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/mythtv/Pkgfile b/mythtv/Pkgfile new file mode 100644 index 000000000..c71e03222 --- /dev/null +++ b/mythtv/Pkgfile @@ -0,0 +1,49 @@ +# $Id: Pkgfile 1257 2006-09-30 10:44:00Z romster $ +# Description: Homebrew PVR Project for Linux +# URL: http://www.mythtv.org/ +# Maintainer: James Mills <prologic at shortcircuit dot net dot au> +# Packager: James Mills <prologic at shortcircuit dot net dot au> +# Depends on: mysql, qt3, ffmpeg, lame + +name=mythtv +version=0.19 +release=3 +source=(http://www.mythtv.org/mc/$name-$version.tar.bz2 \ + $name-$version-settings.diff mythbackend \ + $name-$version-fixes.diff) + +build() { + cd $name-$version + patch -p0 settings.pro < $SRC/$name-$version-settings.diff + patch -p1 < $SRC/$name-$version-fixes.diff + sed -i -e "s/#CFLAGS#/$CFLAGS/" settings.pro + for i in `grep -lr "usr/local" *` + do + sed -i -e 's|usr/local|usr|g' "$i" + done + + ./configure --prefix=/usr \ + --enable-lirc + qmake $name.pro + make qmake + + find . -name "Makefile" -exec \ + sed -i -e 's|$(QTDIR)|/usr|g' \ + -e 's|../../../../../../../../|/usr/|g' \ + -e 's|../../../../../../../|/usr/|g' '{}' \; + + make + make INSTALL_ROOT=$PKG/ install + install -m 644 database/mc.sql $PKG/usr/share/mythtv/ + + rm -rf $PKG/usr/share/mythtv/i18n + + mkdir -p $PKG/etc/rc.d + install -m 755 $SRC/mythbackend $PKG/etc/rc.d/ + + # set suid on mythfrontend + chmod a+s $PKG/usr/bin/mythfrontend + + chown root:root $PKG +} + |