1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/games/wordplay/Makefile
Rusmir Dusko a4baad5f5a - Change maintainer email of my ports to @FreeBSD.org
Approved by:	pawel / wg (mentors, implicit)
2013-12-18 10:20:48 +00:00

43 lines
1.0 KiB
Makefile

# Created by: Ben Smithurst <ben@scientia.demon.co.uk>
# $FreeBSD$
PORTNAME= wordplay
PORTVERSION= 7.22
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://hsvmovies.com/static_subpages/personal_orig/wordplay/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
EXTRACT_SUFX= .tar.Z
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Simple program to generate anagrams
NO_WRKSUBDIR= yes
PORTDOCS= readme
PLIST_FILES= bin/${PORTNAME} %%DATADIR%%/words721.txt
PLIST_DIRS= %%DATADIR%%
NO_STAGE= yes
.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
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} ${PORTNAME}.c -o ${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/words721.txt ${DATADIR}
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
.include <bsd.port.mk>