svn commit: r319324 - head/games/xmines
Antoine Brodin
antoine at FreeBSD.org
Tue May 28 19:38:35 UTC 2013
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 at 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
- at mode 666
-share/xmines/scores
- at mode
-%%PORTDOCS%%share/doc/xmines/README
-%%PORTDOCS%%@dirrm share/doc/xmines
- at dirrm share/xmines
+%%DATADIR%%/scores
+ at dirrm %%DATADIR%%
More information about the svn-ports-all
mailing list