aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/fortunetw/Makefile
blob: 448e30835f355fde057e98fe2f60b1ab9d29068d (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
# New ports collection makefile for:   fortunetw
# Date created:                10 Mar 2001
# Whom:                        Shen Chuan-Hsing
#
# $FreeBSD$
#

PORTNAME=   fortunetw
PORTVERSION=    1.3
CATEGORIES= chinese
MASTER_SITES=   LOCAL/chinsan \
        http://chinsan2.twbbs.org/distfiles/
DISTNAME=   zh-fortunetw-${PORTVERSION}

MAINTAINER= chinsan@FreeBSD.org
COMMENT=    A very classic fortune file in Taiwan

NO_BUILD=   yes

STRCMD=     /usr/games/strfile

do-install:
    @${MKDIR} ${TARGETDIR}/share/games/fortune
    @${INSTALL_DATA} ${WRKSRC}/bsdchat ${TARGETDIR}/share/games/fortune
    @${INSTALL_DATA} ${WRKSRC}/folksong ${TARGETDIR}/share/games/fortune
    @${INSTALL_DATA} ${WRKSRC}/liuyong ${TARGETDIR}/share/games/fortune
    @${INSTALL_DATA} ${WRKSRC}/stephehchow ${TARGETDIR}/share/games/fortune
    @${INSTALL_DATA} ${WRKSRC}/tangshi ${TARGETDIR}/share/games/fortune
    @${INSTALL_DATA} ${WRKSRC}/xiaoxing ${TARGETDIR}/share/games/fortune
    @${INSTALL_DATA} ${WRKSRC}/yijing ${TARGETDIR}/share/games/fortune

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

post-install:
    @${STRCMD} ${TARGETDIR}/share/games/fortune/bsdchat
    @${STRCMD} ${TARGETDIR}/share/games/fortune/folksong
    @${STRCMD} ${TARGETDIR}/share/games/fortune/liuyong
    @${STRCMD} ${TARGETDIR}/share/games/fortune/stephehchow
    @${STRCMD} ${TARGETDIR}/share/games/fortune/tangshi
    @${STRCMD} ${TARGETDIR}/share/games/fortune/xiaoxing
    @${STRCMD} ${TARGETDIR}/share/games/fortune/yijing
    @${ECHO_MSG} ""
    @${ECHO_MSG} "Usage:"
    @${ECHO_MSG} "${STRCMD} ${TARGETDIR}/share/games/fortune/bsdchat"
    @${ECHO_MSG} "${STRCMD} ${TARGETDIR}/share/games/fortune/folksong"
    @${ECHO_MSG} "${STRCMD} ${TARGETDIR}/share/games/fortune/liuyong"
    @${ECHO_MSG} "${STRCMD} ${TARGETDIR}/share/games/fortune/stephehchow"
    @${ECHO_MSG} "${STRCMD} ${TARGETDIR}/share/games/fortune/tangshi"
    @${ECHO_MSG} "${STRCMD} ${TARGETDIR}/share/games/fortune/xiaoxing"
    @${ECHO_MSG} "${STRCMD} ${TARGETDIR}/share/games/fortune/yijing"
    @${ECHO_MSG} ""

.include <bsd.port.mk>