wok view ufraw/receipt @ rev 25461

foobillardplus: add LDFLAGS for -Wl,--copy-dt-needed-entries
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 09:44:06 2022 +0000 (19 months ago)
parents 7dd01dedad38
children 1c1cd9e8b715
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|.*Exiv2::Error(1.*|//#if EXIV2_TEST_VERSION(0,27,0)\
31 throw Exiv2::Error(Exiv2::kerErrorMessage, error);\
32 //#else\n//&\n//#endif|' ufraw_exiv2.cc
33 sed -i -e 's|return TRUE|return boolean(TRUE)|' \
34 -e 's|\(jpeg_.*\)TRUE|\1boolean(TRUE)|' dcraw.cc
35 ./configure \
36 $CONFIGURE_ARGS &&
37 make && make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share/applications
44 cp -a $install/usr/bin $fs/usr
45 cp -a $src/ufraw.desktop $fs/usr/share/applications
46 }