SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gmerlin"

# SliTaz package receipt.

PACKAGE="gmerlin"
VERSION="1.2.0"
CATEGORY="multimedia"
SHORT_DESC="Gmerlin is a multimedia architecture for linux."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL3"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://sourceforge.net/projects/gmerlin/"
WGET_URL="$SF_MIRROR/project/gmerlin/gmerlin/$VERSION/$TARBALL"

DEPENDS="libxml2 expat gavl gtk+ alsa-lib libpng"
BUILD_DEPENDS="texinfo libxml2-dev expat-dev gavl-dev gtk+-dev alsa-lib-dev \
libpng-dev mesa-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/gmerlin/files/gmerlin/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/gmerlin/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    rm -rf cpuinfo.sh
    {
    ./configure \
        --without-doxygen \
        $CONFIGURE_ARGS &&
    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 &&
    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 &&
    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 &&
    sed -i 's|ln -sf $(DESTDIR)$(pkgdatadir)|ln -sf $(pkgdatadir)|' icons/Makefile &&
    make && make -j 1 install
    } 2>&1 | sed 's/: No such file/: no such file/'
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share $fs/usr/lib/gmerlin/plugins
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/usr/lib/gmerlin/plugins/*.so* $fs/usr/lib/gmerlin/plugins
    cp -a $install/usr/share/gmerlin $fs/usr/share
    cp -a $install/usr/share/applications $fs/usr/share
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)