pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add imv.



Module Name:	pkgsrc-wip
Committed By:	nia <nia%NetBSD.org@localhost>
Pushed By:	nee
Date:		Sat Jan 11 14:42:38 2020 +0000
Changeset:	419a0aff5db0dbb8272a3abfcef1fb66affe87eb

Modified Files:
	Makefile
Added Files:
	imv/DESCR
	imv/Makefile
	imv/PLIST
	imv/distinfo
	imv/options.mk

Log Message:
Add imv.

imv is a command line image viewer intended for use with tiling
window managers.

Features
--------

* Native Wayland and X11 support
* Support for dozens of image formats including:
  * PNG
  * JPEG
  * Animated GIFs
  * SVG
  * TIFF
  * Various RAW formats
  * Photoshop PSD files
* Configurable key bindings and behaviour
* Highly scriptable with IPC via imv-msg

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=419a0aff5db0dbb8272a3abfcef1fb66affe87eb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile       |  1 +
 imv/DESCR      | 17 +++++++++++++++++
 imv/Makefile   | 30 ++++++++++++++++++++++++++++++
 imv/PLIST      |  9 +++++++++
 imv/distinfo   |  6 ++++++
 imv/options.mk | 40 ++++++++++++++++++++++++++++++++++++++++
 6 files changed, 103 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 9c62072ac6..4b0d004ac5 100644
--- a/Makefile
+++ b/Makefile
@@ -1590,6 +1590,7 @@ SUBDIR+=	ilohamail
 SUBDIR+=	imagination
 SUBDIR+=	imgui
 SUBDIR+=	imonc
+SUBDIR+=	imv
 SUBDIR+=	inetdxtra
 SUBDIR+=	influxdb
 SUBDIR+=	info2man
diff --git a/imv/DESCR b/imv/DESCR
new file mode 100644
index 0000000000..1e4e3598b8
--- /dev/null
+++ b/imv/DESCR
@@ -0,0 +1,17 @@
+imv is a command line image viewer intended for use with tiling
+window managers.
+
+Features
+--------
+
+* Native Wayland and X11 support
+* Support for dozens of image formats including:
+  * PNG
+  * JPEG
+  * Animated GIFs
+  * SVG
+  * TIFF
+  * Various RAW formats
+  * Photoshop PSD files
+* Configurable key bindings and behaviour
+* Highly scriptable with IPC via imv-msg
diff --git a/imv/Makefile b/imv/Makefile
new file mode 100644
index 0000000000..18e3e3d50f
--- /dev/null
+++ b/imv/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD$
+
+DISTNAME=	imv-4.1.0
+CATEGORIES=	graphics
+MASTER_SITES=	${MASTER_SITE_GITHUB:=eXeC64/}
+GITHUB_PROJECT=	imv
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/eXeC64/imv
+COMMENT=	Image viewer for X11/Wayland
+LICENSE=	mit
+
+USE_TOOLS+=	gmake pkg-config
+USE_LANGUAGES=	c99
+
+MAKE_FLAGS+=	MANPREFIX=${PREFIX}/${PKGMANDIR}
+
+MAKE_FLAGS+=	BACKEND_LIBTIFF="yes"
+MAKE_FLAGS+=	BACKEND_LIBPNG="yes"
+
+.include "options.mk"
+.include "../../devel/pango/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/freeimage/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/tiff/buildlink3.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.include "../../x11/libxkbcommon/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/imv/PLIST b/imv/PLIST
new file mode 100644
index 0000000000..170f488830
--- /dev/null
+++ b/imv/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD$
+bin/imv
+bin/imv-msg
+bin/imv-wayland
+bin/imv-x11
+man/man1/imv-msg.1
+man/man1/imv.1
+man/man5/imv.5
+share/applications/imv.desktop
diff --git a/imv/distinfo b/imv/distinfo
new file mode 100644
index 0000000000..8a3aab0d10
--- /dev/null
+++ b/imv/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (imv-4.1.0.tar.gz) = 2c2bc59aab63e237178cc1cbac6d9f0d386f9b69
+RMD160 (imv-4.1.0.tar.gz) = b33143fa7595f81dbe16a3e15f4d114b40568d8c
+SHA512 (imv-4.1.0.tar.gz) = 92d7551bda55185b29724e90230dac608a82f4a45cd3cb9c7a5d261f65eede6dcdde78f5c16eecfc1242533ec8e155204189fab3cacf31ddc088707af5131b2a
+Size (imv-4.1.0.tar.gz) = 77341 bytes
diff --git a/imv/options.mk b/imv/options.mk
new file mode 100644
index 0000000000..af28c0db51
--- /dev/null
+++ b/imv/options.mk
@@ -0,0 +1,40 @@
+# $NetBSD: options.mk,v 1.1 2019/10/03 11:17:51 nia Exp $
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.imv
+PKG_SUPPORTED_OPTIONS=	svg wayland x11
+
+.include "../../devel/wayland/platform.mk"
+.if ${PLATFORM_SUPPORTS_WAYLAND} == "yes"
+PKG_SUGGESTED_OPTIONS=	svg wayland x11
+.else
+PKG_SUGGESTED_OPTIONS=	svg x11
+.endif
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Msvg)
+.  include "../../graphics/librsvg/buildlink3.mk"
+MAKE_FLAGS+=		BACKEND_LIBRSVG="yes"
+.else
+MAKE_FLAGS+=		BACKEND_LIBRSVG="no"
+.endif
+
+.if !empty(PKG_OPTIONS:Mwayland) && !empty(PKG_OPTIONS:Mx11)
+MAKE_FLAGS+=		WINDOWS="all"
+.elif !empty(PKG_OPTIONS:Mwayland)
+MAKE_FLAGS+=		WINDOWS="wayland"
+.elif !empty(PKG_OPTIONS:Mx11)
+MAKE_FLAGS+=		WINDOWS="x11"
+.else
+PKG_FAIL_REASON+=	"Must select at least one windowing system"
+.endif
+
+.if !empty(PKG_OPTIONS:Mwayland)
+.  include "../../devel/wayland/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mx11)
+.  include "../../graphics/glu/buildlink3.mk"
+.  include "../../x11/libxcb/buildlink3.mk"
+.  include "../../x11/libX11/buildlink3.mk"
+.endif


Home | Main Index | Thread Index | Old Index