aboutsummaryrefslogtreecommitdiffstats
path: root/games/cowsay/Makefile
blob: b033ec7fd9730016a066b6056d5d36d9c0be9a7c (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
# Created by: Kris Kennaway <kris@FreeBSD.org>
# $FreeBSD$

PORTNAME=   cowsay
PORTVERSION=    3.03
PORTREVISION=   2
CATEGORIES= games
MASTER_SITES=   http://www.nog.net/~tony/warez/

MAINTAINER= wxs@FreeBSD.org
COMMENT=    Configurable talking characters in ASCII art

USES=       perl5

NO_BUILD=   # defined

.if defined(MAINTAINER_MODE)
DISTFILES+= ${DISTNAME}${EXTRACT_SUFX}.sig
verify: fetch
    @${ECHO_MSG} "Checking ${DISTNAME}${EXTRACT_SUFX}"
    @gpg --verify ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}.sig 2>/dev/null || echo "Bad signature!"
    @${ECHO_MSG} "Done"
.endif

post-patch:
    @${REINPLACE_CMD} 's,usethisperl=.*,usethisperl=${PERL},' ${WRKSRC}/install.sh

do-install:
    cd ${WRKSRC}; ${SH} install.sh ${STAGEDIR}${PREFIX}
    @${SED} -i '' 's,${STAGEDIR},,' ${STAGEDIR}${PREFIX}/bin/cowsay
    @${INSTALL_DATA} ${FILESDIR}/box.cow ${STAGEDIR}${PREFIX}/share/cows
    @${INSTALL_DATA} ${FILESDIR}/jkh.cow ${STAGEDIR}${PREFIX}/share/cows
    @${INSTALL_DATA} ${FILESDIR}/tux-stab.cow ${STAGEDIR}${PREFIX}/share/cows

.include <bsd.port.mk>