aboutsummaryrefslogtreecommitdiffstats
path: root/misc/fortuneit/Makefile
blob: c8b20eaeb5cb6a1e32bae4df12c46eb651aea127 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# New ports collection makefile for:   fortuneit
# Date created:        25-01-1999
# Whom:                gmarco@giovannelli.it
#
# $FreeBSD$
#

PORTNAME=   fortuneit
PORTVERSION=    1.51
CATEGORIES= misc
MASTER_SITES=   http://www.giovannelli.it/~gmarco/files/
DISTNAME=   fortune.it-${PORTVERSION}

MAINTAINER= gmarco@giovannelli.it

NO_BUILD=   yes

STRCMD=     /usr/games/strfile

.if defined(INSTALL_OFFENSIVE)
PLIST=      ${PKGDIR}/pkg-plist.off
.endif

pre-fetch:
.if !defined(INSTALL_OFFENSIVE)
    @${ECHO_MSG} ""
    @${ECHO_MSG} "If you want to install potentially offensive italian"
    @${ECHO_MSG} "fortunes \"make INSTALL_OFFENSIVE=yes\""
    @${ECHO_MSG} ""
.else
    @${ECHO_MSG} ""
    @${ECHO_MSG} "Potentially offensive fortunes will be installed"
    @${ECHO_MSG} ""
.endif

do-install:
    @${MKDIR} ${PREFIX}/share/games
    @${MKDIR} ${PREFIX}/share/games/fortune
    @${INSTALL_DATA} ${WRKSRC}/italia ${PREFIX}/share/games/fortune
.if defined(INSTALL_OFFENSIVE)
    @${INSTALL_DATA} ${WRKSRC}/zozzital ${PREFIX}/share/games/fortune
.endif

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

post-install:
    @${STRCMD} ${PREFIX}/share/games/fortune/italia
.if defined(INSTALL_OFFENSIVE)
    @${STRCMD} ${PREFIX}/share/games/fortune/zozzital
.endif
    @${ECHO_MSG} ""
    @${ECHO_MSG} "Usage:"
    @${ECHO_MSG} "/usr/games/fortune ${PREFIX}/share/games/fortune/italia"
.if defined(INSTALL_OFFENSIVE)
    @${ECHO_MSG} "or"
    @${ECHO_MSG} "/usr/games/fortune ${PREFIX}/share/games/fortune/zozzital"
.endif
    @${ECHO_MSG} ""

.include <bsd.port.mk>