1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

misc/fortune-mod-bofh: Use fortune_strfile instead of strfile(8)

This removes the dependency on the games distribution.

Approved by:	general blanket
This commit is contained in:
John Marino 2016-09-14 05:16:28 +00:00
parent 706750303f
commit 8cf4ab0d4a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=422108

View File

@ -12,24 +12,20 @@ DISTFILES= bofh-fortune-mod${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= onatan@gmail.com
COMMENT= Compilation of excuses from the "Bastard Operator From Hell"
BUILD_DEPENDS= fortune_strfile:misc/fortune_strfile
STRFILE= ${LOCALBASE}/bin/fortune_strfile
WRKSRC= ${WRKDIR}/bofh-fortune-mod2.0
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
.if exists(/usr/games/strfile)
STRFILE= /usr/games/strfile
.elif exists(/usr/bin/strfile)
STRFILE= /usr/bin/strfile
.else
IGNORE= needs strfile command. Please install games distribution of base system
.endif
do-build:
@${STRFILE} ${WRKSRC}/bofh
${STRFILE} ${WRKSRC}/bofh
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
${INSTALL_DATA} ${WRKSRC}/bofh* ${STAGEDIR}${PREFIX}/share/games/fortune
${INSTALL_DATA} ${WRKSRC}/bofh* \
${STAGEDIR}${PREFIX}/share/games/fortune
.include <bsd.port.mk>