View | Details | Raw Unified | Return to bug 159461
Collapse All | Expand All

(-)games/wordplay/Makefile (-13 / +18 lines)
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>
(-)games/wordplay/files/patch-aa (-12 lines)
Lines 1-12 Link Here
1
--- makefile.orig	Sat Jun 24 19:14:14 2000
2
+++ makefile	Sat Jun 24 19:14:30 2000
3
@@ -1,8 +1,6 @@
4
 
5
 # If you don't have gcc, try cc instead, if it is an ANSI compiler.
6
 
7
-CC=gcc
8
-
9
 wordplay : wordplay.c
10
-	$(CC) -O -o wordplay wordplay.c
11
+	$(CC) ${CFLAGS} -o wordplay wordplay.c
12
 
(-)games/wordplay/pkg-descr (+2 lines)
Lines 1-2 Link Here
1
This is a program written in ANSI C that anagrams a given string. It has
1
This is a program written in ANSI C that anagrams a given string. It has
2
its own word file, but allows you to use a different one.
2
its own word file, but allows you to use a different one.
3
4
WWW: http://hsvmovies.com/static_subpages/personal_orig/wordplay/
(-)games/wordplay/pkg-plist (-4 lines)
Lines 1-4 Link Here
1
bin/wordplay
2
share/wordplay/readme
3
share/wordplay/words721.txt
4
@dirrm share/wordplay

Return to bug 159461