aboutsummaryrefslogtreecommitdiff
path: root/games/wordplay
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2013-05-19 20:34:30 +0000
committerRene Ladan <rene@FreeBSD.org>2013-05-19 20:34:30 +0000
commit16c8d48b0420ec6150092265b6b29ae13889c234 (patch)
treeee9086af5540e17efc75c11af1441362a1e3e4d8 /games/wordplay
parent60aa7dc67d43887151b1544b351525383dbbb689 (diff)
downloadports-16c8d48b0420ec6150092265b6b29ae13889c234.tar.gz
ports-16c8d48b0420ec6150092265b6b29ae13889c234.zip
Notes
Diffstat (limited to 'games/wordplay')
-rw-r--r--games/wordplay/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/games/wordplay/Makefile b/games/wordplay/Makefile
index f74ee4293147..f1564d466357 100644
--- a/games/wordplay/Makefile
+++ b/games/wordplay/Makefile
@@ -1,7 +1,4 @@
-# New ports collection makefile for: wordplay
-# Date created: 24 Jun 2000
-# Whom: Ben Smithurst <ben@scientia.demon.co.uk>
-#
+# Created by: Ben Smithurst <ben@scientia.demon.co.uk>
# $FreeBSD$
PORTNAME= wordplay
@@ -12,16 +9,20 @@ MASTER_SITES= http://hsvmovies.com/static_subpages/personal_orig/wordplay/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
EXTRACT_SUFX= .tar.Z
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= nemysis@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>