aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorNeil Blakey-Milner <nbm@FreeBSD.org>2000-08-06 16:02:28 +0000
committerNeil Blakey-Milner <nbm@FreeBSD.org>2000-08-06 16:02:28 +0000
commitda1dca62db6973f07379e7e4e0880200665c7637 (patch)
treeb7f7f93e66cc780e17d5ab6ffb0c4f6875f649d9 /games
parent456782fa52558b4aef4cbb8a8bdd34b790899fc8 (diff)
downloadports-da1dca62db6973f07379e7e4e0880200665c7637.tar.gz
ports-da1dca62db6973f07379e7e4e0880200665c7637.zip
Stylize the Makefile, support PREFIX properly, and strip binary.
PR: ports/20422 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp> (Ports Fury!)
Notes
Notes: svn path=/head/; revision=31346
Diffstat (limited to 'games')
-rw-r--r--games/xmines/Makefile18
-rw-r--r--games/xmines/files/patch-aa14
-rw-r--r--games/xmines/files/patch-ab11
3 files changed, 22 insertions, 21 deletions
diff --git a/games/xmines/Makefile b/games/xmines/Makefile
index cc5a45699625..a3e977916688 100644
--- a/games/xmines/Makefile
+++ b/games/xmines/Makefile
@@ -5,21 +5,21 @@
# $FreeBSD$
#
-PORTNAME= xmines
-PORTVERSION= 1.0
-CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_SUNSITE}
+PORTNAME= xmines
+PORTVERSION= 1.0
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= games/strategy
-DISTNAME= ${PORTNAME}
+DISTNAME= ${PORTNAME}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
-USE_X_PREFIX= yes
+USE_X_PREFIX= yes
post-install:
.if !defined(NOPORTDOCS)
- @ ${MKDIR} ${PREFIX}/share/doc/xmines
- @ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xmines
+ @${MKDIR} ${PREFIX}/share/doc/xmines
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/xmines
.endif
.include <bsd.port.mk>
diff --git a/games/xmines/files/patch-aa b/games/xmines/files/patch-aa
index 32068aeb0f3b..b31bdc3f5e28 100644
--- a/games/xmines/files/patch-aa
+++ b/games/xmines/files/patch-aa
@@ -1,5 +1,5 @@
---- Makefile Fri Dec 3 17:22:38 1993
-+++ /home/andy/tmp/wrk/Makefile Wed Aug 18 13:51:45 1999
+--- Makefile.orig Fri Dec 3 23:22:38 1993
++++ Makefile Sat Aug 5 07:47:54 2000
@@ -3,20 +3,20 @@
#
# make clean removes all temporary files.
@@ -10,12 +10,12 @@
-LIBRARY = /usr/X386/lib
-BIN = /usr/X386/bin
-SCOREFILES = /usr/X386/lib/X11/games
-+#CFLAGS = -O
++CFLAGS += -DSCOREfILE=\"$(SCOREFILES)/scores\"
+CC ?= gcc
+INCLUDE = ${X11BASE}/include
+LIBRARY = ${X11BASE}/lib
-+BIN = ${X11BASE}/bin
-+SCOREFILES = ${X11BASE}/share/xmines
++BIN = ${PREFIX}/bin
++SCOREFILES = ${PREFIX}/share/xmines
.c.o:
$(CC) $(CFLAGS) -I $(INCLUDE) -c $<
@@ -37,5 +37,5 @@
- install -g games -o games -m 0664 scores/scores $(SCOREFILES)/xbomb-scores
- install -g games -o games -m 2755 xbombs $(BIN)
+ mkdir -p $(SCOREFILES)
-+ install -g games -o games -m 0666 scores/scores $(SCOREFILES)/scores
-+ install -g games -o games -m 0755 xmines $(BIN)
++ ${INSTALL} -g games -o games -m 0666 scores/scores $(SCOREFILES)/scores
++ ${INSTALL} -s -g games -o games -m 0755 xmines $(BIN)
diff --git a/games/xmines/files/patch-ab b/games/xmines/files/patch-ab
index 6661c8c59f6e..ac01cec8dd1e 100644
--- a/games/xmines/files/patch-ab
+++ b/games/xmines/files/patch-ab
@@ -1,11 +1,12 @@
---- score.c Fri Dec 3 17:18:35 1993
-+++ /home/andy/tmp/wrk/score.c Wed Aug 18 13:21:33 1999
-@@ -6,7 +6,7 @@
+--- score.c.orig Fri Dec 3 23:18:35 1993
++++ score.c Sat Aug 5 07:48:43 2000
+@@ -6,7 +6,9 @@
FILE *scoreFile;
--#define SCOREfILE "/usr/X386/lib/X11/games/xbomb-scores"
-+#define SCOREfILE "/usr/X11R6/share/xmines/scores"
++#ifndef SCOREfILE
+ #define SCOREfILE "/usr/X386/lib/X11/games/xbomb-scores"
++#endif
#define NUMsCORES 10
#define NAMEsIZE 50
#define SCOREfORMAT "%5d %s\n"