aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2016-09-15 03:50:46 +0800
committerantoine <antoine@FreeBSD.org>2016-09-15 03:50:46 +0800
commite0831c933ca8bda64a7a5ed9b16f6302bb692d59 (patch)
treeec6270397becb70ebcaa5c6615c9cd29a5684b63 /chinese
parent21c1782a9f81ba9c12ab39a2e136b9e6ff232d48 (diff)
downloadfreebsd-ports-gnome-e0831c933ca8bda64a7a5ed9b16f6302bb692d59.tar.gz
freebsd-ports-gnome-e0831c933ca8bda64a7a5ed9b16f6302bb692d59.tar.zst
freebsd-ports-gnome-e0831c933ca8bda64a7a5ed9b16f6302bb692d59.zip
Revert recent strfile changes, strfile is already in base
With hat: portmgr
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}|" \