contrib/mythplugins/Pkgfile

44 lines
1.0 KiB
Plaintext
Raw Normal View History

2006-11-19 22:26:53 +01:00
# Description: Myth Plugins.
# URL: http://www.mythtv.org/
2008-04-11 13:10:03 +02:00
# Maintainer: Lucas Hazel, lucas at die dot net dot au
2007-01-20 03:21:06 +01:00
# Packager: James Mills, prologic at shortcircuit dot net dot au
2006-11-19 22:26:53 +01:00
#
# Depends on: kdelibs, mythtv
2006-11-14 00:01:22 +01:00
name=mythplugins
version=0.19
release=1
source=(http://www.mythtv.org/mc/$name-$version.tar.bz2 \
2006-11-19 22:26:53 +01:00
$name-$version-settings.diff)
2006-11-14 00:01:22 +01:00
build() {
2006-11-19 22:26:53 +01:00
cd $name-$version
patch -p1 -i $SRC/$name-$version-settings.diff settings.pro
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-transcode \
--enable-vcd \
--enable-exif \
--enable-fftw \
--enable-sdl
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
chown -R root:root $PKG
2006-11-14 00:01:22 +01:00
}