aboutsummaryrefslogtreecommitdiff
path: root/chinese/fortune
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2009-12-20 02:28:36 +0000
committerXin LI <delphij@FreeBSD.org>2009-12-20 02:28:36 +0000
commit84856c02a9595793208208f242525b8d6ab9694c (patch)
treefc3aa95a8aa65aa8ff034697cc855d6e60a73ec4 /chinese/fortune
parent42046fc0f4a761fd559f4a1f6f89647175093989 (diff)
downloadports-84856c02a9595793208208f242525b8d6ab9694c.tar.gz
ports-84856c02a9595793208208f242525b8d6ab9694c.zip
Notes
Diffstat (limited to 'chinese/fortune')
-rw-r--r--chinese/fortune/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/chinese/fortune/Makefile b/chinese/fortune/Makefile
index a931ea44e359..3764b815cee8 100644
--- a/chinese/fortune/Makefile
+++ b/chinese/fortune/Makefile
@@ -1,6 +1,6 @@
# New ports collection makefile for: zh-fortune
# Date created: 17 Dec 2009
-# Whom: Ju Pengfei
+# Whom: Ju Pengfei <jupengfei@gmail.com>
#
# $FreeBSD$
#
@@ -23,11 +23,16 @@ NO_BUILD= yes
USE_GMAKE= yes
USE_BZIP2= yes
+.if !exists (/usr/games/fortune) || !exists(/usr/games/strfile)
+IGNORE= needs the FreeBSD games distribution
+.endif
+
post-patch:
@${REINPLACE_CMD} -e "s|/bin/bash|${LOCALBASE}/bin/bash|" \
-e "s|/usr/bin/fortune|/usr/games/fortune|" \
${WRKSRC}/src/fortune-zh
@${REINPLACE_CMD} -e "s|/usr/|${PREFIX}/|" \
+ -e "s|strfile|/usr/games/strfile|" \
${WRKSRC}/src/Makefile
.include <bsd.port.mk>