Index: head/games/seabattle/Makefile =================================================================== --- head/games/seabattle/Makefile (revision 407597) +++ head/games/seabattle/Makefile (revision 407598) @@ -1,23 +1,25 @@ # Created by: Andrey Zakhvatov # $FreeBSD$ PORTNAME= seabattle PORTVERSION= 1.0 PORTREVISION= 2 CATEGORIES= games MASTER_SITES= SUNSITE/games/strategy/ \ http://www.deater.net/weave/vmwprod/ MAINTAINER= ports@FreeBSD.org COMMENT= Curses based battleship type game +USES= ncurses + OPTIONS_DEFINE= DOCS do-install: ${INSTALL_PROGRAM} ${WRKSRC}/seabattle ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${PREFIX}/share/seabattle ${INSTALL_DATA} ${WRKSRC}/*.au ${STAGEDIR}${DATADIR} @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/readme.txt ${STAGEDIR}${DOCSDIR} .include Index: head/games/seabattle/files/patch-Makefile =================================================================== --- head/games/seabattle/files/patch-Makefile (revision 407597) +++ head/games/seabattle/files/patch-Makefile (revision 407598) @@ -1,28 +1,29 @@ ---- Makefile.orig Wed May 14 02:53:34 1997 -+++ Makefile Fri Feb 2 04:20:41 2001 +--- Makefile.orig 1997-05-13 17:53:34 UTC ++++ Makefile @@ -8,7 +8,7 @@ ############################################################## #Your compiler. If gcc doesn't work, try CC -CC = gcc +#CC = gcc #CC = cc #On Suns, SGIs, and other Unix systems uncomment the following -@@ -17,12 +17,12 @@ +@@ -17,12 +17,12 @@ CC = gcc #C_OPTS = #L_OPTS = -lcurses -#On Linux, uncomment the following +#On FreeBSD/Linux, uncomment the following # -PLATFORM = Linux -C_OPTS = -O2 -Wall +-L_OPTS = -lncurses +- +PLATFORM = FreeBSD/Linux +DATADIR = ${PREFIX}/share/seabattle +C_OPTS = ${CFLAGS} -DDATADIR=\"${DATADIR}\" - L_OPTS = -lncurses -- ++L_OPTS = $(LDFLAGS) -lncurses #For Dos/Windows DJGPP (you need the curses lib) #PLATFORM = DOS_DJGPP