diff --git a/graphics/sxiv/Makefile b/graphics/sxiv/Makefile new file mode 100644 index 00000000000..01fd590946d --- /dev/null +++ b/graphics/sxiv/Makefile @@ -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 + +# 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 diff --git a/graphics/sxiv/distinfo b/graphics/sxiv/distinfo new file mode 100644 index 00000000000..23a3d5eaabe --- /dev/null +++ b/graphics/sxiv/distinfo @@ -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 diff --git a/graphics/sxiv/patches/patch-Makefile b/graphics/sxiv/patches/patch-Makefile new file mode 100644 index 00000000000..7bd7e1c3d63 --- /dev/null +++ b/graphics/sxiv/patches/patch-Makefile @@ -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 diff --git a/graphics/sxiv/patches/patch-main_c b/graphics/sxiv/patches/patch-main_c new file mode 100644 index 00000000000..a798b58a94d --- /dev/null +++ b/graphics/sxiv/patches/patch-main_c @@ -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 + #include + #include ++#include + #include + #include + #include diff --git a/graphics/sxiv/pkg/DESCR b/graphics/sxiv/pkg/DESCR new file mode 100644 index 00000000000..5d6b15636d9 --- /dev/null +++ b/graphics/sxiv/pkg/DESCR @@ -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. diff --git a/graphics/sxiv/pkg/PLIST b/graphics/sxiv/pkg/PLIST new file mode 100644 index 00000000000..ab86b8d470f --- /dev/null +++ b/graphics/sxiv/pkg/PLIST @@ -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