summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-07-13 10:10:56 +0000
committerobache <obache@pkgsrc.org>2014-07-13 10:10:56 +0000
commitaa8190e3e59f9109e6f0bb5114686b5abeab7bb9 (patch)
treed7e68b0cbeaa69472523f294f073224fe29e6cc3
parent8640aa49e915191bc0d05171bdbc0bf844e6e034 (diff)
downloadpkgsrc-aa8190e3e59f9109e6f0bb5114686b5abeab7bb9.tar.gz
Import libsixel-0.23.2 as graphics/libsixel.
This package provides encoder/decoder implementation for DEC SIXEL graphics, and some converter programs. SIXEL is one of image formats for printer and terminal imaging introduced by Digital Equipment Corp. (DEC). Its data scheme is represented as a terminal-friendly escape sequence. So if you want to view a SIXEL image file, all you have to do is "cat" it to your terminal.
-rw-r--r--graphics/libsixel/DESCR8
-rw-r--r--graphics/libsixel/Makefile20
-rw-r--r--graphics/libsixel/PLIST11
-rw-r--r--graphics/libsixel/buildlink3.mk13
-rw-r--r--graphics/libsixel/distinfo5
-rw-r--r--graphics/libsixel/options.mk27
6 files changed, 84 insertions, 0 deletions
diff --git a/graphics/libsixel/DESCR b/graphics/libsixel/DESCR
new file mode 100644
index 00000000000..d5c110b673f
--- /dev/null
+++ b/graphics/libsixel/DESCR
@@ -0,0 +1,8 @@
+This package provides encoder/decoder implementation for DEC SIXEL graphics, and
+some converter programs.
+
+SIXEL is one of image formats for printer and terminal imaging introduced by
+Digital Equipment Corp. (DEC).
+Its data scheme is represented as a terminal-friendly escape sequence.
+So if you want to view a SIXEL image file, all you have to do is "cat" it to
+your terminal.
diff --git a/graphics/libsixel/Makefile b/graphics/libsixel/Makefile
new file mode 100644
index 00000000000..bbcca7c46b7
--- /dev/null
+++ b/graphics/libsixel/Makefile
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2014/07/13 10:10:56 obache Exp $
+
+DISTNAME= libsixel-0.23.2
+CATEGORIES= graphics
+MASTER_SITES= -${HOMEPAGE:Q}/archive/v${PKGVERSION_NOREV}${EXTRACT_SUFX}
+
+MAINTAINER= obache@NetBSD.org
+HOMEPAGE= https://github.com/saitoha/libsixel
+COMMENT= DEC SIXEL graphics codec encoder/decoder and converter
+LICENSE= mit AND public-domain
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config
+
+PKGCONFIG_OVERRIDE+= libsixel.pc.in
+
+.include "options.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/libsixel/PLIST b/graphics/libsixel/PLIST
new file mode 100644
index 00000000000..5df5adf943c
--- /dev/null
+++ b/graphics/libsixel/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 2014/07/13 10:10:56 obache Exp $
+bin/img2sixel
+bin/sixel2png
+include/sixel.h
+lib/libsixel.la
+lib/pkgconfig/libsixel.pc
+man/man1/img2sixel.1
+man/man1/sixel2png.1
+man/man5/sixel.5
+share/bash-completion/completions/img2sixel
+share/zsh/site-functions/_img2sixel
diff --git a/graphics/libsixel/buildlink3.mk b/graphics/libsixel/buildlink3.mk
new file mode 100644
index 00000000000..bce4d647572
--- /dev/null
+++ b/graphics/libsixel/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/07/13 10:10:56 obache Exp $
+#
+
+BUILDLINK_TREE+= libsixel
+
+.if !defined(LIBSIXEL_BUILDLINK3_MK)
+LIBSIXEL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libsixel+= libsixel>=0.11.0
+BUILDLINK_PKGSRCDIR.libsixel?= ../../graphics/libsixel
+.endif # LIBSIXEL_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libsixel
diff --git a/graphics/libsixel/distinfo b/graphics/libsixel/distinfo
new file mode 100644
index 00000000000..2612c2dc470
--- /dev/null
+++ b/graphics/libsixel/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/07/13 10:10:56 obache Exp $
+
+SHA1 (libsixel-0.23.2.tar.gz) = 281c7b7ab534e4c4bc112bab08427f5cfe0db336
+RMD160 (libsixel-0.23.2.tar.gz) = 40e8a5896b579e48f8e60d14266d6dca42853796
+Size (libsixel-0.23.2.tar.gz) = 2193597 bytes
diff --git a/graphics/libsixel/options.mk b/graphics/libsixel/options.mk
new file mode 100644
index 00000000000..57099b50909
--- /dev/null
+++ b/graphics/libsixel/options.mk
@@ -0,0 +1,27 @@
+# $NetBSD: options.mk,v 1.1 2014/07/13 10:10:56 obache Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.libsixel
+PKG_SUPPORTED_OPTIONS= curl gd gdk-pixbuf2
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mcurl)
+CONFIGURE_ARGS+= --with-libcurl
+.include "../../www/curl/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-libcurl
+.endif
+
+.if !empty(PKG_OPTIONS:Mgd)
+CONFIGURE_ARGS+= --with-gd
+.include "../../graphics/gd/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-gd
+.endif
+
+.if !empty(PKG_OPTIONS:Mgdk-pixbuf2)
+CONFIGURE_ARGS+= --with-gdk-pixbuf2
+.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-gdk-pixbuf2
+.endif