1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00

misc/fortune-mod-futurama: 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:01:26 +00:00
parent f57eeed763
commit c9e5cedaee
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=422106

View File

@ -11,24 +11,20 @@ MASTER_SITES= http://www.netmeister.org/apps/ \
MAINTAINER= freebsd@skysmurf.nl
COMMENT= Compilation of quotes from the TV series "Futurama"
BUILD_DEPENDS= fortune_strfile:misc/fortune_strfile
USES= tar:bzip2
SUB_FILES= pkg-message
STRFILE= ${LOCALBASE}/bin/fortune_strfile
PLIST_FILES= share/games/fortune/futurama share/games/fortune/futurama.dat
.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}/futurama
${STRFILE} ${WRKSRC}/futurama
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
${INSTALL_DATA} ${WRKSRC}/futurama* ${STAGEDIR}${PREFIX}/share/games/fortune
${INSTALL_DATA} ${WRKSRC}/futurama* \
${STAGEDIR}${PREFIX}/share/games/fortune
.include <bsd.port.mk>