2000-06-30 12:16:18 +00:00
|
|
|
# New ports collection makefile for: wordplay
|
|
|
|
# Date created: 24 Jun 2000
|
|
|
|
# Whom: Ben Smithurst <ben@scientia.demon.co.uk>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= wordplay
|
|
|
|
PORTVERSION= 7.22
|
2011-08-08 14:14:52 +00:00
|
|
|
PORTREVISION= 1
|
2000-06-30 12:16:18 +00:00
|
|
|
CATEGORIES= games
|
2011-08-08 14:14:52 +00:00
|
|
|
MASTER_SITES= http://hsvmovies.com/static_subpages/personal_orig/wordplay/
|
2001-04-03 09:24:09 +00:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
|
2000-06-30 12:16:18 +00:00
|
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
|
2000-11-01 20:37:04 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 17:32:26 +00:00
|
|
|
COMMENT= Simple program to generate anagrams
|
2000-06-30 12:16:18 +00:00
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
2011-08-08 14:14:52 +00:00
|
|
|
|
|
|
|
PORTDOCS= readme
|
|
|
|
PLIST_FILES= bin/${PORTNAME} %%DATADIR%%/words721.txt
|
|
|
|
PLIST_DIRS= %%DATADIR%%
|
2000-06-30 12:16:18 +00:00
|
|
|
|
|
|
|
post-patch:
|
2011-08-08 14:14:52 +00:00
|
|
|
@${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}
|
2000-06-30 12:16:18 +00:00
|
|
|
|
|
|
|
do-install:
|
2011-08-08 14:14:52 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/words721.txt ${DATADIR}
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/readme ${DOCSDIR}
|
|
|
|
.endif
|
2000-06-30 12:16:18 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|