diff options
author | Armin Pirkovitsch <sperber@FreeBSD.org> | 2012-07-19 17:39:58 +0000 |
---|---|---|
committer | Armin Pirkovitsch <sperber@FreeBSD.org> | 2012-07-19 17:39:58 +0000 |
commit | 91ff003b69ffe07e915e52dec5edcbe9498b6412 (patch) | |
tree | 1946c1d2bf4f7aced05d35bf57963398bd33eb38 /games/xteddy/files | |
parent | 64c8e0c6ab181452d66ae2e4487040d76880441e (diff) | |
download | ports-91ff003b69ffe07e915e52dec5edcbe9498b6412.tar.gz ports-91ff003b69ffe07e915e52dec5edcbe9498b6412.zip |
Notes
Diffstat (limited to 'games/xteddy/files')
-rw-r--r-- | games/xteddy/files/patch-Makefile.in | 11 | ||||
-rw-r--r-- | games/xteddy/files/patch-xteddy.c | 11 | ||||
-rw-r--r-- | games/xteddy/files/patch-xteddy_test | 20 | ||||
-rw-r--r-- | games/xteddy/files/patch-xtoys | 29 |
4 files changed, 42 insertions, 29 deletions
diff --git a/games/xteddy/files/patch-Makefile.in b/games/xteddy/files/patch-Makefile.in deleted file mode 100644 index 5a5eee83fdd6..000000000000 --- a/games/xteddy/files/patch-Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- Makefile.in.orig Mon Aug 2 16:11:08 1999 -+++ Makefile.in Mon Nov 14 23:31:25 2005 -@@ -73,7 +73,7 @@ - man_MANS = xteddy.1 - bin_SCRIPTS = xtoys xteddy_test - --DEFS = -DPIXMAP_PATH=\"@PIXMAP_PATH@\" -Wall -+DEFS = -DPIXMAP_PATH=\"%%DATADIR%%\" -Wall - - SUBDIRS = html images - EXTRA_DIST = $(man_MANS) $(bin_SCRIPTS) README xteddy.README xtuxxy.credit configure autogen.sh diff --git a/games/xteddy/files/patch-xteddy.c b/games/xteddy/files/patch-xteddy.c deleted file mode 100644 index eb6be3ed38de..000000000000 --- a/games/xteddy/files/patch-xteddy.c +++ /dev/null @@ -1,11 +0,0 @@ ---- xteddy.c.orig Mon Nov 14 23:21:26 2005 -+++ xteddy.c Mon Nov 14 23:22:09 2005 -@@ -17,7 +17,7 @@ - /* Changes: use Imlib instead of libxpm and load * - * different image formats */ - --#define DEFAULT_IMAGE_DIR "/usr/share/xteddy" -+#define DEFAULT_IMAGE_DIR "%%DATADIR%%" - - #include <X11/Xlib.h> - #include <X11/Xutil.h> diff --git a/games/xteddy/files/patch-xteddy_test b/games/xteddy/files/patch-xteddy_test index da245c7c9d67..990d54c96e68 100644 --- a/games/xteddy/files/patch-xteddy_test +++ b/games/xteddy/files/patch-xteddy_test @@ -1,15 +1,21 @@ ---- xteddy_test.orig Mon Nov 14 23:33:19 2005 -+++ xteddy_test Mon Nov 14 23:33:37 2005 -@@ -1,9 +1,9 @@ +--- xteddy_test.orig 2009-02-08 05:48:26.000000000 +0900 ++++ xteddy_test 2012-06-21 16:03:21.000000000 +0900 +@@ -1,15 +1,9 @@ #!/bin/sh i=0 -if [ -d /usr/share/xteddy ] ; then - for img in `ls /usr/share/xteddy` ; do -+if [ -d %%DATADIR%% ] ; then -+ for img in `ls %%DATADIR%%` ; do ++if [ -d %%PREFIX%%/share/xteddy ] ; then ++ for img in `ls %%PREFIX%%/share/xteddy` ; do i=`expr $i + 50` - xteddy -F/usr/share/xteddy/$img -geometry +$i+$i & -+ xteddy -F%%DATADIR%%/$img -geometry +$i+$i & +- done +-fi +-if [ -d /usr/local/share/xteddy ] ; then +- for img in `ls /usr/local/share/xteddy` ; do +- i=`expr $i + 50` +- xteddy -F/usr/local/share/xteddy/$img -geometry +$i+$i & ++ xteddy -F%%PREFIX%%/share/xteddy/$img -geometry +$i+$i & done fi - if [ -d /usr/local/share/xteddy ] ; then + diff --git a/games/xteddy/files/patch-xtoys b/games/xteddy/files/patch-xtoys new file mode 100644 index 000000000000..94886bd2873a --- /dev/null +++ b/games/xteddy/files/patch-xtoys @@ -0,0 +1,29 @@ +--- xtoys.orig 2009-02-08 05:48:26.000000000 +0900 ++++ xtoys 2012-06-21 16:03:49.000000000 +0900 +@@ -1,17 +1,16 @@ +-#!/bin/bash ++#!/bin/sh + # +-# /usr/bin/X11/xtoys -- puts a random cuddly toy onto desktop ++# %%PREFIX%%/bin/xtoys -- puts a random cuddly toy onto desktop + # + # Thanks to Andrew Stribblehill <a.d.stribblehill@dur.ac.uk> + # who supported this script + # +-if [ -d /usr/local/share/xteddy ] ; then +- images=(`ls /usr/share/xteddy` `ls /usr/local/share/xteddy 2> /dev/null`) +-else +- images=(`ls /usr/share/xteddy`) +-fi ++i=0 ++for img in `ls %%PREFIX%%/share/xteddy`; do ++ images[$i]=$img ++ i=`expr $i + 1` ++done + +-num=${#images[*]} +-choice=`expr $RANDOM % $num` ++choice=`expr $RANDOM % $i` + +-/usr/games/xteddy -F${images[choice]} $* ++%%PREFIX%%/bin/xteddy -F${images[choice]} $* |