summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2009-12-20 02:28:36 +0000
committerdelphij <delphij@FreeBSD.org>2009-12-20 02:28:36 +0000
commit4f52b082636af6d8d16c32a8e361281892d7bc65 (patch)
tree66a5f81264b3e961563c15e4cc80c30a84255681
parentd93fb5c475a6a3e10d9c2f2af6244c70bfab0369 (diff)
downloadFreeBSD-ports-4f52b082636af6d8d16c32a8e361281892d7bc65.zip
FreeBSD-ports-4f52b082636af6d8d16c32a8e361281892d7bc65.tar.gz
- Add e-mail for creator;
- Mark IGNORE if games distribution is not installed; - Use full path for strfile in case it is not in PATH [1]; Reported by: pav [1] Submitted by: maintainer
-rw-r--r--chinese/fortune/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/chinese/fortune/Makefile b/chinese/fortune/Makefile
index a931ea4..3764b81 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>
OpenPOWER on IntegriCloud