SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libtheora"

# SliTaz package receipt.

PACKAGE="libtheora"
VERSION="1.1.1"
CATEGORY="multimedia"
SHORT_DESC="Theora video codec and tools."
MAINTAINER="pankso@slitaz.org"
LICENSE="BSD"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://www.theora.org/"
WGET_URL="https://downloads.xiph.org/releases/theora/$TARBALL"
HOST_ARCH="i486 arm"

DEPENDS="libogg libvorbis libpng"
BUILD_DEPENDS="libogg-dev libvorbis-dev libpng-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/xiph/theora/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|' | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src

    # Patch to use with new libpng
    # Thanks community, and Pat :)
    patch -p1 < $stuff/libtheora-1.1.1-libpng16.patch

    ./configure \
        --prefix=/usr \
        --mandir=/usr/share/man \
        $CONFIGURE_ARGS
    make
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/libtheora.so* $fs/usr/lib
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)