From root@icommerce-france.com  Wed Jan 15 01:43:40 2003
Return-Path: <root@icommerce-france.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0A97E37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Jan 2003 01:43:40 -0800 (PST)
Received: from mail2.itxmarket.com (fw.itxmarket.com [213.11.40.109])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 0390C43E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Jan 2003 01:43:39 -0800 (PST)
	(envelope-from root@icommerce-france.com)
Received: from icommerce-france.com (current.itxmarket.com [192.168.2.19])
	by mail2.itxmarket.com (Postfix) with ESMTP id F390037C84
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Jan 2003 10:43:36 +0100 (CET)
Received: by icommerce-france.com (Postfix, from userid 0)
	id 7360B27; Wed, 15 Jan 2003 10:43:36 +0100 (CET)
Message-Id: <20030115094336.7360B27@icommerce-france.com>
Date: Wed, 15 Jan 2003 10:43:36 +0100 (CET)
From: Michael L.Hostbaek <mich@freebsdcluster.org>
Reply-To: Michael L.Hostbaek <mich@freebsdcluster.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: New port: games/braincurses
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         47097
>Category:       ports
>Synopsis:       New port: games/braincurses
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 15 01:50:00 PST 2003
>Closed-Date:    Fri Jan 17 05:12:10 PST 2003
>Last-Modified:  Fri Jan 17 05:12:10 PST 2003
>Originator:     Michael L. Hostbaek
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
FreeBSDCluster.org
>Environment:
System: FreeBSD current.itxmarket.com 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Thu Jan 2 14:46:12 CET 2003 root@current.itxmarket.com:/usr/obj/usr/src/sys/GENERIC i386

>Description:
	New port!
	BrainCurses is a clone of the Mastermind game implemented in ncurses.
	Builds on -CURRENT & -STABLE.

>How-To-Repeat:
>Fix:

	
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	braincurses
#	braincurses/Makefile
#	braincurses/distinfo
#	braincurses/pkg-comment
#	braincurses/pkg-descr
#	braincurses/pkg-plist
#
echo c - braincurses
mkdir -p braincurses > /dev/null 2>&1
echo x - braincurses/Makefile
sed 's/^X//' >braincurses/Makefile << 'END-of-braincurses/Makefile'
X# ex:ts=8
X# Ports collection makefile for:  braincurses
X# Date created:		Wed Jan 15, 2003
X# Whom:			Michael L. Hostbaek (mich@freebsdcluster.org)
X#
X# $FreeBSD$
X#
X
XPORTNAME=	braincurses
XPORTVERSION=	0.2
XCATEGORIES=	games
XMASTER_SITES=	http://uhaweb.hartford.edu/hyland/derr/
X
XMAINTAINER=	mich@freebsdcluster.org
X
XLDFLAGS+=       -L${LOCALBASE}/lib -lncurses
XWRKSRC=		${WRKDIR}/${PORTNAME}
X
Xdo-build:
X	(cd ${WRKSRC} && ${CXX} -c -o curses/windows.o curses/windows.cpp)
X	(cd ${WRKSRC} && ${CXX} ${CFLAGS} -c ${PORTNAME}.cpp)
X	(cd ${WRKSRC} && ${CXX} ${CFLAGS} ${LDFLAGS} -o ${PORTNAME} curses/windows.o ${PORTNAME}.o)
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
X
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
X.endif
X
X.include <bsd.port.mk>
END-of-braincurses/Makefile
echo x - braincurses/distinfo
sed 's/^X//' >braincurses/distinfo << 'END-of-braincurses/distinfo'
XMD5 (braincurses-0.2.tar.gz) = 0ac07278346f5832ae3edd61e0ef1eac
END-of-braincurses/distinfo
echo x - braincurses/pkg-comment
sed 's/^X//' >braincurses/pkg-comment << 'END-of-braincurses/pkg-comment'
XA clone of the Mastermind game
END-of-braincurses/pkg-comment
echo x - braincurses/pkg-descr
sed 's/^X//' >braincurses/pkg-descr << 'END-of-braincurses/pkg-descr'
XBrainCurses is a clone of the Mastermind game implemented in ncurses.
X
XWWW:		http://freshmeat.net/projects/braincurses/                        
XAUTHOR:		Brian Derr <bderr@myrealbox.com>
X
X	- Michael L. Hostbaek
X	mich@freebsdcluster.org
END-of-braincurses/pkg-descr
echo x - braincurses/pkg-plist
sed 's/^X//' >braincurses/pkg-plist << 'END-of-braincurses/pkg-plist'
Xbin/braincurses
END-of-braincurses/pkg-plist
exit


>Release-Note:
>Audit-Trail:

From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
To: "Michael L.Hostbaek" <mich@freebsdcluster.org>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/47097: New port: games/braincurses
Date: Wed, 15 Jan 2003 11:58:08 +0100

 --=.:qpvOC(71LJKMC
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 Lately Michael L.Hostbaek told:
 
 > XLDFLAGS+=       -L${LOCALBASE}/lib -lncurses
 
 what for is that localbase stuff?
 
 > Xdo-build:
 > X	(cd ${WRKSRC} && ${CXX} -c -o curses/windows.o curses/windows.cpp)
 > X	(cd ${WRKSRC} && ${CXX} ${CFLAGS} -c ${PORTNAME}.cpp)
 > X	(cd ${WRKSRC} && ${CXX} ${CFLAGS} ${LDFLAGS} -o ${PORTNAME} curses/windows.o ${PORTNAME}.o)
 > X
 > Xdo-install:
 > X	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
 > X
 > X.if !defined(NOPORTDOCS)
 > X	${MKDIR} ${DOCSDIR}
 > X	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
 > X.endif
 
 how about a file/Makefile using bsd.prog.mk?
 if not, the parentheses are not needed:
 	cd ${WRKSRC} && \
 	${CXX} ... && \
 	${CXX} ...
 
 cheers
   simon
 
 -- 
 /"\   http://corecode.ath.cx/#donate
 \ /
  \     ASCII Ribbon Campaign
 / \  Against HTML Mail and News
 
 --=.:qpvOC(71LJKMC
 Content-Type: application/pgp-signature
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.1 (FreeBSD)
 
 iD8DBQE+JT7Dr5S+dk6z85oRAsnjAJ4sUeJ5LBRpc6DFugdOj0dLl4UfEACg6/F7
 zS80V4uwJWQwJ0VOdKbQqMU=
 =Gwa8
 -----END PGP SIGNATURE-----
 
 --=.:qpvOC(71LJKMC--

From: Michael Hostbaek <mich@freebsdcluster.org>
To: Simon 'corecode' Schubert <corecode@corecode.ath.cx>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: ports/47097: New port: games/braincurses
Date: Wed, 15 Jan 2003 12:40:48 +0100

 --U+BazGySraz5kW0T
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 Simon 'corecode' Schubert (corecode) writes:
 > Lately Michael L.Hostbaek told:
 > 
 > > XLDFLAGS+=       -L${LOCALBASE}/lib -lncurses
 > 
 > what for is that localbase stuff?
 
 Excellent question. The port builds fine without it.
 I have removed it in the attached patch !
 
 > 
 > how about a file/Makefile using bsd.prog.mk?
 > if not, the parentheses are not needed:
 > 	cd ${WRKSRC} && \
 > 	${CXX} ... && \
 > 	${CXX} ...
 
 I have chosen the latter.. 
 Thanks for pointing it out to me.
 
 
 -- 
 Best Regards,
 	Michael Landin Hostbaek 
 	FreeBSDCluster.org - an International Community
 
 	*/ PGP-key available upon request /*
 
 --U+BazGySraz5kW0T
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="port-braincurses.diff"
 
 diff -u -ruN braincurses.bak/Makefile braincurses/Makefile
 --- braincurses.bak/Makefile	Wed Jan 15 12:29:22 2003
 +++ braincurses/Makefile	Wed Jan 15 12:31:35 2003
 @@ -13,13 +13,14 @@
  
  MAINTAINER=	mich@freebsdcluster.org
  
 -LDFLAGS+=       -L${LOCALBASE}/lib -lncurses
 +LDFLAGS+=	-lncurses
  WRKSRC=		${WRKDIR}/${PORTNAME}
  
  do-build:
 -	(cd ${WRKSRC} && ${CXX} -c -o curses/windows.o curses/windows.cpp)
 -	(cd ${WRKSRC} && ${CXX} ${CFLAGS} -c ${PORTNAME}.cpp)
 -	(cd ${WRKSRC} && ${CXX} ${CFLAGS} ${LDFLAGS} -o ${PORTNAME} curses/windows.o ${PORTNAME}.o)
 +	cd ${WRKSRC} && \
 +	${CXX} -c -o curses/windows.o curses/windows.cpp && \
 +	${CXX} ${CFLAGS} -c ${PORTNAME}.cpp && \
 +	${CXX} ${CFLAGS} ${LDFLAGS} -o ${PORTNAME} curses/windows.o ${PORTNAME}.o
  
  do-install:
  	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
 
 --U+BazGySraz5kW0T--
State-Changed-From-To: open->closed 
State-Changed-By: edwin 
State-Changed-When: Fri Jan 17 05:11:45 PST 2003 
State-Changed-Why:  
Commited, thanks! 
(adjusted the pkg-plist, please check) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47097 
>Unformatted:
