pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
timg: Initial import of 1.4.2 (terminal image and video viewer)
Module Name: pkgsrc-wip
Committed By: Michael-John Turner <mj%mjturner.net@localhost>
Pushed By: mj
Date: Tue Aug 3 15:31:53 2021 +0100
Changeset: 3c6bbb1f640f4494e85123f45c7fa33ea59f032d
Modified Files:
Makefile
Added Files:
timg/DESCR
timg/Makefile
timg/PLIST
timg/distinfo
timg/options.mk
Log Message:
timg: Initial import of 1.4.2 (terminal image and video viewer)
https://timg.sh/
Terminal Image and Video Viewer
A user-friendly viewer that uses 24-Bit color capabilities and unicode
character blocks to display images, animations and videos in the terminal.
Displays regular images, plays animated gifs, scrolls static images and plays
videos.
On terminals that implement the Kitty Graphics Protocol or the iTerm2 Graphics
Protocol this displays images in full resolution.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3c6bbb1f640f4494e85123f45c7fa33ea59f032d
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
timg/DESCR | 8 ++++++++
timg/Makefile | 32 ++++++++++++++++++++++++++++++++
timg/PLIST | 3 +++
timg/distinfo | 6 ++++++
timg/options.mk | 35 +++++++++++++++++++++++++++++++++++
6 files changed, 85 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 4c61f6cb07..f5ac34e6e2 100644
--- a/Makefile
+++ b/Makefile
@@ -5545,6 +5545,7 @@ SUBDIR+= thrift
SUBDIR+= thunderbird68-enigmail
SUBDIR+= tilda
SUBDIR+= tilix
+SUBDIR+= timg
SUBDIR+= timewarrior
SUBDIR+= tinyca2
SUBDIR+= tinycobol
diff --git a/timg/DESCR b/timg/DESCR
new file mode 100644
index 0000000000..e03d1e92f2
--- /dev/null
+++ b/timg/DESCR
@@ -0,0 +1,8 @@
+A user-friendly viewer that uses 24-Bit color capabilities and unicode
+character blocks to display images, animations and videos in the terminal.
+
+Displays regular images, plays animated gifs, scrolls static images and plays
+videos.
+
+On terminals that implement the Kitty Graphics Protocol or the iTerm2 Graphics
+Protocol this displays images in full resolution.
diff --git a/timg/Makefile b/timg/Makefile
new file mode 100644
index 0000000000..7f25af8d06
--- /dev/null
+++ b/timg/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD$
+
+DISTNAME= timg-1.4.2
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_GITHUB:=hzeller/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= mj%mjturner.net@localhost
+HOMEPAGE= https://timg.sh/
+COMMENT= Terminal image and video viewer
+LICENSE= gnu-gpl-v2
+
+.include "options.mk"
+
+WRKSRC= ${WRKDIR}/timg-1.4.2
+
+USE_TOOLS= cmake pkg-config
+USE_CMAKE= yes
+USE_LANGUAGES= c++
+CMAKE_ARGS+= -DWITH_TURBOJPEG=OFF
+CMAKE_ARGS+= -DTIMG_VERSION_FROM_GIT=OFF
+CMAKE_ARGS+= -DWITH_OPENSLIDE_SUPPORT=OFF
+
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/timg ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/man/timg.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../multimedia/ffmpeg4/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/timg/PLIST b/timg/PLIST
new file mode 100644
index 0000000000..9df876c584
--- /dev/null
+++ b/timg/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/timg
+man/man1/timg.1
diff --git a/timg/distinfo b/timg/distinfo
new file mode 100644
index 0000000000..5af813685f
--- /dev/null
+++ b/timg/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (timg-1.4.2.tar.gz) = f719992e930b2668685f6ce58c3bd3d86326553f
+RMD160 (timg-1.4.2.tar.gz) = d47f376537215f28ee071aab47a613a218e0fa68
+SHA512 (timg-1.4.2.tar.gz) = 9335cb04dc896f5b130194f2160ab0991cc37d409989e87ce4fcf3657c72deb1d2ffa1e5408190ab384ee631ea1aa87bd47c55f129dde4ba697c74945f63dd6c
+Size (timg-1.4.2.tar.gz) = 1019592 bytes
diff --git a/timg/options.mk b/timg/options.mk
new file mode 100644
index 0000000000..1b0dffc980
--- /dev/null
+++ b/timg/options.mk
@@ -0,0 +1,35 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.timg
+PKG_SUPPORTED_OPTIONS+= graphicsmagick turbojpeg
+
+PKG_SUGGESTED_OPTIONS= graphicsmagick
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Use GraphicsMagick
+###
+.if !empty(PKG_OPTIONS:Mgraphicsmagick)
+.include "../../graphics/GraphicsMagick/buildlink3.mk"
+.endif
+
+###
+### Use OpenSlide - Not yet in pkgsrc, so disabled
+###
+#.if !empty(PKG_OPTIONS:Mopenslide)
+#CMAKE_ARGS+= -DWITH_OPENSLIDE_SUPPORT=ON
+#.else
+#CMAKE_ARGS+= -DWITH_OPENSLIDE_SUPPORT=OFF
+#.endif
+
+###
+### Use turbojpeg
+### Not enabled by default as it conflicts with graphics/jpeg
+###
+.if !empty(PKG_OPTIONS:Mturbojpeg)
+CMAKE_ARGS+= -DWITH_TURBOJPEG=ON
+.include "../../graphics/libjpeg-turbo/buildlink3.mk"
+.else
+CMAKE_ARGS+= -DWITH_TURBOJPEG=OFF
+.endif
Home |
Main Index |
Thread Index |
Old Index