aboutsummaryrefslogtreecommitdiffstats
path: root/french/fortune-mod-zarathoustra
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-09-14 13:44:01 +0800
committermarino <marino@FreeBSD.org>2016-09-14 13:44:01 +0800
commitf987409fc2d1b94f75c7109255105508b63f1a75 (patch)
treed1251fd08236c086e80ed163ef7e9f992d365c66 /french/fortune-mod-zarathoustra
parentedb5a5c7932f73d540136ed3e4c4a431d1e76ce8 (diff)
downloadfreebsd-ports-gnome-f987409fc2d1b94f75c7109255105508b63f1a75.tar.gz
freebsd-ports-gnome-f987409fc2d1b94f75c7109255105508b63f1a75.tar.zst
freebsd-ports-gnome-f987409fc2d1b94f75c7109255105508b63f1a75.zip
french/fortune-mod-zarathoustra: Use fortune_strfile instead of strfile(8)
This removes the dependency on the games distribution. Approved by: general blanket
Diffstat (limited to 'french/fortune-mod-zarathoustra')
-rw-r--r--french/fortune-mod-zarathoustra/Makefile14
1 files changed, 5 insertions, 9 deletions
diff --git a/french/fortune-mod-zarathoustra/Makefile b/french/fortune-mod-zarathoustra/Makefile
index 2b7b231880d0..2d5d717cd2e8 100644
--- a/french/fortune-mod-zarathoustra/Makefile
+++ b/french/fortune-mod-zarathoustra/Makefile
@@ -11,19 +11,15 @@ COMMENT= Compilation of quotes from Nietzsche's Thus spoke Zarathustra
SUB_FILES= pkg-message
-.if exists(/usr/games/strfile)
-STRCMD= /usr/games/strfile
-.elif exists(/usr/bin/strfile)
-STRCMD= /usr/bin/strfile
-.else
-IGNORE= needs strfile command. Please install games distribution of base system
-.endif
+BUILD_DEPENDS= fortune_strfile:misc/fortune_strfile
+STRCMD= ${LOCALBASE}/bin/fortune_strfile
do-build:
- @cd ${WRKSRC} && ${STRCMD} zarathoustra
+ (cd ${WRKSRC} && ${STRCMD} zarathoustra)
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/games/fortune
- ${INSTALL_DATA} ${WRKSRC}/zarathoustra* ${STAGEDIR}${PREFIX}/share/games/fortune
+ ${INSTALL_DATA} ${WRKSRC}/zarathoustra* \
+ ${STAGEDIR}${PREFIX}/share/games/fortune
.include <bsd.port.mk>