diff options
author | wiz <wiz> | 2008-04-12 10:56:18 +0000 |
---|---|---|
committer | wiz <wiz> | 2008-04-12 10:56:18 +0000 |
commit | ad87e9f9232ab029d01fed7ddd00d28859b36456 (patch) | |
tree | e5b72a9a016209e080d73a1d07777d4579b4daeb /devel/exempi | |
parent | f827fc5ef59920b2888ffc82f44ffb1bfd79e210 (diff) | |
download | pkgsrc-ad87e9f9232ab029d01fed7ddd00d28859b36456.tar.gz |
Import exempi-2.0.0 as devel/exempi.
XMP (Extensible Metadata Platform) facilitates embedding metadata
in files using a subset of RDF. Most notably XMP supports embedding
metadata in PDF and many image formats, though it is designed to
support nearly any file type.
Diffstat (limited to 'devel/exempi')
-rw-r--r-- | devel/exempi/DESCR | 4 | ||||
-rw-r--r-- | devel/exempi/Makefile | 23 | ||||
-rw-r--r-- | devel/exempi/PLIST | 8 | ||||
-rw-r--r-- | devel/exempi/buildlink3.mk | 21 | ||||
-rw-r--r-- | devel/exempi/distinfo | 6 | ||||
-rw-r--r-- | devel/exempi/options.mk | 16 | ||||
-rw-r--r-- | devel/exempi/patches/patch-ab | 22 |
7 files changed, 100 insertions, 0 deletions
diff --git a/devel/exempi/DESCR b/devel/exempi/DESCR new file mode 100644 index 00000000000..6cb9112bc4a --- /dev/null +++ b/devel/exempi/DESCR @@ -0,0 +1,4 @@ +XMP (Extensible Metadata Platform) facilitates embedding metadata +in files using a subset of RDF. Most notably XMP supports embedding +metadata in PDF and many image formats, though it is designed to +support nearly any file type. diff --git a/devel/exempi/Makefile b/devel/exempi/Makefile new file mode 100644 index 00000000000..5768cca582c --- /dev/null +++ b/devel/exempi/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/04/12 10:56:18 wiz Exp $ +# + +DISTNAME= exempi-2.0.0 +CATEGORIES= devel graphics +MASTER_SITES= http://libopenraw.freedesktop.org/download/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://libopenraw.freedesktop.org/wiki/Exempi +COMMENT= XMP library + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= pkg-config +USE_LANGUAGES= c++ + +PKGCONFIG_OVERRIDE+= exempi/exempi-2.0.pc.in + +.include "options.mk" + +.include "../../converters/libiconv/buildlink3.mk" +.include "../../textproc/expat/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/exempi/PLIST b/devel/exempi/PLIST new file mode 100644 index 00000000000..9b2d7fd0371 --- /dev/null +++ b/devel/exempi/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/04/12 10:56:18 wiz Exp $ +include/exempi-2.0/exempi/xmp.h +include/exempi-2.0/exempi/xmpconsts.h +include/exempi-2.0/exempi/xmperrors.h +lib/libexempi.la +lib/pkgconfig/exempi-2.0.pc +@dirrm include/exempi-2.0/exempi +@dirrm include/exempi-2.0 diff --git a/devel/exempi/buildlink3.mk b/devel/exempi/buildlink3.mk new file mode 100644 index 00000000000..88fb9100652 --- /dev/null +++ b/devel/exempi/buildlink3.mk @@ -0,0 +1,21 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/04/12 10:56:18 wiz Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +EXEMPI_BUILDLINK3_MK:= ${EXEMPI_BUILDLINK3_MK}+ + +.if ${BUILDLINK_DEPTH} == "+" +BUILDLINK_DEPENDS+= exempi +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nexempi} +BUILDLINK_PACKAGES+= exempi +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}exempi + +.if ${EXEMPI_BUILDLINK3_MK} == "+" +BUILDLINK_API_DEPENDS.exempi+= exempi>=1.99.9 +BUILDLINK_PKGSRCDIR.exempi?= ../../devel/exempi +.endif # EXEMPI_BUILDLINK3_MK + +.include "../../textproc/expat/buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/devel/exempi/distinfo b/devel/exempi/distinfo new file mode 100644 index 00000000000..a8fb69d72e8 --- /dev/null +++ b/devel/exempi/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/04/12 10:56:18 wiz Exp $ + +SHA1 (exempi-2.0.0.tar.gz) = e1375fc0da629804399a8a5b4dc443636f5cf89f +RMD160 (exempi-2.0.0.tar.gz) = 717c9a63cf4adca09d86297fcf372de317255a15 +Size (exempi-2.0.0.tar.gz) = 3064678 bytes +SHA1 (patch-ab) = c0ff8dac7ace9d23ced44dd3e3aabb63eb22f4e1 diff --git a/devel/exempi/options.mk b/devel/exempi/options.mk new file mode 100644 index 00000000000..308c116a414 --- /dev/null +++ b/devel/exempi/options.mk @@ -0,0 +1,16 @@ +# $NetBSD: options.mk,v 1.1.1.1 2008/04/12 10:56:18 wiz Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.exempi +PKG_SUPPORTED_OPTIONS= test + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mtest) +CONFIGURE_ARGS+= --with-boost=${BUILDLINK_PREFIX.boost-libs} +.include "../../devel/boost-libs/buildlink3.mk" + +# 2 self tests fail, see https://bugs.freedesktop.org/show_bug.cgi?id=15265 +TEST_TARGET= check +.else +CONFIGURE_ARGS+= --enable-unittest=no +.endif diff --git a/devel/exempi/patches/patch-ab b/devel/exempi/patches/patch-ab new file mode 100644 index 00000000000..a986c058f6e --- /dev/null +++ b/devel/exempi/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1.1.1 2008/04/12 10:56:18 wiz Exp $ + +--- source/XMPFiles/FormatSupport/Reconcile_Impl.cpp.orig 2007-10-30 22:22:10.000000000 +0100 ++++ source/XMPFiles/FormatSupport/Reconcile_Impl.cpp +@@ -254,7 +254,7 @@ void ReconcileUtils::UTF8ToLatin1 ( cons + size_t outLen = utf8Len * 4; + char * buf = (char *)calloc( outLen, 1 ); + char * out = buf; +- size_t converted = iconv( cd, &in, &inLen, &out, &outLen ); ++ size_t converted = iconv( cd, (const char **)&in, &inLen, &out, &outLen ); + iconv_close( cd ); + + latin1->assign ( (const char *)buf, outLen ); +@@ -411,7 +411,7 @@ void ReconcileUtils::Latin1ToUTF8 ( cons + size_t outLen = latin1Len * 4; + char * buf = (char *)calloc( outLen, 1 ); + char * out = buf; +- size_t converted = iconv( cd, &in, &inLen, &out, &outLen ); ++ size_t converted = iconv( cd, (const char **)&in, &inLen, &out, &outLen ); + iconv_close( cd ); + + utf8->assign ( (const char *)buf, outLen ); |