wok annotate gmerlin/receipt @ rev 25383

updated units (2.19 -> 2.21)
author Hans-G?nter Theisgen
date Sat Jul 30 17:22:12 2022 +0100 (2022-07-30)
parents 00588af2d51d
children 7dd01dedad38
rev   line source
pascal@13740 1 # SliTaz package receipt.
pascal@13740 2
pascal@13740 3 PACKAGE="gmerlin"
pascal@13740 4 VERSION="1.2.0"
pascal@13740 5 CATEGORY="multimedia"
pascal@13740 6 SHORT_DESC="Gmerlin is a multimedia architecture for linux."
pascal@13740 7 MAINTAINER="pankso@slitaz.org"
pascal@15201 8 LICENSE="GPL3"
pascal@13740 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@13740 10 WEB_SITE="http://gmerlin.sourceforge.net/"
pascal@13740 11 WGET_URL="$SF_MIRROR/project/gmerlin/gmerlin/$VERSION/$TARBALL"
pascal@13740 12
pascal@13740 13 DEPENDS="libxml2 expat gavl gtk+ alsa-lib libpng"
pascal@13740 14 BUILD_DEPENDS="texinfo libxml2-dev expat-dev gavl-dev gtk+-dev alsa-lib-dev \
pascal@18402 15 libpng-dev mesa-dev"
pascal@13740 16
pascal@24403 17 # What is the latest version available today?
pascal@24403 18 current_version()
pascal@24403 19 {
pascal@24403 20 wget -O - https://sourceforge.net/projects/gmerlin/files/gmerlin/ 2>/dev/null | \
pascal@24403 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24403 22 sed '/scope="row/!d;s|.*/gmerlin/||;s|/.*||;q'
pascal@24403 23 }
pascal@24403 24
pascal@13740 25 # Rules to configure and make the package.
pascal@13740 26 compile_rules()
pascal@13740 27 {
pascal@13740 28 rm -rf cpuinfo.sh
pascal@15326 29 {
pascal@13740 30 ./configure \
pascal@13740 31 --without-doxygen \
pascal@13740 32 $CONFIGURE_ARGS &&
pascal@13740 33 sed -i 's|LIBS = -lgavl|LIBS = -lgavl -ldl -lpthread -lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0 -lxml2 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lX11|' apps/*/Makefile &&
pascal@13740 34 sed -i 's|LIBS = -lgavl|LIBS = -lgavl -ldl -lpthread -lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0 -lxml2 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lX11|' lib/Makefile &&
pascal@13740 35 sed -i 's|LIBS = -lgavl|LIBS = -lgavl -ldl -lpthread -lgtk-x11-2.0 -lgobject-2.0 -lglib-2.0 -lxml2 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lX11|' tests/Makefile &&
pascal@13740 36 sed -i 's|ln -sf $(DESTDIR)$(pkgdatadir)|ln -sf $(pkgdatadir)|' icons/Makefile &&
pascal@18966 37 make && make -j 1 install
pascal@15326 38 } 2>&1 | sed 's/: No such file/: no such file/'
pascal@13740 39 }
pascal@13740 40
pascal@13740 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13740 42 genpkg_rules()
pascal@13740 43 {
pascal@13740 44 mkdir -p $fs/usr/share $fs/usr/lib/gmerlin/plugins
pascal@13740 45 cp -a $install/usr/bin $fs/usr
pascal@13740 46 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@13740 47 cp -a $install/usr/lib/gmerlin/plugins/*.so* $fs/usr/lib/gmerlin/plugins
pascal@13740 48 cp -a $install/usr/share/gmerlin $fs/usr/share
pascal@15158 49 cp -a $install/usr/share/applications $fs/usr/share
pascal@13740 50 }