aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>