mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
. fix build with clang (CFLAGS+=-Wno-return-type);
. trim Makefile headers; . NOPORTDOCS -> PORT_OPTIONS:MDOCS; . get use PLIST_FILES and PORTDOCS; . remove pkg-plist (4 lines); . ${PREFIX}/share/doc/spellcast -> ${DOCSDIR}; . use one install command instead of a .for loop.
This commit is contained in:
parent
b856fb96bc
commit
db8ed614a7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=320641
@ -1,9 +1,5 @@
|
||||
# New ports collection makefile for: spellcast
|
||||
# Date created: 28 June 1998
|
||||
# Whom: Andrey Zakhvatov
|
||||
#
|
||||
# Created by: Andrey Zakhvatov
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= spellcast
|
||||
PORTVERSION= 1.2
|
||||
@ -18,15 +14,21 @@ COMMENT= Multiplayer fight with spells turn based game for X Window System
|
||||
|
||||
USE_XORG= x11
|
||||
MAN6= spellcast.6
|
||||
PLIST_FILES= bin/spellcast
|
||||
PORTDOCS= README spelllist.ps
|
||||
|
||||
CFLAGS+= -Wno-return-type
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/spellcast ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/spellcast.6 ${PREFIX}/man/man6
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${PREFIX}/share/doc/spellcast
|
||||
.for file in README spelllist.ps
|
||||
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/spellcast
|
||||
.endfor
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,4 +0,0 @@
|
||||
bin/spellcast
|
||||
%%PORTDOCS%%share/doc/spellcast/README
|
||||
%%PORTDOCS%%share/doc/spellcast/spelllist.ps
|
||||
%%PORTDOCS%%@dirrm share/doc/spellcast
|
Loading…
Reference in New Issue
Block a user