wok annotate gxine/receipt @ rev 25037

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