SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ufraw"

# SliTaz package receipt.

PACKAGE="ufraw"
VERSION="0.22"
CATEGORY="graphics"
SHORT_DESC="Utility to read and manipulate raw images from digital cameras."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://ufraw.sourceforge.net/"
WGET_URL="$SF_MIRROR/project/ufraw/ufraw/ufraw-$VERSION/$TARBALL"
SUGGESTED="ufraw-locales gimp-plugin-ufraw"

DEPENDS="gtk+ exiv2 lcms tiff libgtkimageview libgomp bzip2 lcms2"
BUILD_DEPENDS="gimp gimp-dev lcms-dev tiff-dev exiv2-dev gtk+-dev \
libgtkimageview-dev bzip2-dev lcms2-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    sed -i    -e 's|<sstream>|&\n#include <iostream>|' \
        -e 's|exif.hpp>|&\n#include <exiv2/error.hpp>|' \
        -e 's|.*Exiv2::Error(1.*|//#if EXIV2_TEST_VERSION(0,27,0)\
        throw Exiv2::Error(Exiv2::kerErrorMessage, error);\
//#else\n//&\n//#endif|' ufraw_exiv2.cc
    sed -i    -e 's|return TRUE|return boolean(TRUE)|' \
        -e 's|\(jpeg_.*\)TRUE|\1boolean(TRUE)|' dcraw.cc
    ./configure \
        $CONFIGURE_ARGS &&
    make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/applications
    cp -a $install/usr/bin $fs/usr
    cp -a $src/ufraw.desktop $fs/usr/share/applications
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)