diff options
author | markd <markd@pkgsrc.org> | 2012-03-19 23:01:43 +0000 |
---|---|---|
committer | markd <markd@pkgsrc.org> | 2012-03-19 23:01:43 +0000 |
commit | a29349c6a40b88fd64c8462a853856dfc9ad9cbb (patch) | |
tree | 0b081861df7257c39f46736bcff1f0a8672f7168 /graphics | |
parent | ad6c757594fd3dab8915acd58d8145aec7d229a8 (diff) | |
download | pkgsrc-a29349c6a40b88fd64c8462a853856dfc9ad9cbb.tar.gz |
Reimport libkexiv2 0.1.9nb5 as libkexiv2-kde3
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/libkexiv2-kde3/DESCR | 2 | ||||
-rw-r--r-- | graphics/libkexiv2-kde3/Makefile | 30 | ||||
-rw-r--r-- | graphics/libkexiv2-kde3/PLIST | 6 | ||||
-rw-r--r-- | graphics/libkexiv2-kde3/buildlink3.mk | 18 | ||||
-rw-r--r-- | graphics/libkexiv2-kde3/distinfo | 6 | ||||
-rw-r--r-- | graphics/libkexiv2-kde3/patches/patch-aa | 49 |
6 files changed, 111 insertions, 0 deletions
diff --git a/graphics/libkexiv2-kde3/DESCR b/graphics/libkexiv2-kde3/DESCR new file mode 100644 index 00000000000..518c839adfa --- /dev/null +++ b/graphics/libkexiv2-kde3/DESCR @@ -0,0 +1,2 @@ +Libkexiv2 is a wrapper around Exiv2 library to manipulate pictures metadata. +This library is used by kipi-plugins, digiKam and others kipi host programs. diff --git a/graphics/libkexiv2-kde3/Makefile b/graphics/libkexiv2-kde3/Makefile new file mode 100644 index 00000000000..98c20aa58ba --- /dev/null +++ b/graphics/libkexiv2-kde3/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2012/03/19 23:01:43 markd Exp $ +# + +DISTNAME= libkexiv2-0.1.9 +PKGREVISION= 5 +CATEGORIES= graphics +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=kipi/} +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.kipi-plugins.org/ +COMMENT= KDE wrapper for exiv2 +LICENSE= gnu-gpl-v2 + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_TOOLS+= pkg-config +USE_LANGUAGES= c c++ +USE_LIBTOOL= yes + +PKGCONFIG_OVERRIDE+= libkexiv2/libkexiv2.pc.in + +.include "../../meta-pkgs/kde3/kde3.mk" +.include "../../graphics/exiv2/buildlink3.mk" +.include "../../graphics/png/buildlink3.mk" +.include "../../mk/jpeg.buildlink3.mk" +.include "../../devel/zlib/buildlink3.mk" +.include "../../x11/kdelibs3/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/libkexiv2-kde3/PLIST b/graphics/libkexiv2-kde3/PLIST new file mode 100644 index 00000000000..e2b0acc59ea --- /dev/null +++ b/graphics/libkexiv2-kde3/PLIST @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2012/03/19 23:01:43 markd Exp $ +include/libkexiv2/kexiv2.h +include/libkexiv2/libkexiv2_export.h +include/libkexiv2/version.h +lib/libkexiv2.la +lib/pkgconfig/libkexiv2.pc diff --git a/graphics/libkexiv2-kde3/buildlink3.mk b/graphics/libkexiv2-kde3/buildlink3.mk new file mode 100644 index 00000000000..888d4102a75 --- /dev/null +++ b/graphics/libkexiv2-kde3/buildlink3.mk @@ -0,0 +1,18 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2012/03/19 23:01:43 markd Exp $ + +BUILDLINK_TREE+= libkexiv2 + +.if !defined(LIBKEXIV2_BUILDLINK3_MK) +LIBKEXIV2_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.libkexiv2+= libkexiv2>=0.1.1 +BUILDLINK_ABI_DEPENDS.libkexiv2+= libkexiv2>=0.1.9nb4 +BUILDLINK_PKGSRCDIR.libkexiv2?= ../../graphics/libkexiv2-kde3 + +.include "../../graphics/exiv2/buildlink3.mk" +.include "../../graphics/png/buildlink3.mk" +.include "../../devel/zlib/buildlink3.mk" +.include "../../x11/kdelibs3/buildlink3.mk" +.endif # LIBKEXIV2_BUILDLINK3_MK + +BUILDLINK_TREE+= -libkexiv2 diff --git a/graphics/libkexiv2-kde3/distinfo b/graphics/libkexiv2-kde3/distinfo new file mode 100644 index 00000000000..53b20341978 --- /dev/null +++ b/graphics/libkexiv2-kde3/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2012/03/19 23:01:43 markd Exp $ + +SHA1 (libkexiv2-0.1.9.tar.bz2) = 252243b105f0f0e0565219b61aed6f223cbb4000 +RMD160 (libkexiv2-0.1.9.tar.bz2) = c4d68e36a69de29b31eb2ceecac6d7e370d68213 +Size (libkexiv2-0.1.9.tar.bz2) = 432834 bytes +SHA1 (patch-aa) = da9d931b52bebb21148e3445051fa5b19baa164c diff --git a/graphics/libkexiv2-kde3/patches/patch-aa b/graphics/libkexiv2-kde3/patches/patch-aa new file mode 100644 index 00000000000..4357785e31a --- /dev/null +++ b/graphics/libkexiv2-kde3/patches/patch-aa @@ -0,0 +1,49 @@ +$NetBSD: patch-aa,v 1.1.1.1 2012/03/19 23:01:43 markd Exp $ + +--- libkexiv2/libkexiv2/kexiv2.cpp.orig 2009-02-27 08:39:37.000000000 +0000 ++++ libkexiv2/libkexiv2/kexiv2.cpp +@@ -49,6 +49,20 @@ extern "C" + #include "kexiv2private.h" + #include "kexiv2.h" + ++#if defined(__NetBSD__) || defined(__DragonFly__) ++#include <sys/param.h> ++#endif ++ ++#if (defined(__DragonFly__) && __DragonFly_version < 190000) || (defined(__NetBSD__) && __NetBSD_Version__ <= 399001700) ++static double trunc(double val) ++{ ++ if (val > 0) ++ return floor(val); ++ else ++ return ceil(val); ++} ++#endif ++ + namespace KExiv2Iface + { + +@@ -1603,7 +1617,11 @@ QString KExiv2::getExifTagTitle(const ch + { + std::string exifkey(exifTagName); + Exiv2::ExifKey ek(exifkey); ++#if (EXIV2_TEST_VERSION(0,21,0)) ++ return QString::fromLocal8Bit( ek.tagLabel().c_str() ); ++#else + return QString::fromLocal8Bit( Exiv2::ExifTags::tagTitle(ek.tag(), ek.ifdId()) ); ++#endif + } + catch (Exiv2::Error& e) + { +@@ -1619,7 +1637,11 @@ QString KExiv2::getExifTagDescription(co + { + std::string exifkey(exifTagName); + Exiv2::ExifKey ek(exifkey); ++#if (EXIV2_TEST_VERSION(0,21,0)) ++ return QString::fromLocal8Bit( ek.tagDesc().c_str() ); ++#else + return QString::fromLocal8Bit( Exiv2::ExifTags::tagDesc(ek.tag(), ek.ifdId()) ); ++#endif + } + catch (Exiv2::Error& e) + { |