aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Piotrowski <0mp@FreeBSD.org>2021-10-01 12:54:23 +0000
committerMateusz Piotrowski <0mp@FreeBSD.org>2021-10-01 13:01:46 +0000
commit42eaef8170415da13167c697017ef5231e203fac (patch)
tree9b9bd35b9dfbfb38a6bd5dab3f66acb5fce38497
parent639c2d3d3b0380c1a96a82f794270195dd8ac37e (diff)
downloadports-42eaef8170415da13167c697017ef5231e203fac.tar.gz
ports-42eaef8170415da13167c697017ef5231e203fac.zip
graphics/nsxiv: New port
nsxiv is a fork of now unmaintained sxiv with the purpose of maintaining it and adding simple, sensible features.
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/nsxiv/Makefile40
-rw-r--r--graphics/nsxiv/distinfo5
-rw-r--r--graphics/nsxiv/pkg-descr16
-rw-r--r--graphics/nsxiv/pkg-plist8
5 files changed, 70 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index c590d477ee53..1453852d8596 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -569,6 +569,7 @@
SUBDIR += nomacs
SUBDIR += nplot
SUBDIR += npretty
+ SUBDIR += nsxiv
SUBDIR += nurbs++
SUBDIR += nvidia-texture-tools
SUBDIR += ocaml-images
diff --git a/graphics/nsxiv/Makefile b/graphics/nsxiv/Makefile
new file mode 100644
index 000000000000..b21e8e732396
--- /dev/null
+++ b/graphics/nsxiv/Makefile
@@ -0,0 +1,40 @@
+PORTNAME= nsxiv
+DISTVERSIONPREFIX= v
+DISTVERSION= 27.1-20
+DISTVERSIONSUFFIX= -g065562d
+CATEGORIES= graphics
+PATCH_SITES= https://github.com/0mp/nsxiv/commit/
+PATCHFILES= d44674845ac41621cdaf69f6898b81fac435233f.patch:-p1
+
+MAINTAINER= 0mp@FreeBSD.org
+COMMENT= Simple X image viewer
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libexif.so:graphics/libexif \
+ libfontconfig.so:x11-fonts/fontconfig \
+ libgif.so:graphics/giflib \
+ libImlib2.so:graphics/imlib2 \
+ libinotify.so:devel/libinotify
+
+USES= desktop-file-utils gmake localbase:ldflags pkgconfig xorg
+USE_GITHUB= yes
+USE_XORG= x11 xft
+
+MAKE_ARGS= PREFIX=${PREFIX}
+MAKE_ENV= OPTIONAL_LIBS=-linotify
+
+INSTALL_TARGET= install-all
+
+OPTIONS_DEFINE= DOCS
+
+# These examples files belong to the project's documentation. Let's leave them
+# in the doc directory for simplicity.
+PORTDOCS= examples/image-info \
+ examples/key-handler
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/graphics/nsxiv/distinfo b/graphics/nsxiv/distinfo
new file mode 100644
index 000000000000..3b27508ac534
--- /dev/null
+++ b/graphics/nsxiv/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1633092026
+SHA256 (nsxiv-nsxiv-v27.1-20-g065562d_GH0.tar.gz) = 178241206a49add6cdc337f3fa112dd2c53d87ba6025cf54bb8f37ba563bfa02
+SIZE (nsxiv-nsxiv-v27.1-20-g065562d_GH0.tar.gz) = 55969
+SHA256 (d44674845ac41621cdaf69f6898b81fac435233f.patch) = ad31030cdcbc9cdf4dbb5bb199e370d34b14e1735409624ecdc7d35643cb0b08
+SIZE (d44674845ac41621cdaf69f6898b81fac435233f.patch) = 1201
diff --git a/graphics/nsxiv/pkg-descr b/graphics/nsxiv/pkg-descr
new file mode 100644
index 000000000000..334104d66350
--- /dev/null
+++ b/graphics/nsxiv/pkg-descr
@@ -0,0 +1,16 @@
+Neo (or New or Not) Simple (or Small or Suckless) X Image Viewer is a fork of
+now unmaintained sxiv, the Simple X Image Viewer, with the purpose of
+maintaining it and adding simple, sensible features. nsxiv is free software
+licensed under GPLv2 and aims to be easy to modify and customize.
+
+Some of its features are:
+
+- Basic image operations, e.g. zooming, panning, rotating
+- Customizable key and mouse button mappings (in config.h)
+- Thumbnail mode: grid of selectable previews of all images
+- Ability to cache thumbnails for fast re-loading
+- Basic support for multi-frame images
+- Load all frames from GIF files and play GIF animations
+- Display image information in status bar
+
+WWW: https://github.com/nsxiv/nsxiv
diff --git a/graphics/nsxiv/pkg-plist b/graphics/nsxiv/pkg-plist
new file mode 100644
index 000000000000..f58c6e327c42
--- /dev/null
+++ b/graphics/nsxiv/pkg-plist
@@ -0,0 +1,8 @@
+bin/nsxiv
+share/applications/nsxiv.desktop
+share/icons/hicolor/128x128/apps/nsxiv.png
+share/icons/hicolor/16x16/apps/nsxiv.png
+share/icons/hicolor/32x32/apps/nsxiv.png
+share/icons/hicolor/48x48/apps/nsxiv.png
+share/icons/hicolor/64x64/apps/nsxiv.png
+share/man/man1/nsxiv.1.gz