svn commit: r310478 - in head/games/xmastermind: . files
Marcelo Araujo
araujo at FreeBSD.org
Wed Jan 16 07:46:35 UTC 2013
Author: araujo
Date: Wed Jan 16 07:46:34 2013
New Revision: 310478
URL: http://svnweb.freebsd.org/changeset/ports/310478
Log:
- Support CC properly.
- Support PORTDOCS/PLIST_FILES.
- Add LICENSE.
- Add MAKE_JOBS_SAFE.
PR: ports/174161
Submitted by: KATO Tsuguru <tkato432 at yahoo.com>
Added:
head/games/xmastermind/files/patch-mymath.c (contents, props changed)
Deleted:
head/games/xmastermind/files/patch-aa
head/games/xmastermind/pkg-plist
Modified:
head/games/xmastermind/Makefile (contents, props changed)
head/games/xmastermind/pkg-descr (contents, props changed)
Modified: head/games/xmastermind/Makefile
==============================================================================
--- head/games/xmastermind/Makefile Wed Jan 16 07:44:59 2013 (r310477)
+++ head/games/xmastermind/Makefile Wed Jan 16 07:46:34 2013 (r310478)
@@ -1,33 +1,44 @@
-# New ports collection makefile for: xmastermind
-# Date created: 23 March 1998
-# Whom: Andrey Zakhvatov
-#
+# Whom: Andrey Zakhvatov
# $FreeBSD$
-#
-PORTNAME= xmastermind
-PORTVERSION= 0.1
+PORTNAME= xmastermind
+PORTVERSION= 0.1
PORTREVISION= 5
-CATEGORIES= games
-MASTER_SITES= ${MASTER_SITE_SUNSITE}
-MASTER_SITE_SUBDIR= games/strategy
+CATEGORIES= games
+MASTER_SITES= SUNSITE/games/strategy
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= ports at FreeBSD.org
COMMENT= Mastermind game for X Window System
-LIB_DEPENDS= forms.2:${PORTSDIR}/x11-toolkits/xforms
+LICENSE= GPLv2
+
+LIB_DEPENDS= forms:${PORTSDIR}/x11-toolkits/xforms
USE_XORG= x11 xpm
+MAKE_ENV= GRAPHLIBS="${LDFLAGS}"
+MAKE_JOBS_SAFE= yes
+
+CFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib -lforms -lXpm -lX11
+
+PORTDOCS= BUGS README.for.developers README.for.users
+PLIST_FILES= bin/${PORTNAME}
-pre-patch:
- @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
- ${WRKSRC}/list.h
+post-patch:
+ @${REINPLACE_CMD} -e \
+ '/^CC/s| =| ?=| ; \
+ /^CFLAGS/s| =| ?=| ; \
+ /^GRAPHLIBS/s| =| ?=|' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e \
+ 's|malloc.h|stdlib.h|' ${WRKSRC}/list.h
do-install:
- @ ${INSTALL_PROGRAM} ${WRKSRC}/xmastermind ${PREFIX}/bin
- @ ${MKDIR} ${PREFIX}/share/doc/xmastermind
-.for file in BUGS README.for.developers README.for.users
- @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/xmastermind
+ (cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} ${PREFIX}/bin)
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for i in ${PORTDOCS}
+ (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR})
.endfor
+.endif
.include <bsd.port.mk>
Added: head/games/xmastermind/files/patch-mymath.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/xmastermind/files/patch-mymath.c Wed Jan 16 07:46:34 2013 (r310478)
@@ -0,0 +1,7 @@
+--- mymath.c.orig 1997-12-30 19:30:25.000000000 +0900
++++ mymath.c 2012-10-17 01:08:29.000000000 +0900
+@@ -1,3 +1,4 @@
++#include <string.h>
+ #include <math.h>
+
+ #include "configure.h"
Modified: head/games/xmastermind/pkg-descr
==============================================================================
--- head/games/xmastermind/pkg-descr Wed Jan 16 07:44:59 2013 (r310477)
+++ head/games/xmastermind/pkg-descr Wed Jan 16 07:46:34 2013 (r310478)
@@ -1,16 +1,15 @@
The computer calculates a combination of five characters (each between
-A and J) and you have to try to find out the combination the computer
-has calculated. Your questions to the computer are also combinations
-of five characters (each between A and J).
+A and J) and you have to try to find out the combination the computer
+has calculated. Your questions to the computer are also combinations of
+five characters (each between A and J).
-You get sets of black and/or white blocks as answers to your
-questions.
+You get sets of black and/or white blocks as answers to your questions.
-If you get a black block as answer it means that there is one
-character in your try at the correct position (but you don't know
-which one it is).
+If you get a black block as answer it means that there is one character
+in your try at the correct position (but you don't know which one it
+is).
-If you get a white block as answer it means that there is a character
-in your guess that also occurs in the solution, but at another
-position (but you don't know which one it is and at which position it
-would be correct).
+If you get a white block as answer it means that there is a character in
+your guess that also occurs in the solution, but at another position
+(but you don't know which one it is and at which position it would be
+correct).
More information about the svn-ports-all
mailing list