wok view gxine/receipt @ rev 25506

memtest, pack: cleanup
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 09 16:28:01 2023 +0000 (21 months ago)
parents ec9531d04de1
children 6b33f9da53d4
line source
1 # SliTaz package receipt.
3 PACKAGE="gxine"
4 VERSION="0.5.905"
5 CATEGORY="multimedia"
6 SHORT_DESC="GTK+ Xine media player user interface."
7 MAINTAINER="jozee@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://xine-project.org/"
11 WGET_URL="https://sourceforge.net/projects/xine/files/$PACKAGE/$VERSION/$TARBALL"
13 DEPENDS="xine-lib libvorbis gtk+ spidermonkey dbus"
14 BUILD_DEPENDS="spidermonkey-dev xine-lib-dev xorg-dev dbus-dev \
15 gtk+-dev xorg-libXinerama-dev xorg-libXext-dev xorg-xextproto perl \
16 xorg-libXv-dev xorg-videoproto xorg-xf86vidmodeproto"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/xine/files/$PACKAGE 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # Fix for glib2 (-lm)
30 sed -i "/<glib\//d" src/*
31 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
33 # Fix for lirc
34 #patch -p0 < $stuff/gxine-0.5.907-lirc.patch || return 1
36 #--with-logo-format=image
37 ./configure \
38 --prefix=/usr \
39 --mandir=/usr/share/man \
40 --sysconfdir=/etc \
41 --with-dbus \
42 --with-spidermonkey=/usr/include/js \
43 --without-browser-plugin \
44 --without-hal \
45 --disable-lirc \
46 --disable-deprecated \
47 --disable-integration-wizard \
48 --disable-own-playlist-parsers \
49 VENDOR_PKG_VERSION="$VERSION; SliTaz GNU/Linux" \
50 $CONFIGURE_ARGS &&
51 make && make DESTDIR=$DESTDIR install
52 sed -i '/^x/d' $install/usr/share/applications/gxine.desktop
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr/share $fs/etc $fs/usr/lib
59 cp -a $install/usr/bin $fs/usr
60 cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
61 cp -a $install/usr/share/$PACKAGE $fs/usr/share
62 cp -a $install/usr/share/pixmaps $fs/usr/share
63 cp -a $install/etc $fs
64 }