mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
- Unbreak with clang
- Use PORTDOCS, PORT_OPTIONS, DATADIR - Trim Makefile header Approved by: miwi (mentor)
This commit is contained in:
parent
ca5f52a23f
commit
62f31df64c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=319414
@ -1,28 +1,28 @@
|
||||
# New ports collection makefile for: seabattle
|
||||
# Date created: 6 June 1997
|
||||
# Whom: Andrey Zakhvatov
|
||||
#
|
||||
# Created by: Andrey Zakhvatov
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= seabattle
|
||||
PORTVERSION= 1.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= ${MASTER_SITE_SUNSITE} \
|
||||
MASTER_SITES= SUNSITE \
|
||||
http://www.deater.net/weave/vmwprod/
|
||||
MASTER_SITE_SUBDIR= games/strategy
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= A curses based battleship type game
|
||||
COMMENT= Curses based battleship type game
|
||||
|
||||
PORTDOCS= readme.txt
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/seabattle ${PREFIX}/bin
|
||||
@${MKDIR} ${PREFIX}/share/seabattle
|
||||
${INSTALL_DATA} ${WRKSRC}/*.au ${PREFIX}/share/seabattle
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${PREFIX}/share/doc/seabattle
|
||||
${INSTALL_DATA} ${WRKSRC}/readme.txt ${PREFIX}/share/doc/seabattle
|
||||
${INSTALL_DATA} ${WRKSRC}/*.au ${DATADIR}
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
11
games/seabattle/files/patch-batt.c
Normal file
11
games/seabattle/files/patch-batt.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- ./batt.c.orig 1997-05-13 15:45:51.000000000 +0000
|
||||
+++ ./batt.c 2013-05-28 08:46:50.000000000 +0000
|
||||
@@ -13,7 +13,7 @@
|
||||
int salvo_play=0; /* paramaters uncluttered*/
|
||||
int first_time=0;
|
||||
|
||||
-int main(int argc, char *argv)
|
||||
+int main(int argc, char **argv)
|
||||
{
|
||||
MAIN_THINGY *main_thing;
|
||||
|
@ -1,10 +1,8 @@
|
||||
bin/seabattle
|
||||
%%PORTDOCS%%share/doc/seabattle/readme.txt
|
||||
share/seabattle/hit1.au
|
||||
share/seabattle/hit2.au
|
||||
share/seabattle/miss1.au
|
||||
share/seabattle/miss2.au
|
||||
share/seabattle/opening.au
|
||||
share/seabattle/sunkit.au
|
||||
@dirrm share/seabattle
|
||||
%%PORTDOCS%%@dirrm share/doc/seabattle
|
||||
%%DATADIR%%/hit1.au
|
||||
%%DATADIR%%/hit2.au
|
||||
%%DATADIR%%/miss1.au
|
||||
%%DATADIR%%/miss2.au
|
||||
%%DATADIR%%/opening.au
|
||||
%%DATADIR%%/sunkit.au
|
||||
@dirrm %%DATADIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user