mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Stylize the Makefile, support PREFIX properly, and strip binary.
PR: ports/20422 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp> (Ports Fury!)
This commit is contained in:
parent
456782fa52
commit
da1dca62db
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31346
@ -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>
|
||||
|
@ -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)
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user