summaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2016-09-14 19:50:46 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2016-09-14 19:50:46 +0000
commitcc9b2efba46f34f81fcc465a84b1fe9dd27eff61 (patch)
treeec6270397becb70ebcaa5c6615c9cd29a5684b63 /chinese
parentUpdate to version 0.1.4 (diff)
Revert recent strfile changes, strfile is already in base
With hat: portmgr
Notes
Notes: svn path=/head/; revision=422160
Diffstat (limited to 'chinese')
-rw-r--r--chinese/fortune/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/chinese/fortune/Makefile b/chinese/fortune/Makefile
index a353ced37c02..ec898def5cb7 100644
--- a/chinese/fortune/Makefile
+++ b/chinese/fortune/Makefile
@@ -14,14 +14,20 @@ COMMENT= Classic fortune file in Chinese
BROKEN= Unfetchable (google code has gone away)
RUN_DEPENDS= autob5:chinese/autoconvert
-BUILD_DEPENDS= fortune_strfile:misc/fortune_strfile
-STRFILE= ${LOCALBASE}/bin/fortune_strfile
PROJECTHOST= chinese-fortune
NO_BUILD= yes
USES= tar:bzip2 gmake
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
+
post-patch:
@${REINPLACE_CMD} -e "s|/usr/|${PREFIX}/|" \
-e "s|strfile|${STRFILE}|" \