aboutsummaryrefslogtreecommitdiffstats
path: root/misc/fortune-mod-psalms/Makefile
blob: a2e58b476695b6e361683c6bff5d4b9f77513d05 (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
# Created by: pfg
# $FreeBSD$

PORTNAME=   fortune-mod-psalms
PORTVERSION=    1.0
CATEGORIES= misc
MASTER_SITES=   LOCAL/pfg/catholic
DISTNAME=   ${PORTNAME}

MAINTAINER= pfg@FreeBSD.org
COMMENT=    Psalms from the Douai Bible in fortune file format

LICENSE=    CC0-1.0     #AKA Public Domain

NO_ARCH=    yes
NO_WRKSUBDIR=   yes

PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES=  pkg-message
PLIST_FILES=    share/games/fortune/psalms share/games/fortune/psalms.dat

.if exists(/usr/games/strfile)
_STRFILE=   /usr/games/strfile
.elif exists(/usr/bin/strfile)
_STRFILE=   /usr/bin/strfile
.endif

.if !defined(_STRFILE)
NO_BUILD=   yes
.else
do-build:
    ${RM} ${WRKSRC}/psalms.dat
    (cd ${WRKSRC} && ${_STRFILE} -C psalms)
.endif

do-install:
    @${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
    ${INSTALL_DATA} ${WRKSRC}/psalms*   \
       ${STAGEDIR}${PREFIX}/share/games/fortune

.include <bsd.port.mk>