wok-current view ufraw/receipt @ rev 24988
Fix perl-gd & tcptrack
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 12 11:01:25 2022 +0000 (2022-05-12) |
parents | bf447c84094b |
children | 7dd01dedad38 |
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="http://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 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 sed -i 's|.*Exiv2::Error(1.*|//#if EXIV2_TEST_VERSION(0,27,0)\
29 throw Exiv2::Error(Exiv2::kerErrorMessage, error);\
30 //#else\n//&\n//#endif|' ufraw_exiv2.cc
31 sed -i -e 's|return TRUE|return boolean(TRUE)|' \
32 -e 's|\(jpeg_.*\)TRUE|\1boolean(TRUE)|' dcraw.cc
33 ./configure \
34 $CONFIGURE_ARGS &&
35 make && make install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/share/applications
42 cp -a $install/usr/bin $fs/usr
43 cp -a $src/ufraw.desktop $fs/usr/share/applications
44 }