svn commit: r318548 - head/games/wordplay
Rene Ladan
rene at FreeBSD.org
Sun May 19 20:34:31 UTC 2013
Author: rene
Date: Sun May 19 20:34:30 2013
New Revision: 318548
URL: http://svnweb.freebsd.org/changeset/ports/318548
Log:
- Convert to optionsNG
- Pass maintainership to submitter
PR: ports/173188
Submitted by: nemysis at gmx.ch
Modified:
head/games/wordplay/Makefile (contents, props changed)
Modified: head/games/wordplay/Makefile
==============================================================================
--- head/games/wordplay/Makefile Sun May 19 19:59:31 2013 (r318547)
+++ head/games/wordplay/Makefile Sun May 19 20:34:30 2013 (r318548)
@@ -1,7 +1,4 @@
-# New ports collection makefile for: wordplay
-# Date created: 24 Jun 2000
-# Whom: Ben Smithurst <ben at scientia.demon.co.uk>
-#
+# Created by: Ben Smithurst <ben at scientia.demon.co.uk>
# $FreeBSD$
PORTNAME= wordplay
@@ -12,16 +9,20 @@ MASTER_SITES= http://hsvmovies.com/stati
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
EXTRACT_SUFX= .tar.Z
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= nemysis at gmx.ch
COMMENT= Simple program to generate anagrams
NO_WRKSUBDIR= yes
PORTDOCS= readme
+
PLIST_FILES= bin/${PORTNAME} %%DATADIR%%/words721.txt
PLIST_DIRS= %%DATADIR%%
+.include <bsd.port.options.mk>
+
post-patch:
+ @${REINPLACE_CMD} -e 's|CC=gcc|CC?=g++|' ${WRKSRC}/makefile
@${REINPLACE_CMD} -e 's|"words721.txt"|"${DATADIR}/words721.txt"| ; \
s|<ctype.h>|<stdlib.h>|' ${WRKSRC}/wordplay.c
@@ -30,11 +31,11 @@ do-build:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
- @${MKDIR} ${DATADIR}
+ ${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/words721.txt ${DATADIR}
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/readme ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list