aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2012-07-02 22:27:14 +0800
committerpawel <pawel@FreeBSD.org>2012-07-02 22:27:14 +0800
commitdc9aad8705528be3ccbafc08520ff17db182c12f (patch)
treea83cb7f1a5ab299e029126a654a654e359db4d98
parentb1fc106803bf22bf755715cba417be6fcf76b25d (diff)
downloadfreebsd-ports-gnome-dc9aad8705528be3ccbafc08520ff17db182c12f.tar.gz
freebsd-ports-gnome-dc9aad8705528be3ccbafc08520ff17db182c12f.tar.zst
freebsd-ports-gnome-dc9aad8705528be3ccbafc08520ff17db182c12f.zip
libgaiagraphics is an open source library supporting common-utility
raster handling methods. WWW: https://www.gaia-gis.it/fossil/libgaiagraphics/index PR: ports/169180 Submitted by: lbartoletti <coder@tuxfamily.org>
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/libgaiagraphics/Makefile35
-rw-r--r--graphics/libgaiagraphics/distinfo2
-rw-r--r--graphics/libgaiagraphics/files/patch-src-gaiagraphics_grid.c10
-rw-r--r--graphics/libgaiagraphics/pkg-descr4
-rw-r--r--graphics/libgaiagraphics/pkg-plist6
6 files changed, 58 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 90a801571ba6..120d569998ac 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -461,6 +461,7 @@
SUBDIR += libexif
SUBDIR += libexif-gtk
SUBDIR += libfpx
+ SUBDIR += libgaiagraphics
SUBDIR += libgeotiff
SUBDIR += libgfx
SUBDIR += libggi
diff --git a/graphics/libgaiagraphics/Makefile b/graphics/libgaiagraphics/Makefile
new file mode 100644
index 000000000000..1f9349a65450
--- /dev/null
+++ b/graphics/libgaiagraphics/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: libgaiagraphics
+# Date created: 2012-06-14
+# Whom: lbartoletti <coder@tuxfamily.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= libgaiagraphics
+PORTVERSION= 0.4b
+CATEGORIES= graphics geography
+MASTER_SITES= http://www.gaia-gis.it/gaia-sins/
+
+MAINTAINER= coder@tuxfamily.org
+COMMENT= Library supporting common-utility raster handling methods
+
+LIB_DEPENDS= png15:${PORTSDIR}/graphics/png \
+ tiff:${PORTSDIR}/graphics/tiff \
+ geotiff:${PORTSDIR}/graphics/libgeotiff \
+ jpeg:${PORTSDIR}/graphics/jpeg \
+ cairo:${PORTSDIR}/graphics/cairo
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_ICONV= yes
+
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib -liconv
+CONFIGURE_ARGS+=CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+USE_LDCONFIG= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g' \
+ ${WRKSRC}/Makefile.in
+
+.include <bsd.port.mk>
diff --git a/graphics/libgaiagraphics/distinfo b/graphics/libgaiagraphics/distinfo
new file mode 100644
index 000000000000..8032c7012b00
--- /dev/null
+++ b/graphics/libgaiagraphics/distinfo
@@ -0,0 +1,2 @@
+SHA256 (libgaiagraphics-0.4b.tar.gz) = e4ef90cc8224ecc92ad4294d4ee856b77205b19462729648c66d62b72c3b4ede
+SIZE (libgaiagraphics-0.4b.tar.gz) = 451786
diff --git a/graphics/libgaiagraphics/files/patch-src-gaiagraphics_grid.c b/graphics/libgaiagraphics/files/patch-src-gaiagraphics_grid.c
new file mode 100644
index 000000000000..b8de0cc4e058
--- /dev/null
+++ b/graphics/libgaiagraphics/files/patch-src-gaiagraphics_grid.c
@@ -0,0 +1,10 @@
+--- src/gaiagraphics_grids.c.orig 2012-07-01 18:19:38.000000000 +0200
++++ src/gaiagraphics_grids.c 2012-07-01 18:19:59.000000000 +0200
+@@ -30,6 +30,7 @@
+ #include <limits.h>
+ #include <string.h>
+ #include <stdlib.h>
++#include <sys/types.h>
+
+ #include "gaiagraphics.h"
+ #include "gaiagraphics_internals.h"
diff --git a/graphics/libgaiagraphics/pkg-descr b/graphics/libgaiagraphics/pkg-descr
new file mode 100644
index 000000000000..90bdf48f9bb1
--- /dev/null
+++ b/graphics/libgaiagraphics/pkg-descr
@@ -0,0 +1,4 @@
+libgaiagraphics is an open source library supporting common-utility
+raster handling methods.
+
+WWW: https://www.gaia-gis.it/fossil/libgaiagraphics/index
diff --git a/graphics/libgaiagraphics/pkg-plist b/graphics/libgaiagraphics/pkg-plist
new file mode 100644
index 000000000000..504cfc1403d4
--- /dev/null
+++ b/graphics/libgaiagraphics/pkg-plist
@@ -0,0 +1,6 @@
+include/gaiagraphics.h
+lib/libgaiagraphics.a
+lib/libgaiagraphics.la
+lib/libgaiagraphics.so
+lib/libgaiagraphics.so.1
+libdata/pkgconfig/gaiagraphics.pc