aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/fortune-mod-futurama/Makefile16
1 files changed, 6 insertions, 10 deletions
diff --git a/misc/fortune-mod-futurama/Makefile b/misc/fortune-mod-futurama/Makefile
index ef26cfd4d026..7fc515e49acf 100644
--- a/misc/fortune-mod-futurama/Makefile
+++ b/misc/fortune-mod-futurama/Makefile
@@ -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>