summaryrefslogtreecommitdiff
path: root/misc/fortuneit/Makefile
blob: 5ec624d17f1b884f08a47913fddcf973163b85f2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:   fortuneit
# Date created:        25-01-1999
# Whom:                gmarco@giovannelli.it
#
# $FreeBSD$
#

PORTNAME=	fortuneit
PORTVERSION=	1.99
CATEGORIES=	misc
MASTER_SITES=	http://utenti.gufi.org/~gmarco/files/distfiles/
DISTNAME=	fortune-it-${PORTVERSION}

MAINTAINER=	gmarco@gufi.org
COMMENT=	A very funny fortune file in Italian

STRCMD=		/usr/games/strfile

FORTUNEFILES=	adams banner computer definizioni formiche italia itatrek \
		jackfr leggi luke luttazzi norm paolotedeschi zuse \
		computer-o definizioni-o film-o italia-o jackfr-o leggi-o \
		luttazzi-o obsc-o zuse-o

pre-build:
.if !exists(${STRCMD})
	@${ECHO_MSG} "Please install the games distribution"
	@exit 1
.endif

do-build:
.for f in ${FORTUNEFILES}
	${STRCMD} ${WRKSRC}/testi/${f}
.endfor

do-install:
	@${MKDIR} ${PREFIX}/share/games
	@${MKDIR} ${PREFIX}/share/games/fortune
.for f in ${FORTUNEFILES}
	@${INSTALL_DATA} ${WRKSRC}/testi/${f}* ${PREFIX}/share/games/fortune
.endfor

post-install:
	@${ECHO_MSG} ""
	@${ECHO_MSG} "Usage:"
	@${ECHO_MSG} "/usr/games/fortune [-aDefilosw] ${PREFIX}/share/games/fortune/"
	@${ECHO_MSG} ""
	@${ECHO_MSG} "Please check fortune manual pages for more informations"
	@${ECHO_MSG} ""

.include <bsd.port.mk>