Date: Tue, 21 Mar 2017 02:12:49 +0000 (UTC) From: "Vanilla I. Shu" <vanilla@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r436563 - in head/graphics: . timg timg/files Message-ID: <201703210212.v2L2CnhK048798@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vanilla Date: Tue Mar 21 02:12:49 2017 New Revision: 436563 URL: https://svnweb.freebsd.org/changeset/ports/436563 Log: Add timg 0.9.5, terminal Image Viewer. PR: 217963 Submitted by: udvzsolt@gmail.com Added: head/graphics/timg/ head/graphics/timg/Makefile (contents, props changed) head/graphics/timg/distinfo (contents, props changed) head/graphics/timg/files/ head/graphics/timg/files/patch-Makefile (contents, props changed) head/graphics/timg/files/patch-timg.cc (contents, props changed) head/graphics/timg/pkg-descr (contents, props changed) Modified: head/graphics/Makefile Modified: head/graphics/Makefile ============================================================================== --- head/graphics/Makefile Tue Mar 21 02:01:35 2017 (r436562) +++ head/graphics/Makefile Tue Mar 21 02:12:49 2017 (r436563) @@ -1034,6 +1034,7 @@ SUBDIR += tilecache SUBDIR += tiled SUBDIR += timeless + SUBDIR += timg SUBDIR += tintfu SUBDIR += tinyows SUBDIR += tkpng Added: head/graphics/timg/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/timg/Makefile Tue Mar 21 02:12:49 2017 (r436563) @@ -0,0 +1,27 @@ +# $FreeBSD$ + +PORTNAME= timg +PORTVERSION= 0.9.5 +DISTVERSIONPREFIX= v +CATEGORIES= graphics + +MAINTAINER= udvzsolt@gmail.com +COMMENT= Terminal Image Viewer + +LICENSE= GPLv2 + +LIB_DEPENDS= libMagick++-6.so:graphics/ImageMagick + +USE_GITHUB= yes +GH_ACCOUNT= hzeller + +USES= gmake +ALL_TARGET= ${PORTNAME} +WRKSRC_SUBDIR= src + +PLIST_FILES= bin/timg + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include <bsd.port.mk> Added: head/graphics/timg/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/timg/distinfo Tue Mar 21 02:12:49 2017 (r436563) @@ -0,0 +1,3 @@ +TIMESTAMP = 1489942207 +SHA256 (hzeller-timg-v0.9.5_GH0.tar.gz) = 285f51e95bed3d477b585db2998ef10b32c230d64d8015748e45f9a6e013ce48 +SIZE (hzeller-timg-v0.9.5_GH0.tar.gz) = 91623 Added: head/graphics/timg/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/timg/files/patch-Makefile Tue Mar 21 02:12:49 2017 (r436563) @@ -0,0 +1,20 @@ +--- Makefile.orig 2016-06-27 04:44:39 UTC ++++ Makefile +@@ -1,6 +1,6 @@ + CXXFLAGS=-Wall -O3 -fPIC +-MAGICK_CXXFLAGS=`GraphicsMagick++-config --cppflags --cxxflags` +-MAGICK_LDFLAGS=`GraphicsMagick++-config --ldflags --libs` ++MAGICK_CXXFLAGS=`Magick++-config --cppflags --cxxflags` ++MAGICK_LDFLAGS=`Magick++-config --ldflags --libs` + PREFIX?=/usr/local + + timg : timg.o terminal-canvas.o +@@ -10,7 +10,7 @@ timg.o: timg.cc + $(CXX) $(MAGICK_CXXFLAGS) $(CXXFLAGS) -c -o $@ $^ + + install: timg +- install $^ $(PREFIX)/bin ++ install $^ $(DESTDIR)$(PREFIX)/bin + + clean: + rm -f timg terminal-canvas.o timg.o Added: head/graphics/timg/files/patch-timg.cc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/timg/files/patch-timg.cc Tue Mar 21 02:12:49 2017 (r436563) @@ -0,0 +1,28 @@ +--- timg.cc.orig 2016-06-27 04:44:39 UTC ++++ timg.cc +@@ -66,9 +66,9 @@ void CopyToCanvas(const Magick::Image &i + if (c.alphaQuantum() >= 255) + continue; + result->SetPixel(x, y, +- ScaleQuantumToChar(c.redQuantum()), +- ScaleQuantumToChar(c.greenQuantum()), +- ScaleQuantumToChar(c.blueQuantum())); ++ MagickCore::ScaleQuantumToChar(c.redQuantum()), ++ MagickCore::ScaleQuantumToChar(c.greenQuantum()), ++ MagickCore::ScaleQuantumToChar(c.blueQuantum())); + } + } + } +@@ -222,9 +222,9 @@ void DisplayScrolling(const Magick::Imag + if (src.alphaQuantum() >= 255) + continue; + RGBCol &dest = fast_image[y * img_width + x]; +- dest.r = ScaleQuantumToChar(src.redQuantum()); +- dest.g = ScaleQuantumToChar(src.greenQuantum()); +- dest.b = ScaleQuantumToChar(src.blueQuantum()); ++ dest.r = MagickCore::ScaleQuantumToChar(src.redQuantum()); ++ dest.g = MagickCore::ScaleQuantumToChar(src.greenQuantum()); ++ dest.b = MagickCore::ScaleQuantumToChar(src.blueQuantum()); + } + } + Added: head/graphics/timg/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/timg/pkg-descr Tue Mar 21 02:12:49 2017 (r436563) @@ -0,0 +1,11 @@ +timg - Terminal Image Viewer + +A viewer that uses 24-Bit color capabilities and unicode +character blocks to display images in the terminal. +Displays regular images, plays animated gifs or allows to +scroll static images. + +Very useful for if you want to have a quick visual check +without starting a bulky image viewer or in an SSH session. + +WWW: https://github.com/hzeller/timg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703210212.v2L2CnhK048798>