SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "jasper"

# SliTaz package receipt.

PACKAGE="jasper"
VERSION="3.0.2"
CATEGORY="graphics"
TAGS="jpeg jpg photo"
SHORT_DESC="Implementation of JPEG-2000 codec."
MAINTAINER="jozee@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://www.ece.uvic.ca/~frodo/jasper/" 

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/mdadams/$PACKAGE/archive/version-$VERSION.tar.gz"

DEPENDS="freeglut jpeg libglu-mesa util-linux-uuid xorg-libXi xorg-libXmu"
BUILD_DEPENDS="cmake jpeg-dev xorg-libXi-dev xorg-libXmu-dev"

HOST_ARCH="i486 arm"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    sed '/tags.version.*tar/!d;s|.*/version-\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir    _build &&
    cd    _build &&
    cmake    ..                \
        -G "Unix Makefiles"        \
        -D CMAKE_INSTALL_PREFIX=/usr    \
        -D JAS_ENABLE_SHARED=yes    &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    bin
    cook_copy_files        *.so*
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)