SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "xine-lib"

# SliTaz package receipt.

PACKAGE="xine-lib"
VERSION="1.2.11"
CATEGORY="multimedia"
SHORT_DESC="Xine video library."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://xine-project.org/"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="$SF_MIRROR/project/xine/$PACKAGE/$VERSION/$TARBALL"

SUGGESTED="faac faad2 xine-fonts"
DEPENDS="alsa-lib ffmpeg libmodplug libogg libtheora libvorbis libxcb xorg-libX11 
    xorg-libXv xorg-libXvMC zlib"
BUILD_DEPENDS="alsa-lib-dev ffmpeg-dev file freetype-dev libmodplug-dev libogg-dev 
    libtheora-dev libvorbis-dev libxcb-dev perl pkg-config util-linux-uuid-dev 
    xorg-libXv-dev xorg-libXvMC-dev xorg-videoproto xorg-xextproto"

HOST_ARCH="i486 arm"

# Handle cross compilation
case "$ARCH" in
    arm*)
        export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib" 
        export LIBTOOL=${HOST_SYSTEM}-libtool 
        ARCH_ARGS="--disable-xinerama" ;;
esac

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

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's/grep -x/grep/' configure
    export    LDFLAGS="$LDFLAGS -lstdc++"

    CPPFLAGS="$CPPFLAGS -DHAVE_NANO_SLEEP"    \
    ./configure                \
        --prefix=/usr            \
        --infodir=/usr/share/info    \
        --mandir=/usr/share/man        \
        --with-freetype            \
        --with-xcb            \
        --without-jack            \
        --without-imagemagick        \
        --without-sdl            \
        --disable-gnomevfs        \
        --disable-samba            \
        --disable-glu            \
        --disable-opengl        \
        --disable-fb            \
        --without-esound        \
        --disable-vcd            \
        --disable-musepack        \
        $CONFIGURE_ARGS            \
        $ARCH_ARGS &&
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    mkdir -p $fs/usr/share

    cp -a $install/usr/lib/*.so*    $fs/usr/lib
    cp -a $install/usr/lib/xine    $fs/usr/lib
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)