summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2008-01-09 19:21:45 +0000
committerdrochner <drochner@pkgsrc.org>2008-01-09 19:21:45 +0000
commitfbb7600e7324799a59d0db4aab7e941f6deee33f (patch)
treebcf8dc0efe584c3ce53eb422cf60e2670e5f00c4
parent743a1c21198ed60785271d0ac51554f3948e079d (diff)
downloadpkgsrc-fbb7600e7324799a59d0db4aab7e941f6deee33f.tar.gz
oops, forgot to add
-rw-r--r--graphics/fotox/patches/patch-ab48
1 files changed, 48 insertions, 0 deletions
diff --git a/graphics/fotox/patches/patch-ab b/graphics/fotox/patches/patch-ab
new file mode 100644
index 00000000000..d16f008d86a
--- /dev/null
+++ b/graphics/fotox/patches/patch-ab
@@ -0,0 +1,48 @@
+$NetBSD: patch-ab,v 1.1 2008/01/09 19:21:45 drochner Exp $
+
+--- build.orig 2008-01-02 09:14:04.000000000 +0100
++++ build
+@@ -41,23 +41,6 @@ else
+ fi
+ fi
+
+-mkdir -p -m a+rx $appdirk # create install directory
+-if [ $? -ne 0 ]
+-then
+- echo "*** unable to create or access $appdirk"
+- echo " (run this script as root if necessary)"
+- exit 1
+-fi
+-
+-cp -f -r * $appdirk # copy all files there
+-if [ $? -ne 0 ]
+-then
+- echo "*** unable to copy files to install directory"
+- exit 1
+-fi
+-rm -f -r * # clean up
+-
+-cd $appdirk # build executable
+ g++ -O -Wall -o $appname $appname.cpp zfuncs.cpp \
+ $(pkg-config --cflags gtk+-2.0 --libs gtk+-2.0 gthread-2.0)
+ if [ $? -ne 0 ]; then exit 1; fi
+@@ -66,7 +49,7 @@ echo "$appname build successful"
+ chmod a+rx $appname # set access for all users
+ chmod -R a+r *
+
+-launcher=$HOME/Desktop/$appname.desktop
++launcher=$appname.desktop
+ yn=$2 # yn << parameter
+
+ if [ -z "$yn" ]
+@@ -83,8 +66,8 @@ then
+ echo "Name=$appname" >> $launcher
+ echo "Type=Application" >> $launcher
+ echo "Terminal=false" >> $launcher
+- echo "Exec=$appdirk/$appname" >> $launcher
+- echo "Icon=$appdirk/icons/$appname.png" >> $launcher
++ echo "Exec=$appdirk/bin/$appname" >> $launcher
++ echo "Icon=$appdirk/share/fotox/icons/$appname.png" >> $launcher
+ fi; fi
+
+ exit 0