aboutsummaryrefslogtreecommitdiff
path: root/games/tali
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2018-12-15 21:43:49 +0000
committerKoop Mast <kwm@FreeBSD.org>2018-12-15 21:43:49 +0000
commitee59a27b6b6c84ba6610fdb24594cf8fab6f681a (patch)
treecc8c00de55c5fd4aa8f7c1332b96c8b3881c365b /games/tali
parent45ee8ac1cc7c6ec687337de170cdc79f00e4b99d (diff)
downloadports-ee59a27b6b6c84ba6610fdb24594cf8fab6f681a.tar.gz
ports-ee59a27b6b6c84ba6610fdb24594cf8fab6f681a.zip
Make sure share/games gets created and removed. Otherwise there might be
chicken & egg issues. While here fix tali score files. Reported by: mandree@, antoine@
Notes
Notes: svn path=/head/; revision=487548
Diffstat (limited to 'games/tali')
-rw-r--r--games/tali/Makefile3
-rw-r--r--games/tali/pkg-plist3
2 files changed, 6 insertions, 0 deletions
diff --git a/games/tali/Makefile b/games/tali/Makefile
index 0c554db68c5d..805320b8c55a 100644
--- a/games/tali/Makefile
+++ b/games/tali/Makefile
@@ -25,4 +25,7 @@ CONFIGURE_ARGS= --localstatedir=${PREFIX}/share
GLIB_SCHEMAS= org.gnome.tali.gschema.xml
+post-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/games
+
.include <bsd.port.mk>
diff --git a/games/tali/pkg-plist b/games/tali/pkg-plist
index 0f84c4e4539b..66db9b2aadbe 100644
--- a/games/tali/pkg-plist
+++ b/games/tali/pkg-plist
@@ -2,6 +2,8 @@ bin/tali
man/man6/tali.6.gz
share/appdata/tali.appdata.xml
share/applications/tali.desktop
+@unexec [ -s %D/share/games/gtali.Colors.scores ] || rm -f %D/share/games/gtali.Colors.scores
+@unexec [ -s %D/share/games/gtali.Regular.scores ] || rm -f %D/share/games/gtali.Regular.scores
share/help/C/tali/figures/mainwindow.png
share/help/C/tali/figures/preferences.png
share/help/C/tali/index.docbook
@@ -193,3 +195,4 @@ share/locale/zh_TW/LC_MESSAGES/tali.mo
%%DATADIR%%/kismet4.svg
%%DATADIR%%/kismet5.svg
%%DATADIR%%/kismet6.svg
+@dir share/games