Import sxiv-1.0.
sxiv is an alternative to feh and qiv. Its only dependencies besides xlib are imlib2 and giflib. The primary goal for writing sxiv is to create an image viewer, which only has the most basic features required for fast image viewing (the ones I want). It has vi key bindings and works nicely with tiling window managers. Its code base should be kept small and clean to make it easy for you to dig into it and customize it for your needs. From Matthew Via, with tweaks by me/Antoine. ok ajacoutot@
This commit is contained in:
parent
fe79b79bb5
commit
ff26e255c7
31
graphics/sxiv/Makefile
Normal file
31
graphics/sxiv/Makefile
Normal file
@ -0,0 +1,31 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/02/27 08:45:50 bentley Exp $
|
||||
|
||||
COMMENT = simple (or small or suckless) X Image Viewer
|
||||
|
||||
DISTNAME = sxiv-1.0
|
||||
|
||||
CATEGORIES = graphics
|
||||
|
||||
HOMEPAGE = https://github.com/muennich/sxiv
|
||||
|
||||
MAINTAINER = Matthew Via <via@matthewvia.info>
|
||||
|
||||
# GPLv2+
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM = Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
WANTLIB += Imlib2 X11 c
|
||||
|
||||
LIB_DEPENDS = graphics/imlib2
|
||||
|
||||
MAKE_FLAGS = CC=${CC} MANPREFIX=${PREFIX}/man \
|
||||
CFLAGS="${CFLAGS} -I${X11BASE}/include -I${PREFIX}/include" \
|
||||
LDFLAGS="-L${PREFIX}/lib -L${X11BASE}/lib -lX11 -lImlib2"
|
||||
|
||||
MASTER_SITES = https://github.com/muennich/sxiv/downloads/
|
||||
|
||||
NO_REGRESS = Yes
|
||||
|
||||
.include <bsd.port.mk>
|
5
graphics/sxiv/distinfo
Normal file
5
graphics/sxiv/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (sxiv-1.0.tar.gz) = yIfgrx5NWhAbKFpG0ojEGQ==
|
||||
RMD160 (sxiv-1.0.tar.gz) = 0r72IRm2kcu17I6B3l1T4J5XPmQ=
|
||||
SHA1 (sxiv-1.0.tar.gz) = 4p4zw4/SpsiiyzsnB3aFkyiqjg4=
|
||||
SHA256 (sxiv-1.0.tar.gz) = +kkYnXvBOb09xQqk6Tn+RIDFJBF+2J26ej9U2lATiF8=
|
||||
SIZE (sxiv-1.0.tar.gz) = 33568
|
36
graphics/sxiv/patches/patch-Makefile
Normal file
36
graphics/sxiv/patches/patch-Makefile
Normal file
@ -0,0 +1,36 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2012/02/27 08:45:50 bentley Exp $
|
||||
--- Makefile.orig Mon Oct 31 08:56:58 2011
|
||||
+++ Makefile Mon Feb 27 01:16:58 2012
|
||||
@@ -22,12 +22,12 @@ options:
|
||||
|
||||
.c.o:
|
||||
@echo "CC $<"
|
||||
- @$(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c -o $@ $<
|
||||
+ $(CC) $(CFLAGS) -DVERSION=\"$(VERSION)\" -c -o $@ $<
|
||||
|
||||
$(OBJ) config: Makefile config.h
|
||||
|
||||
config: config.c
|
||||
- @$(CC) $(CFLAGS) -o $@ $@.c
|
||||
+ $(CC) $(CFLAGS) -o $@ $@.c
|
||||
|
||||
config.h:
|
||||
@echo "creating $@ from config.def.h"
|
||||
@@ -35,7 +35,7 @@ config.h:
|
||||
|
||||
sxiv: $(OBJ) config
|
||||
@echo "CC -o $@"
|
||||
- @$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) $$(./config -l)
|
||||
+ $(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS) $$(./config -l)
|
||||
|
||||
clean:
|
||||
@echo "cleaning"
|
||||
@@ -52,7 +52,7 @@ dist: clean
|
||||
|
||||
install: all
|
||||
@echo "installing executable file to $(DESTDIR)$(PREFIX)/bin"
|
||||
- @install -D -m 755 sxiv $(DESTDIR)$(PREFIX)/bin/sxiv
|
||||
+ @install -m 755 sxiv $(DESTDIR)$(PREFIX)/bin/sxiv
|
||||
@echo "installing manual page to $(DESTDIR)$(MANPREFIX)/man1"
|
||||
@mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
||||
@sed "s/VERSION/$(VERSION)/g" sxiv.1 > $(DESTDIR)$(MANPREFIX)/man1/sxiv.1
|
11
graphics/sxiv/patches/patch-main_c
Normal file
11
graphics/sxiv/patches/patch-main_c
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-main_c,v 1.1.1.1 2012/02/27 08:45:50 bentley Exp $
|
||||
--- main.c.orig Mon Oct 31 10:57:09 2011
|
||||
+++ main.c Sun Feb 26 16:34:43 2012
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
+#include <sys/select.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
#include <X11/Xutil.h>
|
7
graphics/sxiv/pkg/DESCR
Normal file
7
graphics/sxiv/pkg/DESCR
Normal file
@ -0,0 +1,7 @@
|
||||
sxiv is an alternative to feh and qiv. Its only dependencies besides
|
||||
xlib are imlib2 and giflib. The primary goal for writing sxiv is to
|
||||
create an image viewer, which only has the most basic features required
|
||||
for fast image viewing (the ones I want). It has vi key bindings and
|
||||
works nicely with tiling window managers. Its code base should be kept
|
||||
small and clean to make it easy for you to dig into it and customize it
|
||||
for your needs.
|
3
graphics/sxiv/pkg/PLIST
Normal file
3
graphics/sxiv/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/02/27 08:45:50 bentley Exp $
|
||||
@bin bin/sxiv
|
||||
@man man/man1/sxiv.1
|
Loading…
Reference in New Issue
Block a user