Description: Fix install locations for Debian
Last-Update: 2014-04-02

--- pgn2web-0.4.orig/cli.c
+++ pgn2web-0.4/cli.c
@@ -30,7 +30,7 @@
 
 /* default installation path */
 #ifndef INSTALL_PATH
-#define INSTALL_PATH "/usr/local/pgn2web/"
+#define INSTALL_PATH "/usr/share/pgn2web/"
 #endif
 
 char usage[] = "usage: pgn2web\n"
--- pgn2web-0.4.orig/gui.h
+++ pgn2web-0.4/gui.h
@@ -17,7 +17,7 @@ const wxChar SEPERATOR = wxT('/');
 
 // default installation path (*nix)
 #ifndef INSTALL_PATH
-#define INSTALL_PATH "/usr/local/pgn2web/"
+#define INSTALL_PATH "/usr/share/pgn2web/"
 #endif
 
 //define event ids
--- pgn2web-0.4.orig/makefile
+++ pgn2web-0.4/makefile
@@ -38,10 +38,10 @@ clean:
 	rm -f pgn2web p2wgui *.o *.do *~ *# *.html
 
 install:
-	if [ ! -e /usr/local/pgn2web ]; then mkdir /usr/local/pgn2web; fi
-	cp -r images /usr/local/pgn2web/
-	cp -r templates /usr/local/pgn2web/
-	cp pgn2web /usr/local/pgn2web/
-	cp p2wgui /usr/local/pgn2web/
-	ln -fs /usr/local/pgn2web/pgn2web /usr/bin/
-	ln -fs /usr/local/pgn2web/p2wgui /usr/bin/
\ No newline at end of file
+	if [ ! -e $(DESTDIR)/usr/share/pgn2web ]; then mkdir $(DESTDIR)/usr/share/pgn2web; fi
+	cp -r images $(DESTDIR)/usr/share/pgn2web/
+	cp -r templates $(DESTDIR)/usr/share/pgn2web/
+	cp pgn2web $(DESTDIR)/usr/bin/
+	cp p2wgui $(DESTDIR)/usr/bin/
+#	ln -fs /usr/share/pgn2web/pgn2web /usr/bin/
+#	ln -fs /usr/share/pgn2web/p2wgui /usr/bin/
