diff options
Diffstat (limited to 'media-gfx/fotoxx/files/fotoxx-14.08.patch')
-rw-r--r-- | media-gfx/fotoxx/files/fotoxx-14.08.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/media-gfx/fotoxx/files/fotoxx-14.08.patch b/media-gfx/fotoxx/files/fotoxx-14.08.patch new file mode 100644 index 000000000000..820ef1834ecd --- /dev/null +++ b/media-gfx/fotoxx/files/fotoxx-14.08.patch @@ -0,0 +1,50 @@ +diff -r -U1 fotoxx-14.08.orig/Makefile fotoxx-14.08/Makefile +--- fotoxx-14.08.orig/Makefile 2014-08-01 18:26:48.000000000 +0700 ++++ fotoxx-14.08/Makefile 2014-08-03 16:11:40.201653715 +0700 +@@ -5,5 +5,4 @@ + # defaults for parameters that may be pre-defined +-CXXFLAGS ?= -O2 -Wall -ggdb +- +-LDFLAGS ?= -rdynamic ++CXXFLAGS += -Wall ++LDFLAGS += -rdynamic + PREFIX ?= /usr +@@ -16,3 +15,3 @@ + LOCALESDIR = $(SHAREDIR)/locales +-DOCDIR = $(PREFIX)/share/doc/fotoxx ++DOCDIR = $(PREFIX)/share/doc/$(PF) + MANDIR = $(PREFIX)/share/man/man1 +@@ -21,4 +20,4 @@ + +-CFLAGS = $(CXXFLAGS) -c `pkg-config --cflags gtk+-3.0` +-LIBS = `pkg-config --libs gtk+-3.0` ++CFLAGS = $(CXXFLAGS) -c -DPF=\"$(PF)\" `pkg-config --cflags gtk+-3.0` ++LIBS = `pkg-config --libs gtk+-3.0` -lpthread + +@@ -73,3 +72,2 @@ + rm -f $(DESTDIR)$(MANDIR)/fotoxx.1.gz +- xdg-desktop-menu uninstall $(DESTDIR)$(MENUFILE) + rm -f $(DESTDIR)$(MENUFILE) +@@ -80,2 +78,3 @@ + mkdir -p $(DESTDIR)$(DOCDIR) ++ mkdir -p $(DESTDIR)$(APPDATADIR) + mkdir -p $(DESTDIR)$(MANDIR) +@@ -94,6 +93,2 @@ + rm -f fotoxx.1.gz +- # menu (desktop) file +- cp -f desktop $(DESTDIR)$(MENUFILE) +- # chmod +x $(DESTDIR)$(MENUFILE) +- xdg-desktop-menu install --novendor $(DESTDIR)$(MENUFILE) + +@@ -104,3 +99,2 @@ + rm -f $(DESTDIR)$(MANDIR)/fotoxx.1.gz +- xdg-desktop-menu uninstall $(DESTDIR)$(MENUFILE) + rm -f $(DESTDIR)$(MENUFILE) +diff -r -U1 fotoxx-14.08.orig/zfuncs.cc fotoxx-14.08/zfuncs.cc +--- fotoxx-14.08.orig/zfuncs.cc 2014-08-01 18:26:48.000000000 +0700 ++++ fotoxx-14.08/zfuncs.cc 2014-08-03 16:13:01.706650287 +0700 +@@ -3973,3 +3973,3 @@ + strncatv(zlocalesdir,199,work,"/share/",zappname,"/locales",null); // /prefix/share/appname/locales +- strncatv(zdocdir,199,work,"/share/doc/",zappname,null); // /prefix/share/doc/appname ++ strncatv(zdocdir,199,work,"/share/doc/",PF,null); // /prefix/share/doc/$(PF) + |