Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  4 Aug 2000 16:47:14 -0700 (PDT)
From:      tkato@prontomail.ne.jp
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/20422: Update port: games/xmines
Message-ID:  <20000804234714.4B2F337BA30@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         20422
>Category:       ports
>Synopsis:       Update port: games/xmines
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 04 16:50:02 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.1-RELEASE i386
>Organization:
>Environment:
>Description:
- Support PREFIX properly
- Strip binary

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/games/xmines/Makefile games/xmines/Makefile
--- /usr/ports/games/xmines/Makefile	Sat Apr 15 00:24:26 2000
+++ games/xmines/Makefile	Sat Aug  5 07:57:29 2000
@@ -5,21 +5,21 @@
 # $FreeBSD: ports/games/xmines/Makefile,v 1.4 2000/04/14 12:27:45 asami Exp $
 #
 
-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 -urN /usr/ports/games/xmines/patches/patch-aa games/xmines/patches/patch-aa
--- /usr/ports/games/xmines/patches/patch-aa	Thu Aug 19 04:48:19 1999
+++ games/xmines/patches/patch-aa	Sat Aug  5 07:58:41 2000
@@ -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 -urN /usr/ports/games/xmines/patches/patch-ab games/xmines/patches/patch-ab
--- /usr/ports/games/xmines/patches/patch-ab	Thu Aug 19 04:48:19 1999
+++ games/xmines/patches/patch-ab	Sat Aug  5 07:48:52 2000
@@ -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"


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000804234714.4B2F337BA30>