summaryrefslogtreecommitdiff
blob: b58706807488212d7d96c808b8d86c89c60ad569 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
diff -U1 -r fotoxx-11.11.1.orig/Makefile fotoxx-11.11.1/Makefile
--- fotoxx-11.11.1.orig/Makefile	2011-11-05 12:30:36.000000000 +0700
+++ fotoxx-11.11.1/Makefile	2011-11-06 16:06:23.000000000 +0700
@@ -5,4 +5,4 @@
 # defaults for parameters that may be pre-defined
-CXXFLAGS ?= -O3 -g -Wall
-LDFLAGS ?= -O3 -g -Wall -rdynamic
+CXXFLAGS += -Wall
+LDFLAGS += -rdynamic
 PREFIX ?= /usr
@@ -14,3 +14,3 @@
 LOCALESDIR = $(SHAREDIR)/locales
-DOCDIR = $(PREFIX)/share/doc/fotoxx
+DOCDIR = $(PREFIX)/share/doc/$(PF)
 MANDIR = $(PREFIX)/share/man/man1
@@ -18,3 +18,3 @@
 
-CFLAGS = $(CXXFLAGS) -c `pkg-config --cflags gtk+-2.0`
+CFLAGS = $(CXXFLAGS) -c -DPF=\"$(PF)\" `pkg-config --cflags gtk+-2.0`
 LIBS = `pkg-config --libs gtk+-2.0 gthread-2.0`
@@ -73,5 +73,2 @@
 	rm -f fotoxx.1.gz
-	# menu (desktop) file
-	cp -f desktop $(DESTDIR)$(MENUFILE)
-	xdg-desktop-menu install $(DESTDIR)$(MENUFILE)
 
diff -U1 -r fotoxx-11.11.1.orig/zfuncs.cc fotoxx-11.11.1/zfuncs.cc
--- fotoxx-11.11.1.orig/zfuncs.cc	2011-11-05 12:30:36.000000000 +0700
+++ fotoxx-11.11.1/zfuncs.cc	2011-11-06 16:08:26.000000000 +0700
@@ -3119,3 +3119,3 @@
    strncatv(zlocalesdir,199,work,"/share/",zappname,"/locales",null);      //  /installoc/share/appname/locales
-   strncatv(zdocdir,199,work,"/share/doc/",zappname,null);                 //  /installoc/share/doc/appname
+   strncatv(zdocdir,199,work,"/share/doc/",PF,null);                       //  /installoc/share/doc/appname