Lines 6-35
Link Here
|
6 |
|
6 |
|
7 |
PORTNAME= wordplay |
7 |
PORTNAME= wordplay |
8 |
PORTVERSION= 7.22 |
8 |
PORTVERSION= 7.22 |
|
|
9 |
PORTREVISION= 1 |
9 |
CATEGORIES= games |
10 |
CATEGORIES= games |
10 |
MASTER_SITES= http://hsvmovies.com/static_subpages/personal/wordplay/ |
11 |
MASTER_SITES= http://hsvmovies.com/static_subpages/personal_orig/wordplay/ |
11 |
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//} |
12 |
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//} |
12 |
EXTRACT_SUFX= .tar.Z |
13 |
EXTRACT_SUFX= .tar.Z |
13 |
|
14 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
15 |
MAINTAINER= ports@FreeBSD.org |
15 |
COMMENT= Simple program to generate anagrams |
16 |
COMMENT= Simple program to generate anagrams |
16 |
|
17 |
|
17 |
DEPRECATED= No more public distfiles |
|
|
18 |
EXPIRATION_DATE= 2011-09-01 |
19 |
|
20 |
NO_WRKSUBDIR= yes |
18 |
NO_WRKSUBDIR= yes |
21 |
MAKEFILE= makefile |
19 |
|
22 |
ALL_TARGET= wordplay |
20 |
PORTDOCS= readme |
|
|
21 |
PLIST_FILES= bin/${PORTNAME} %%DATADIR%%/words721.txt |
22 |
PLIST_DIRS= %%DATADIR%% |
23 |
|
23 |
|
24 |
post-patch: |
24 |
post-patch: |
25 |
@${REINPLACE_CMD} -e \ |
25 |
@${REINPLACE_CMD} -e 's|"words721.txt"|"${DATADIR}/words721.txt"| ; \ |
26 |
"s#words721.txt#${PREFIX}/share/wordplay/words721.txt#" \ |
26 |
s|<ctype.h>|<stdlib.h>|' ${WRKSRC}/wordplay.c |
27 |
${WRKSRC}/wordplay.c |
27 |
|
|
|
28 |
do-build: |
29 |
cd ${WRKSRC} && ${CC} ${CFLAGS} ${PORTNAME}.c -o ${PORTNAME} |
28 |
|
30 |
|
29 |
do-install: |
31 |
do-install: |
30 |
@${MKDIR} ${PREFIX}/share/wordplay |
32 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin |
31 |
${INSTALL_DATA} ${WRKSRC}/words721.txt ${WRKSRC}/readme \ |
33 |
@${MKDIR} ${DATADIR} |
32 |
${PREFIX}/share/wordplay |
34 |
${INSTALL_DATA} ${WRKSRC}/words721.txt ${DATADIR} |
33 |
${INSTALL_PROGRAM} ${WRKSRC}/wordplay ${PREFIX}/bin |
35 |
.if !defined(NOPORTDOCS) |
|
|
36 |
@${MKDIR} ${DOCSDIR} |
37 |
${INSTALL_DATA} ${WRKSRC}/readme ${DOCSDIR} |
38 |
.endif |
34 |
|
39 |
|
35 |
.include <bsd.port.mk> |
40 |
.include <bsd.port.mk> |