wok-6.x view ufraw/receipt @ rev 25492
Up foomatic-db (4.0-20221117)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 18 09:54:27 2022 +0000 (21 months ago) |
parents | cec9f8f5726d |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="ufraw"
4 VERSION="0.22"
5 CATEGORY="graphics"
6 SHORT_DESC="Utility to read and manipulate raw images from digital cameras."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://ufraw.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/project/ufraw/ufraw/ufraw-$VERSION/$TARBALL"
12 SUGGESTED="ufraw-locales gimp-plugin-ufraw"
14 DEPENDS="gtk+ exiv2 lcms tiff libgtkimageview libgomp bzip2 lcms2"
15 BUILD_DEPENDS="gimp gimp-dev lcms-dev tiff-dev exiv2-dev gtk+-dev \
16 libgtkimageview-dev bzip2-dev lcms2-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i -e 's|<sstream>|&\n#include <iostream>|' \
30 -e 's|exif.hpp>|&\n#include <exiv2/error.hpp>|' \
31 -e 's|.*Exiv2::Error(1.*|//#if EXIV2_TEST_VERSION(0,27,0)\
32 throw Exiv2::Error(Exiv2::kerErrorMessage, error);\
33 //#else\n//&\n//#endif|' ufraw_exiv2.cc
34 sed -i -e 's|return TRUE|return boolean(TRUE)|' \
35 -e 's|\(jpeg_.*\)TRUE|\1boolean(TRUE)|' dcraw.cc
36 ./configure \
37 $CONFIGURE_ARGS &&
38 make && make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share/applications
45 cp -a $install/usr/bin $fs/usr
46 cp -a $src/ufraw.desktop $fs/usr/share/applications
47 }