aboutsummaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2015-02-15 13:33:25 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2015-02-15 13:33:25 +0000
commitaea62ac573548ea40795902c0b0d00891f16d950 (patch)
tree564efd14d553a1a2b020275d456e35f8605bd0de /chinese
parent62b0e06bbad2d51be5f4205c55c6e932f3e5bad2 (diff)
downloadports-aea62ac573548ea40795902c0b0d00891f16d950.tar.gz
ports-aea62ac573548ea40795902c0b0d00891f16d950.zip
Notes
Diffstat (limited to 'chinese')
-rw-r--r--chinese/fortune/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/chinese/fortune/Makefile b/chinese/fortune/Makefile
index 958a7fe99db8..da735034a38b 100644
--- a/chinese/fortune/Makefile
+++ b/chinese/fortune/Makefile
@@ -18,13 +18,17 @@ NO_BUILD= yes
USES= tar:bzip2 gmake
SUB_FILES= pkg-message
-.if !exists(/usr/games/fortune) || !exists(/usr/games/strfile)
-IGNORE= needs the FreeBSD games distribution
+.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
post-patch:
@${REINPLACE_CMD} -e "s|/usr/|${PREFIX}/|" \
- -e "s|strfile|/usr/games/strfile|" \
+ -e "s|strfile|${STRFILE}|" \
${WRKSRC}/src/Makefile
.include <bsd.port.mk>