summaryrefslogtreecommitdiff
path: root/games-board/xgammon/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-09-16 09:32:48 +0100
commit9ee6d97c2883d42f204a533a8bc1f4562df778fb (patch)
treeb690ddc0ca30f1472887edbb0b8313629bfcbbb2 /games-board/xgammon/files
parentb17a3ef12038de50228bade1f05502c74e135321 (diff)
gentoo resync : 16.09.2020
Diffstat (limited to 'games-board/xgammon/files')
-rw-r--r--games-board/xgammon/files/xgammon-0.98-r2-config.patch (renamed from games-board/xgammon/files/xgammon-0.98-config.patch)21
1 files changed, 12 insertions, 9 deletions
diff --git a/games-board/xgammon/files/xgammon-0.98-config.patch b/games-board/xgammon/files/xgammon-0.98-r2-config.patch
index 6546cd6f90a3..8e9fc68fab2e 100644
--- a/games-board/xgammon/files/xgammon-0.98-config.patch
+++ b/games-board/xgammon/files/xgammon-0.98-r2-config.patch
@@ -1,14 +1,8 @@
---- a/xgammon.ad
-+++ b/xgammon.ad
-@@ -67,4 +67,4 @@
- xgammon.buttonmove: false
- xgammon.stonesteps: 5
- xgammon.delaytime: 5
--xgammon.database: lib/xgammon.db
-+xgammon.database: /usr/lib/X11/xgammon/xgammon.db
+diff --git a/Imakefile b/Imakefile
+index 332deee..1c43ff5 100644
--- a/Imakefile
+++ b/Imakefile
-@@ -12,9 +12,9 @@
+@@ -12,9 +12,9 @@ SRCS = allow.c drawing.c load.c rollout.c \
ComplexProgramTarget(xgammon)
InstallAppDefaults(XGammon)
@@ -21,3 +15,12 @@
xgammon.o: xgammon.c
$(CC) $(CFLAGS) -DDATABASE=\"$(LIBDIR)/xgammon/xgammon.db\" -c xgammon.c
+@@ -35,7 +35,7 @@ lib/xgammon.db:
+ @echo "Database complete"
+
+ XGammon.ad: xgammon.ad
+- $(LN) xgammon.ad XGammon.ad
++ sed -e "s:lib/xgammon.db:$(LIBDIR)/xgammon/xgammon.db:" xgammon.ad >XGammon.ad
+
+ xgammon.man: xgammon.6
+ $(LN) xgammon.6 xgammon.man