From caa008acfaefbdef7ec24f7930cbad4278b517cb Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Mon, 26 Jan 2015 18:32:38 +0000 Subject: [PATCH] Sixel image dumper Display png/jpeg/gif/bmp/pnm image on SIXEL-supported terminals. WWW: https://github.com/uobikiemukot/sdump PR: 196798 Submitted by: sue@iwmt.org --- graphics/Makefile | 1 + graphics/sdump/Makefile | 43 ++++++++++++++++++++++++++++++++++++++++ graphics/sdump/distinfo | 2 ++ graphics/sdump/pkg-descr | 4 ++++ 4 files changed, 50 insertions(+) create mode 100644 graphics/sdump/Makefile create mode 100644 graphics/sdump/distinfo create mode 100644 graphics/sdump/pkg-descr diff --git a/graphics/Makefile b/graphics/Makefile index 1ba98d3eb7ea..2bbfc8dd8c1b 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -942,6 +942,7 @@ SUBDIR += sdl_gfx SUBDIR += sdl_image SUBDIR += sdl_ttf + SUBDIR += sdump SUBDIR += seam-carving-gui SUBDIR += seejpeg SUBDIR += seom diff --git a/graphics/sdump/Makefile b/graphics/sdump/Makefile new file mode 100644 index 000000000000..26c6c02eafc3 --- /dev/null +++ b/graphics/sdump/Makefile @@ -0,0 +1,43 @@ +# $FreeBSD$ + +PORTNAME= sdump +PORTVERSION= 2015.01.16 +CATEGORIES= graphics + +MAINTAINER= sue@iwmt.org +COMMENT= Sixel image dumper + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \ + libpng.so:${PORTSDIR}/graphics/png \ + libsixel.so:${PORTSDIR}/graphics/libsixel + +USE_GITHUB= yes +GH_ACCOUNT= uobikiemukot +GH_PROJECT= sdump +GH_TAGNAME= ${GH_COMMIT} +GH_COMMIT= c5fb55b + +PLIST_FILES= bin/sdump libexec/w3m/yaimg-sixel + +MAKEFILE= makefile + +#CFLAGS += -I${LOCALBASE}/include -Wall -Wextra -std=c99 -pedantic -O3 -pipe -s +CFLAGS += -I${LOCALBASE}/include -std=c99 +LDFLAGS += -L${LOCALBASE}/lib -ljpeg -lpng -lsixel + +PORTDOCS= README.markdown + +post-build: + @cd ${WRKSRC}/yaimg-sixel && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/sdump ${STAGEDIR}${PREFIX}/bin/ + ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/w3m/ + ${INSTALL_PROGRAM} ${WRKSRC}/yaimg-sixel/yaimg-sixel ${STAGEDIR}${PREFIX}/libexec/w3m/ + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.markdown ${STAGEDIR}${DOCSDIR} + +.include diff --git a/graphics/sdump/distinfo b/graphics/sdump/distinfo new file mode 100644 index 000000000000..90a20fa654d9 --- /dev/null +++ b/graphics/sdump/distinfo @@ -0,0 +1,2 @@ +SHA256 (sdump-2015.01.16.tar.gz) = 72ff0b76cf088c56222b4c15c23e01d482bc24e3845def2f28d0ee56e8162c9a +SIZE (sdump-2015.01.16.tar.gz) = 175813 diff --git a/graphics/sdump/pkg-descr b/graphics/sdump/pkg-descr new file mode 100644 index 000000000000..94064666a1d4 --- /dev/null +++ b/graphics/sdump/pkg-descr @@ -0,0 +1,4 @@ +Sixel image dumper +Display png/jpeg/gif/bmp/pnm image on SIXEL-supported terminals. + +WWW: https://github.com/uobikiemukot/sdump