aboutsummaryrefslogtreecommitdiff
path: root/graphics/libnsgif
diff options
context:
space:
mode:
authorOlivier Duchateau <olivierd@FreeBSD.org>2016-03-20 16:22:42 +0000
committerOlivier Duchateau <olivierd@FreeBSD.org>2016-03-20 16:22:42 +0000
commit74a164f3cb0436ffa7f45b8d5f67d3ac73268c74 (patch)
tree0df08ecd05bf99f31169d4eeb3f14e407b932053 /graphics/libnsgif
parent79d3383f2df733f32bc7c614579d00050a935850 (diff)
downloadports-74a164f3cb0436ffa7f45b8d5f67d3ac73268c74.tar.gz
ports-74a164f3cb0436ffa7f45b8d5f67d3ac73268c74.zip
Notes
Diffstat (limited to 'graphics/libnsgif')
-rw-r--r--graphics/libnsgif/Makefile29
-rw-r--r--graphics/libnsgif/distinfo2
-rw-r--r--graphics/libnsgif/files/patch-Makefile10
-rw-r--r--graphics/libnsgif/files/patch-libnsgif.pc.in10
-rw-r--r--graphics/libnsgif/pkg-descr4
-rw-r--r--graphics/libnsgif/pkg-plist5
6 files changed, 60 insertions, 0 deletions
diff --git a/graphics/libnsgif/Makefile b/graphics/libnsgif/Makefile
new file mode 100644
index 000000000000..720e42c8e169
--- /dev/null
+++ b/graphics/libnsgif/Makefile
@@ -0,0 +1,29 @@
+# Created by: Olivier Duchateau
+# $FreeBSD$
+
+PORTNAME= libnsgif
+PORTVERSION= 0.1.3
+CATEGORIES= graphics
+MASTER_SITES= http://download.netsurf-browser.org/libs/releases/
+DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+
+MAINTAINER= olivierd@FreeBSD.org
+COMMENT= NetSurf GIF Decoder
+
+LICENSE= MIT
+
+BUILD_DEPENDS= netsurf-buildsystem>=1.5:${PORTSDIR}/devel/netsurf-buildsystem
+
+USES= gmake
+USE_LDCONFIG= yes
+
+WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
+
+MAKE_ENV+= COMPONENT_TYPE="lib-shared"
+
+PLIST_SUB+= VERSION=${PORTVERSION}
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libnsgif.so*
+
+.include <bsd.port.mk>
diff --git a/graphics/libnsgif/distinfo b/graphics/libnsgif/distinfo
new file mode 100644
index 000000000000..711cc002319b
--- /dev/null
+++ b/graphics/libnsgif/distinfo
@@ -0,0 +1,2 @@
+SHA256 (libnsgif-0.1.3-src.tar.gz) = d3d2c9c008047eab41fc0a4ce7c280456c55c479d191e1968f843b005f219fa8
+SIZE (libnsgif-0.1.3-src.tar.gz) = 202160
diff --git a/graphics/libnsgif/files/patch-Makefile b/graphics/libnsgif/files/patch-Makefile
new file mode 100644
index 000000000000..f85b15704108
--- /dev/null
+++ b/graphics/libnsgif/files/patch-Makefile
@@ -0,0 +1,10 @@
+--- Makefile.orig 2016-01-03 11:46:21 UTC
++++ Makefile
+@@ -45,5 +45,5 @@ include $(NSBUILD)/Makefile.top
+ # Extra installation rules
+ I := /$(INCLUDEDIR)
+ INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):include/libnsgif.h
+-INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR)/pkgconfig:lib$(COMPONENT).pc.in
+-INSTALL_ITEMS := $(INSTALL_ITEMS) /$(LIBDIR):$(OUTPUT)
++INSTALL_ITEMS := $(INSTALL_ITEMS) /libdata/pkgconfig:lib$(COMPONENT).pc.in
++INSTALL_ITEMS := $(INSTALL_ITEMS) /lib:$(OUTPUT)
diff --git a/graphics/libnsgif/files/patch-libnsgif.pc.in b/graphics/libnsgif/files/patch-libnsgif.pc.in
new file mode 100644
index 000000000000..6a51533ac53c
--- /dev/null
+++ b/graphics/libnsgif/files/patch-libnsgif.pc.in
@@ -0,0 +1,10 @@
+--- libnsgif.pc.in.orig 2016-01-03 11:46:21 UTC
++++ libnsgif.pc.in
+@@ -1,6 +1,6 @@
+ prefix=PREFIX
+ exec_prefix=${prefix}
+-libdir=${exec_prefix}/LIBDIR
++libdir=${exec_prefix}/lib
+ includedir=${prefix}/INCLUDEDIR
+
+ Name: libnsgif
diff --git a/graphics/libnsgif/pkg-descr b/graphics/libnsgif/pkg-descr
new file mode 100644
index 000000000000..188f3990a8de
--- /dev/null
+++ b/graphics/libnsgif/pkg-descr
@@ -0,0 +1,4 @@
+Libnsgif is a decoding library for the GIF image file format, written in C.
+It was developed as part of the NetSurf project.
+
+WWW: http://www.netsurf-browser.org/projects/libnsgif/
diff --git a/graphics/libnsgif/pkg-plist b/graphics/libnsgif/pkg-plist
new file mode 100644
index 000000000000..38365be87a3a
--- /dev/null
+++ b/graphics/libnsgif/pkg-plist
@@ -0,0 +1,5 @@
+include/libnsgif.h
+lib/libnsgif.so
+lib/libnsgif.so.0
+lib/libnsgif.so.%%VERSION%%
+libdata/pkgconfig/libnsgif.pc