From 4f52b082636af6d8d16c32a8e361281892d7bc65 Mon Sep 17 00:00:00 2001 From: delphij Date: Sun, 20 Dec 2009 02:28:36 +0000 Subject: - 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 --- chinese/fortune/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'chinese') 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 # # $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 -- cgit v1.1