Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jun 2013 20:56:46 +0000 (UTC)
From:      Boris Samorodov <bsam@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r320641 - head/games/spellcast
Message-ID:  <201306112056.r5BKukDT090558@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bsam
Date: Tue Jun 11 20:56:46 2013
New Revision: 320641
URL: http://svnweb.freebsd.org/changeset/ports/320641

Log:
  . 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.

Deleted:
  head/games/spellcast/pkg-plist
Modified:
  head/games/spellcast/Makefile

Modified: head/games/spellcast/Makefile
==============================================================================
--- head/games/spellcast/Makefile	Tue Jun 11 20:49:22 2013	(r320640)
+++ head/games/spellcast/Makefile	Tue Jun 11 20:56:46 2013	(r320641)
@@ -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 t
 
 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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306112056.r5BKukDT090558>