Bug 47097 - New port: games/braincurses
Summary: New port: games/braincurses
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-15 09:50 UTC by Michael L. Hostbaek
Modified: 2003-01-17 13:12 UTC (History)
0 users

See Also:


Attachments
file.shar (2.26 KB, text/plain)
2003-01-15 09:50 UTC, Michael L. Hostbaek
no flags Details
port-braincurses.diff (821 bytes, patch)
2003-01-15 11:40 UTC, Michael L. Hostbaek
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael L. Hostbaek 2003-01-15 09:50:00 UTC
	New port!
	BrainCurses is a clone of the Mastermind game implemented in ncurses.
	Builds on -CURRENT & -STABLE.
Comment 1 corecode@corecode.ath.cx 2003-01-15 10:58:08 UTC
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
Comment 2 Michael L. Hostbaek 2003-01-15 11:40:48 UTC
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 /*
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2003-01-17 13:11:45 UTC
State Changed
From-To: open->closed

Commited, thanks! 
(adjusted the pkg-plist, please check)