wok annotate ufraw/receipt @ rev 25551
nfs-utils: make nfsd work on first start too
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 06 10:52:37 2023 +0100 (14 months ago) |
parents | cec9f8f5726d |
children | 29df00e1e19d |
rev | line source |
---|---|
gokhlayeh@5872 | 1 # SliTaz package receipt. |
gokhlayeh@5872 | 2 |
gokhlayeh@5872 | 3 PACKAGE="ufraw" |
pascal@21160 | 4 VERSION="0.22" |
gokhlayeh@5872 | 5 CATEGORY="graphics" |
gokhlayeh@5872 | 6 SHORT_DESC="Utility to read and manipulate raw images from digital cameras." |
pankso@12741 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
gokhlayeh@5872 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@25460 | 10 WEB_SITE="https://ufraw.sourceforge.net/" |
pankso@12741 | 11 WGET_URL="$SF_MIRROR/project/ufraw/ufraw/ufraw-$VERSION/$TARBALL" |
pankso@12741 | 12 SUGGESTED="ufraw-locales gimp-plugin-ufraw" |
pankso@12741 | 13 |
pascal@21167 | 14 DEPENDS="gtk+ exiv2 lcms tiff libgtkimageview libgomp bzip2 lcms2" |
pankso@12741 | 15 BUILD_DEPENDS="gimp gimp-dev lcms-dev tiff-dev exiv2-dev gtk+-dev \ |
pascal@21167 | 16 libgtkimageview-dev bzip2-dev lcms2-dev" |
gokhlayeh@5872 | 17 |
pascal@25461 | 18 # What is the latest version available today? |
pascal@24082 | 19 current_version() |
pascal@24082 | 20 { |
pascal@24082 | 21 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \ |
pascal@24082 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24082 | 23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" |
pascal@24082 | 24 } |
pascal@24082 | 25 |
gokhlayeh@5872 | 26 # Rules to configure and make the package. |
gokhlayeh@5872 | 27 compile_rules() |
gokhlayeh@5872 | 28 { |
pascal@25461 | 29 sed -i -e 's|<sstream>|&\n#include <iostream>|' \ |
pascal@25462 | 30 -e 's|exif.hpp>|&\n#include <exiv2/error.hpp>|' \ |
pascal@25461 | 31 -e 's|.*Exiv2::Error(1.*|//#if EXIV2_TEST_VERSION(0,27,0)\ |
pascal@21160 | 32 throw Exiv2::Error(Exiv2::kerErrorMessage, error);\ |
pascal@21160 | 33 //#else\n//&\n//#endif|' ufraw_exiv2.cc |
pascal@21160 | 34 sed -i -e 's|return TRUE|return boolean(TRUE)|' \ |
pascal@21160 | 35 -e 's|\(jpeg_.*\)TRUE|\1boolean(TRUE)|' dcraw.cc |
gokhlayeh@5872 | 36 ./configure \ |
gokhlayeh@5872 | 37 $CONFIGURE_ARGS && |
pankso@12741 | 38 make && make install |
gokhlayeh@5872 | 39 } |
gokhlayeh@5872 | 40 |
gokhlayeh@5872 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@5872 | 42 genpkg_rules() |
gokhlayeh@5872 | 43 { |
gokhlayeh@5872 | 44 mkdir -p $fs/usr/share/applications |
pankso@12741 | 45 cp -a $install/usr/bin $fs/usr |
gokhlayeh@5872 | 46 cp -a $src/ufraw.desktop $fs/usr/share/applications |
gokhlayeh@5872 | 47 } |