1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/misc/fortune-mod-psalms/Makefile
2021-04-06 16:31:07 +02:00

40 lines
819 B
Makefile

# Created by: pfg
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
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>