Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2005 16:54:28 -0300
From:      "Alejandro Pulver" <alejandro@varnet.biz>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/84353: [UPDATE] games/pmars: see 'Description' field
Message-ID:  <1122753268.0@phobos.mars.bsd>
Resent-Message-ID: <200507302000.j6UK0GFn079519@freefall.freebsd.org>

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

>Number:         84353
>Category:       ports
>Synopsis:       [UPDATE] games/pmars: see 'Description' field
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jul 30 20:00:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Alejandro Pulver
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:





>Description:


* Update to version 0.9.6.
* Add OPTIONS and allow building of different interfaces together.
* Remove documentation (now in games/pmars-doc).
* Remove pkg-plist.
* Format pkg-descr.


>How-To-Repeat:





>Fix:


--- pmars.diff begins here ---
diff -urN /usr/ports/games/pmars/Makefile pmars/Makefile
--- /usr/ports/games/pmars/Makefile	Fri Feb 21 09:05:51 2003
+++ pmars/Makefile	Sat Jul 30 16:29:37 2005
@@ -6,37 +6,99 @@
 #
 
 PORTNAME=	pmars
-PORTVERSION=	0.8
+PORTVERSION=	0.9.2
 CATEGORIES=	games
-MASTER_SITES=	http://www.koth.org/pmars/ \
-		http://www.giovannelli.it/~gmarco/files/
-DISTFILES=	pmars08s.tar.Z
+MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=	corewar
 
-MAINTAINER=	gmarco@giovannelli.it
+MAINTAINER=	alejandro@varnet.biz
 COMMENT=	A portable corewar system with ICWS'94 extensions
 
-USE_XLIB=	yes
-NO_WRKSUBDIR=	yes
-MAKEFILE=	makefile
-ALL_TARGET=	pmars
-MAN6=		pmars.6
+WRKSRC=		${WRKDIR}/${DISTNAME}/src
+
+OPTIONS=	SERVER "Use the command-line interface" on \
+		CURSES "Use the console (graphical) interface" off \
+		X11 "Use the X11 (graphical) interface" off \
+		ICWS94 "Enable ICWS'94 support" on \
+		OPTIMIZED_CFLAGS "Enable compilation optimizations" on \
+		PERMUTATE "Enable the -P switch" on \
+		SMALLMEM "Use 16-bit addresses (smaller)" off
+
+MAKE_ARGS+=	CFLAGS+="${CFLAGS}" \
+		CFLAGS+="-fno-builtin"
+
+PLIST_FILES=	bin/${PORTNAME}${PKGNAMESUFFIX}
 
 do-install:
-	@${MKDIR} ${PREFIX}/share/games
-	@${MKDIR} ${PREFIX}/share/games/corewars
-	@${INSTALL_PROGRAM} ${WRKSRC}/pmars ${PREFIX}/bin
-	@${INSTALL_DATA} ${WRKSRC}/pmars.6 ${PREFIX}/man/man6
-	@${INSTALL_DATA} ${WRKSRC}/*.red ${PREFIX}/share/games/corewars
-	@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/games/corewars
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "You can try something like :"
-	@${ECHO_MSG} "pmars -v 603 ${PREFIX}/share/games/corewars/rave.red ${PREFIX}/share/games/corewars/aeka.red"
-	@${ECHO_MSG} "to see how the simulator works (rave.red and aeka.red are two sample warriors)"
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "Some other warriors are installed in : ${PREFIX}/share/games/corewars"
-	@${ECHO_MSG} ""
-	@${ECHO_MSG} "Plase read also ${PREFIX}/share/games/corewars/README file for more infos"
-	@${ECHO_MSG} "on corewars and on the current version of pmars"
-	@${ECHO_MSG} ""
+	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
+		${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
+
+.include <bsd.port.pre.mk>
+
+# Interfaces (possibly conflictive options)
+INTERFACES=	SERVER CURSES X11
+
+# Check for conflictive options
+.for f in ${INTERFACES}
+.	if defined(WITH_${f})
+. 		if defined(INTERFACE_SET)
+INTERFACE_DUP=	yes
+.		else
+INTERFACE_SET=	yes
+.		endif
+.	endif
+.endfor
+
+# Add options that conflict to a variable
+.if defined(INTERFACE_DUP)
+.	for f in ${INTERFACES}
+.		if defined(WITH_${f})
+CONFOPTS+=	${f}
+.		endif
+.	endfor
+.endif
+
+# Ask the user to remove conflicting options
+.if defined(CONFOPTS)
+IGNORE=		Conflicting options: ${CONFOPTS}
+.endif
+
+# Use default interface if not set
+.if !defined(INTERFACE_SET)
+WITH_SERVER=	yes
+.endif
+
+.if defined(WITH_ICWS94)
+MAKE_ARGS+=	CFLAGS+="-DEXT94"
+.endif
+
+.if defined(WITH_OPTIMIZED_CFLAGS)
+MAKE_ARGS+=	CFLAGS+="-O3 -fomit-frame-pointer"
+.endif
+
+.if defined(WITH_PERMUTATE)
+MAKE_ARGS+=	CFLAGS+="-DPERMUTATE"
+.endif
+
+.if defined(WITH_SMALLMEM)
+MAKE_ARGS+=	CFLAGS+="-DSMALLMEM"
+.endif
+
+.if defined(WITH_SERVER)
+PKGNAMESUFFIX=	-server
+MAKE_ARGS+=	CFLAGS+="-DSERVER"
+
+.elif defined(WITH_CURSES)
+PKGNAMESUFFIX=	-curses
+MAKE_ARGS+=	CFLAGS+="-DGRAPHX" \
+		LIB+="-lcurses"
+
+.elif defined(WITH_X11)
+PKGNAMESUFFIX=	-x11
+USE_XLIB=	yes
+MAKE_ARGS+=	CFLAGS+="-DXWINGRAPHX" \
+		CFLAGS+="-I${X11BASE}/include" \
+		LIB+="-L${X11BASE}/lib -lX11"
+.endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff -urN /usr/ports/games/pmars/distinfo pmars/distinfo
--- /usr/ports/games/pmars/distinfo	Wed Mar 31 00:08:01 2004
+++ pmars/distinfo	Sat Jul 30 12:14:39 2005
@@ -1,2 +1,2 @@
-MD5 (pmars08s.tar.Z) = ad1869ea0a388f5c5070c4cd33b09d25
-SIZE (pmars08s.tar.Z) = 226225
+MD5 (pmars-0.9.2.tar.gz) = a73943a34e9de8f0d3028fc4566cd558
+SIZE (pmars-0.9.2.tar.gz) = 158415
diff -urN /usr/ports/games/pmars/files/patch-Makefile pmars/files/patch-Makefile
--- /usr/ports/games/pmars/files/patch-Makefile	Wed Dec 31 21:00:00 1969
+++ pmars/files/patch-Makefile	Fri Jul 29 16:01:45 2005
@@ -0,0 +1,20 @@
+--- Makefile.orig	Sun Dec 24 09:53:39 2000
++++ Makefile	Wed Jul  6 20:33:52 2005
+@@ -1,5 +1,4 @@
+ # generic UNIX makefile
+-CC = gcc			# req. for linux
+ #CC = cc				# if you don't have gcc
+ # Configuration options:
+ #
+@@ -16,11 +15,8 @@
+ # (6)   -DXWINGRAPHX    1                   X-Windows graphics (UNIX)
+ # (7)   -DPERMUTATE                         enables -P switch
+ 
+-CFLAGS = -O -DEXT94 -DXWINGRAPHX -DPERMUTATE
+-LFLAGS = -x
+ # LIB = -lcurses -ltermlib		# enable this one for curses display
+ # LIB = -lvgagl -lvga			# enable this one for Linux/SVGA
+-LIB = -L/usr/X11R6/lib -lX11		# enable this one for X11
+ 
+ .SUFFIXES: .o .c .c~ .man .doc .6
+ MAINFILE = pmars
diff -urN /usr/ports/games/pmars/files/patch-aa pmars/files/patch-aa
--- /usr/ports/games/pmars/files/patch-aa	Tue May 11 01:23:17 1999
+++ pmars/files/patch-aa	Wed Dec 31 21:00:00 1969
@@ -1,25 +0,0 @@
---- makefile.orig	Fri Oct 27 06:37:29 1995
-+++ makefile	Sun Apr 11 20:36:53 1999
-@@ -1,6 +1,6 @@
- # generic UNIX makefile
- #CC = gcc			# req. for linux
--CC = cc				# if you don't have gcc
-+CC ?= cc				# if you don't have gcc
- # Configuration options:
- #
- # No.   Name            Incompatible with   Description
-@@ -15,11 +15,12 @@
- # (5)   -DSMALLMEM                          16-bit addresses, less memory
- # (6)   -DXWINGRAPHX    1                   X-Windows graphics (UNIX)
- 
--CFLAGS = -O -DEXT94
-+CFLAGS ?= -O
-+CFLAGS += -I/usr/X11R6/include -DEXT94 -DGRAPHX -DXWINGRAPHX
- LFLAGS = -x
- LIB = -lcurses -ltermlib		# enable this one for curses display
- # LIB = -lvgagl -lvga			# enable this one for Linux/SVGA
--# LIB = -lX11				# enable this one for X11
-+LIB = -L/usr/X11R6/lib -lX11		# enable this one for X11
- 
- .SUFFIXES: .o .c .c~ .man .doc .6
- MAINFILE = pmars
diff -urN /usr/ports/games/pmars/pkg-descr pmars/pkg-descr
--- /usr/ports/games/pmars/pkg-descr	Fri Sep 17 16:16:25 1999
+++ pmars/pkg-descr	Sat Jul 30 16:46:49 2005
@@ -1,9 +1,12 @@
-pMARS (portable Memory Array Redcode Simulator) is a corewar 
-interpreter with multi-platform support.
-pMARS implements the  ICWS'94 draft  standard, but can also be
-used in ICWS'88 mode.
-The base system includes a graphical core display for UNIX (curses, 
-X11 and Linux svgalib), PC/DOS, and the Mac.
+pMARS (portable Memory Array Redcode Simulator) is a corewar interpreter with
+multi-platform support.
+
+pMARS implements the ICWS'94 draft standard, but can also be used in ICWS'88
+mode.
+
+The base system includes a graphical core display for UNIX (curses, X11 and
+Linux svgalib), PC/DOS, and the Mac.
+
 A line-oriented debugger is included to help in writing warriors.
 
 Contributors:
@@ -12,9 +15,7 @@
  * Stefan Strack           (stst@vuse.vanderbilt.edu)
  * Mintardjo Wangsawidjaja (wangsawm@kira.csos.orst.edu)
 
-distfile: pmars08s.tar.Z (about 220kb)
-
 WWW: http://www.koth.org/pmars/
 
--Gianmarco
+- Gianmarco
 gmarco@giovannelli.it
diff -urN /usr/ports/games/pmars/pkg-plist pmars/pkg-plist
--- /usr/ports/games/pmars/pkg-plist	Tue May 11 01:23:21 1999
+++ pmars/pkg-plist	Wed Dec 31 21:00:00 1969
@@ -1,9 +0,0 @@
-bin/pmars
-share/games/corewars/aeka.red
-share/games/corewars/pspace.red
-share/games/corewars/validate.red
-share/games/corewars/rave.red
-share/games/corewars/flashpaper.red
-share/games/corewars/README
-@dirrm share/games/corewars
-@unexec /bin/rmdir %D/share/games >/dev/null 2>&1 || true
--- pmars.diff ends here ---



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



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