Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2013 19:38:34 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r319324 - head/games/xmines
Message-ID:  <201305281938.r4SJcY0L013118@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: antoine
Date: Tue May 28 19:38:34 2013
New Revision: 319324
URL: http://svnweb.freebsd.org/changeset/ports/319324

Log:
  - Unbreak with clang using -Wno-error=return-type  (this is old K&R code)
  - Trim Makefile header
  - Use PORT_OPTIONS PORTSDOC DATADIR

Modified:
  head/games/xmines/Makefile
  head/games/xmines/pkg-plist

Modified: head/games/xmines/Makefile
==============================================================================
--- head/games/xmines/Makefile	Tue May 28 19:34:51 2013	(r319323)
+++ head/games/xmines/Makefile	Tue May 28 19:38:34 2013	(r319324)
@@ -1,15 +1,11 @@
-# New ports collection makefile for:	xmines
-# Date created:				18 August 1999
-# Whom:					Andrey Zakhvatov
-#
+# Created by: Andrey Zakhvatov
 # $FreeBSD$
-#
 
 PORTNAME=	xmines
 PORTVERSION=	1.0
 PORTREVISION=	2
 CATEGORIES=	games
-MASTER_SITES=	${MASTER_SITE_SUNSITE}
+MASTER_SITES=	SUNSITE
 MASTER_SITE_SUBDIR=	games/strategy
 DISTNAME=	${PORTNAME}
 
@@ -17,11 +13,16 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Minesweeper game for the X Window System
 
 USE_XORG=	x11 xt
+CFLAGS+=	-Wno-error=return-type
+
+PORTDOCS=	README
+
+.include <bsd.port.options.mk>
 
 post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>

Modified: head/games/xmines/pkg-plist
==============================================================================
--- head/games/xmines/pkg-plist	Tue May 28 19:34:51 2013	(r319323)
+++ head/games/xmines/pkg-plist	Tue May 28 19:38:34 2013	(r319324)
@@ -1,7 +1,3 @@
 bin/xmines
-@mode 666
-share/xmines/scores
-@mode
-%%PORTDOCS%%share/doc/xmines/README
-%%PORTDOCS%%@dirrm share/doc/xmines
-@dirrm share/xmines
+%%DATADIR%%/scores
+@dirrm %%DATADIR%%



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