summaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2008-02-27 02:50:26 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2008-02-27 02:50:26 +0800
commit841b1f3fb5eacac83eaf057e49ae59e90bd06766 (patch)
tree0eb1cdce4c1948ef886d8b1e08d568d0c1b7b059 /textproc
parent8e614225bb3b8c0b327cf4d5028cece348ac5ff8 (diff)
downloadmarcuscom-ports-841b1f3fb5eacac83eaf057e49ae59e90bd06766.tar.gz
marcuscom-ports-841b1f3fb5eacac83eaf057e49ae59e90bd06766.tar.zst
marcuscom-ports-841b1f3fb5eacac83eaf057e49ae59e90bd06766.zip
Exempi is an implementation of XMP and is based on Adobe XMP SDK
WWW: http://libopenraw.freedesktop.org/wiki/Exempi git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@10541 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'textproc')
-rw-r--r--textproc/exempi/Makefile30
-rw-r--r--textproc/exempi/distinfo3
-rw-r--r--textproc/exempi/files/patch-source_XMPFiles_FormatSupport_EndianUtils.hpp11
-rw-r--r--textproc/exempi/files/patch-source_XMPFiles_FormatSupport_Reconcile_Impl.cpp20
-rw-r--r--textproc/exempi/pkg-descr3
-rw-r--r--textproc/exempi/pkg-plist10
6 files changed, 77 insertions, 0 deletions
diff --git a/textproc/exempi/Makefile b/textproc/exempi/Makefile
new file mode 100644
index 000000000..6d3175368
--- /dev/null
+++ b/textproc/exempi/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: exempi
+# Date created: 2008-02-26
+# Whom: Michael Johnson <ahze@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom$
+
+PORTNAME= exempi
+PORTVERSION= 1.99.9
+CATEGORIES= textproc
+MASTER_SITES= http://libopenraw.freedesktop.org/download/
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= A port of Adobe XMP SDK to work on UNIX
+
+LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2
+
+USE_AUTOTOOLS= libtool:15
+USE_GNOME= ltverhack gnomehack
+CONFIGURE_ARGS= --enable-unittest=no
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" \
+ LIBS="-liconv"
+USE_ICONV= yes
+USE_LDCONFIG= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|$${libdir}/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
+ ${WRKSRC}/configure
+
+.include <bsd.port.mk>
diff --git a/textproc/exempi/distinfo b/textproc/exempi/distinfo
new file mode 100644
index 000000000..045db78a1
--- /dev/null
+++ b/textproc/exempi/distinfo
@@ -0,0 +1,3 @@
+MD5 (exempi-1.99.9.tar.gz) = 8fb6c6230a4862b8c82b4b76be6ffb1e
+SHA256 (exempi-1.99.9.tar.gz) = 10104ff8405604b32583fb8c8731c038525aeacf6c4a44f2845649964a3c9a7b
+SIZE (exempi-1.99.9.tar.gz) = 3063146
diff --git a/textproc/exempi/files/patch-source_XMPFiles_FormatSupport_EndianUtils.hpp b/textproc/exempi/files/patch-source_XMPFiles_FormatSupport_EndianUtils.hpp
new file mode 100644
index 000000000..658138633
--- /dev/null
+++ b/textproc/exempi/files/patch-source_XMPFiles_FormatSupport_EndianUtils.hpp
@@ -0,0 +1,11 @@
+--- source/XMPFiles/FormatSupport/EndianUtils.hpp.orig 2008-02-26 11:51:10.000000000 -0500
++++ source/XMPFiles/FormatSupport/EndianUtils.hpp 2008-02-26 11:51:17.000000000 -0500
+@@ -38,7 +38,7 @@
+ #endif
+ #endif
+ #elif XMP_UNIXBuild
+-#include <endian.h>
++#include <machine/endian.h>
+ #if BYTE_ORDER == BIG_ENDIAN
+ #define kBigEndianHost 1
+ #elif BYTE_ORDER == LITTLE_ENDIAN
diff --git a/textproc/exempi/files/patch-source_XMPFiles_FormatSupport_Reconcile_Impl.cpp b/textproc/exempi/files/patch-source_XMPFiles_FormatSupport_Reconcile_Impl.cpp
new file mode 100644
index 000000000..90e3f7c22
--- /dev/null
+++ b/textproc/exempi/files/patch-source_XMPFiles_FormatSupport_Reconcile_Impl.cpp
@@ -0,0 +1,20 @@
+--- source/XMPFiles/FormatSupport/Reconcile_Impl.cpp.orig 2008-02-26 11:56:56.000000000 -0500
++++ source/XMPFiles/FormatSupport/Reconcile_Impl.cpp 2008-02-26 12:04:09.000000000 -0500
+@@ -249,7 +249,7 @@
+
+ iconv_t cd = iconv_open( "ISO8859-1", "UTF-8" );
+
+- char * in = (char *)utf8Ptr;
++ const char * in = (char *)utf8Ptr;
+ size_t inLen = utf8Len;
+ size_t outLen = utf8Len * 4;
+ char * buf = (char *)calloc( outLen, 1 );
+@@ -406,7 +406,7 @@
+
+ iconv_t cd = iconv_open( "UTF-8", "ISO8859-1" );
+
+- char * in = (char *)_latin1Ptr;
++ const char * in = (char *)_latin1Ptr;
+ size_t inLen = latin1Len;
+ size_t outLen = latin1Len * 4;
+ char * buf = (char *)calloc( outLen, 1 );
diff --git a/textproc/exempi/pkg-descr b/textproc/exempi/pkg-descr
new file mode 100644
index 000000000..543d5a0c3
--- /dev/null
+++ b/textproc/exempi/pkg-descr
@@ -0,0 +1,3 @@
+Exempi is an implementation of XMP and is based on Adobe XMP SDK
+
+WWW: http://libopenraw.freedesktop.org/wiki/Exempi
diff --git a/textproc/exempi/pkg-plist b/textproc/exempi/pkg-plist
new file mode 100644
index 000000000..2e039e9fe
--- /dev/null
+++ b/textproc/exempi/pkg-plist
@@ -0,0 +1,10 @@
+include/exempi-2.0/exempi/xmp.h
+include/exempi-2.0/exempi/xmpconsts.h
+include/exempi-2.0/exempi/xmperrors.h
+lib/libexempi.a
+lib/libexempi.la
+lib/libexempi.so
+lib/libexempi.so.3
+libdata/pkgconfig/exempi-2.0.pc
+@dirrm include/exempi-2.0/exempi
+@dirrm include/exempi-2.0