aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-12-03 21:37:16 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-12-03 21:37:16 +0800
commit1d51c4404abfb994b31d984da57d70a093637f98 (patch)
treee1355fb013a87fab64151c1825afa653dab44a41 /games
parent81e7ab13aa16ae25fb8ec4834473181c2788cdd6 (diff)
downloadfreebsd-ports-gnome-1d51c4404abfb994b31d984da57d70a093637f98.tar.gz
freebsd-ports-gnome-1d51c4404abfb994b31d984da57d70a093637f98.tar.zst
freebsd-ports-gnome-1d51c4404abfb994b31d984da57d70a093637f98.zip
- Simplify MASTER_SITES
- Place data files into ${DATADIR} - Fix default font name - Simplify installation and plist
Diffstat (limited to 'games')
-rw-r--r--games/xmemory/Makefile14
-rw-r--r--games/xmemory/files/patch-Imakefile13
-rw-r--r--games/xmemory/pkg-plist8
3 files changed, 19 insertions, 16 deletions
diff --git a/games/xmemory/Makefile b/games/xmemory/Makefile
index 836d00ec69ee..9c361c139096 100644
--- a/games/xmemory/Makefile
+++ b/games/xmemory/Makefile
@@ -5,19 +5,19 @@ PORTNAME= xmemory
PORTVERSION= 3.7
PORTREVISION= 2
CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_XCONTRIB}
-MASTER_SITE_SUBDIR= games/multiplayer
+MASTER_SITES= XCONTRIB/games/multiplayer
MAINTAINER= ports@FreeBSD.org
COMMENT= Multi-player memory game
USES= imake tar:tgz
USE_XORG= x11 xext
+MAKE_ENV= DATADIR="${DATADIR}"
-post-install:
- @${MKDIR} ${STAGEDIR}${PREFIX}/lib/X11/xmemory
- ${INSTALL_DATA} ${WRKSRC}/home.mem ${WRKSRC}/sports.mem \
- ${STAGEDIR}${PREFIX}/lib/X11/xmemory
- ${LN} -sf home.mem ${STAGEDIR}${PREFIX}/lib/X11/xmemory/default.mem
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.man ${STAGEDIR}${MAN1PREFIX}/man/man1/${PORTNAME}.1
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.mem ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>
diff --git a/games/xmemory/files/patch-Imakefile b/games/xmemory/files/patch-Imakefile
index 0bcf8edc5e2f..8eb94efff4ff 100644
--- a/games/xmemory/files/patch-Imakefile
+++ b/games/xmemory/files/patch-Imakefile
@@ -1,11 +1,16 @@
---- Imakefile.orig Thu Jul 18 08:02:56 1996
-+++ Imakefile Sun Sep 8 03:41:59 2002
-@@ -8,12 +8,12 @@
+--- Imakefile.orig 1996-07-18 19:02:56.000000000 +0400
++++ Imakefile 2014-12-03 03:06:29.000000000 +0300
+@@ -4,16 +4,16 @@
+
+ XCOMM Default font pattern to be used when creating letter or smiley tiles
+
+- FONT_DEFAULT = \"-bitstream-charter-bold-r-*\"
++ FONT_DEFAULT = \"-bitstream-bitstream\ charter-bold-r-*\"
XCOMM where to search for data-files, when not found in current dir
- XMEMORYDIR = \"/usr/games/lib/xmemory\"
-+ XMEMORYDIR = \"${LIBDIR}/xmemory\"
++ XMEMORYDIR = \"${DATADIR}/xmemory\"
XCOMM set the compiler that you like,
XCOMM gcc should suit, since the libraries are not needed.
diff --git a/games/xmemory/pkg-plist b/games/xmemory/pkg-plist
index 080527f5ce11..0bf75d241bcb 100644
--- a/games/xmemory/pkg-plist
+++ b/games/xmemory/pkg-plist
@@ -1,7 +1,5 @@
bin/xmemory
man/man1/xmemory.1.gz
-lib/X11/xmemory/sports.mem
-lib/X11/xmemory/home.mem
-@exec ln -sf %f %B/default.mem
-@unexec rm %B/default.mem
-@dirrm lib/X11/xmemory
+%%DATADIR%%/default.mem
+%%DATADIR%%/home.mem
+%%DATADIR%%/sports.mem