void-packages/srcpkgs/sxiv/patches/sxiv-1.3-makefile.patch
2014-10-26 02:26:11 +02:00

50 lines
1.9 KiB
Diff

--- Makefile.orig 2014-10-24 12:25:18.000000000 +0200
+++ Makefile 2014-10-26 01:19:33.040945097 +0200
@@ -3,10 +3,10 @@
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
-CC = gcc
-CFLAGS = -std=c99 -Wall -pedantic -O2
-CPPFLAGS = -I$(PREFIX)/include -D_XOPEN_SOURCE=500 -DHAVE_LIBEXIF -DHAVE_GIFLIB
-LDFLAGS = -L$(PREFIX)/lib
+CC ?= gcc
+CFLAGS += -std=c99 -Wall -pedantic -O2
+CPPFLAGS += -I$(PREFIX)/include -D_XOPEN_SOURCE=500 -DHAVE_LIBEXIF -DHAVE_GIFLIB
+LDFLAGS += -L$(PREFIX)/lib
LIBS = -lX11 -lImlib2 -lexif -lgif
SRC = commands.c image.c main.c options.c thumbs.c util.c window.c
@@ -43,9 +43,9 @@
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
sed "s!PREFIX!$(PREFIX)!g; s!VERSION!$(VERSION)!g" sxiv.1 > $(DESTDIR)$(MANPREFIX)/man1/sxiv.1
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/sxiv.1
- mkdir -p $(DESTDIR)$(PREFIX)/share/sxiv/exec
- cp exec/* $(DESTDIR)$(PREFIX)/share/sxiv/exec/
- chmod 755 $(DESTDIR)$(PREFIX)/share/sxiv/exec/*
+ mkdir -p $(DESTDIR)$(PREFIX)/share/examples/sxiv
+ cp exec/* $(DESTDIR)$(PREFIX)/share/examples/sxiv/
+ chmod 755 $(DESTDIR)$(PREFIX)/share/examples/sxiv/*
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/sxiv
--- sxiv.1.orig 2014-10-24 12:25:18.000000000 +0200
+++ sxiv.1 2014-10-26 01:18:00.053107605 +0200
@@ -351,7 +351,7 @@
and the first argument to this script is the path of the loaded image.
.P
There is also an example script installed together with sxiv as
-.IR PREFIX/share/sxiv/exec/image-info .
+.IR PREFIX/share/examples/sxiv/image-info .
.SH EXTERNAL KEY HANDLER
Additional external keyboard commands can be defined using a handler program
located in
@@ -368,7 +368,7 @@
keysym as listed in /usr/include/X11/keysymdef.h without the "XK_" prefix.
There is also an example script installed together with sxiv as
-.IR PREFIX/share/sxiv/exec/key-handler .
+.IR PREFIX/share/examples/sxiv/key-handler .
.SH THUMBNAIL CACHING
sxiv stores all thumbnails under
.IR $XDG_CACHE_HOME/sxiv/ .