svn commit: r323461 - in head/games/pmars-sdl: . files
Martin Wilke
miwi at FreeBSD.org
Mon Jul 22 15:20:14 UTC 2013
Author: miwi
Date: Mon Jul 22 15:20:13 2013
New Revision: 323461
URL: http://svnweb.freebsd.org/changeset/ports/323461
Log:
- Update MASTER_SITES and WWW: line
- Add LICENSE
- Support STRIP properly
- Trim header
Deleted:
head/games/pmars-sdl/files/
Modified:
head/games/pmars-sdl/Makefile (contents, props changed)
head/games/pmars-sdl/pkg-descr (contents, props changed)
Modified: head/games/pmars-sdl/Makefile
==============================================================================
--- head/games/pmars-sdl/Makefile Mon Jul 22 15:18:53 2013 (r323460)
+++ head/games/pmars-sdl/Makefile Mon Jul 22 15:20:13 2013 (r323461)
@@ -1,24 +1,18 @@
-# New ports collection makefile for: pmars-sdl
-# Date created: 30 Jul 2005
-# Whom: Alejandro Pulver <alejandro at varnet.biz>
-#
+# Created by: Alejandro Pulver <alejandro at varnet.biz>
# $FreeBSD$
-#
PORTNAME= pmars
PORTVERSION= 0.9.2
PORTREVISION= 5
CATEGORIES= games
-MASTER_SITES= http://www.cs.helsinki.fi/u/jpihlaja/cw/pmars-sdl/
+MASTER_SITES= http://corewar.co.uk/pihlaja/pmars-sdl/
PKGNAMESUFFIX= -sdl
DISTNAME= ${PORTNAME}-${PORTVERSION}-5
MAINTAINER= ports at FreeBSD.org
COMMENT= Port of pMARS using the Simple Directmedia Library
-USE_SDL= sdl
-
-WRKSRC= ${WRKDIR}/${DISTNAME}/src
+LICENSE= GPLv2 # (or later)
OPTIONS_DEFINE= ICWS94 OPTIMIZED_CFLAGS PERMUTATE SMALLMEM
OPTIONS_DEFAULT= ICWS94 OPTIMIZED_CFLAGS PERMUTATE
@@ -26,7 +20,10 @@ ICWS94_DESC= Enable ICWS'94 support
PERMUTATE_DESC= Enable the -P switch
SMALLMEM_DESC= Use 16-bit addresses (smaller)
-MAKE_ARGS+= CFLAGS+="${CFLAGS}" \
+WRKSRC= ${WRKDIR}/${DISTNAME}/src
+
+USE_SDL= sdl
+MAKE_ARGS= CFLAGS+="${CFLAGS}" \
CFLAGS+="-fno-builtin" \
CFLAGS+="`${SDL_CONFIG} --cflags`" \
LIB+="`${SDL_CONFIG} --libs`" \
@@ -52,8 +49,16 @@ MAKE_ARGS+= CFLAGS+="-DPERMUTATE"
MAKE_ARGS+= CFLAGS+="-DSMALLMEM"
.endif
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|^CC|#CC| ; \
+ s|^CFLAGS|#CFLAGS| ; \
+ s|^LFLAGS|#LFLAGS| ; \
+ s|@$$(CC)|$$(CC)| ; \
+ /strip/d' ${WRKSRC}/${MAKEFILE}
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} \
- ${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \
+ ${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX})
.include <bsd.port.mk>
Modified: head/games/pmars-sdl/pkg-descr
==============================================================================
--- head/games/pmars-sdl/pkg-descr Mon Jul 22 15:18:53 2013 (r323460)
+++ head/games/pmars-sdl/pkg-descr Mon Jul 22 15:20:13 2013 (r323461)
@@ -1,17 +1,17 @@
-Port of pMARS using the Simple Directmedia Library. Currently the port is in
-beta testing stage testing and bug reports/feature requests are more than
-welcome. The latest release is version 0.9.2-5.
+Port of pMARS using the Simple Directmedia Library. Currently the port
+is in beta testing stage testing and bug reports/feature requests are
+more than welcome.
Features/fixes:
-* Environment sensitive. Now looks for macro files in the directory specified
- by the environment variable PMARSHOME if they are not found in the current
- directory.
+* Environment sensitive. Now looks for macro files in the directory
+ specified by the environment variable PMARSHOME if they are not
+ found in the current directory.
* Both Win32 and X11 supported.
* Command line history using Shift-Up and Shift-Down keys.
-* Rewrote text display and screen update routines for faster text panels (for
- slow computers like mine.)
-* BIG core cells for those tiny cores. (Choose a display mode larger than 2,
- e.g. -v 134.)
+* Rewrote text display and screen update routines for faster text
+ panels (for slow computers like mine.)
+* BIG core cells for those tiny cores. (Choose a display mode larger
+ than 2, e.g. -v 134.)
-WWW: http://www.cs.helsinki.fi/u/jpihlaja/cw/pmars-sdl/
+WWW: http://corewar.co.uk/pihlaja/pmars-sdl/
More information about the svn-ports-head
mailing list