Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Sep 2004 02:28:17 +0800 (CST)
From:      Yen-Ming Lee <leeym@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/71981: [PATCH] chinese/zh-chinput3: unbreak
Message-ID:  <20040921182817.1CF5A3EADE1@utopia.leeym.com>
Resent-Message-ID: <200409211830.i8LIUHLR003804@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         71981
>Category:       ports
>Synopsis:       [PATCH] chinese/zh-chinput3: unbreak
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 21 18:30:17 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 5.3-BETA4 i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD utopia.leeym.com 5.3-BETA4 FreeBSD 5.3-BETA4 #7: Mon Sep 13 05:12:30 CST 2004
>Description:

- use REINPLACE to unbreak this port
- make this port PREFIX clean

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:

http://pointyhat.freebsd.org/errorlogs/i386-5-latest/zh-chinput-3.0.2.5_1.log

>Fix:

--- zh-chinput-3.0.2.5_1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/chinese/chinput3/Makefile,v
retrieving revision 1.14
diff -u -u -r1.14 Makefile
--- Makefile	23 May 2004 10:08:49 -0000	1.14
+++ Makefile	21 Sep 2004 18:27:22 -0000
@@ -32,6 +32,12 @@
 BROKEN=		"Does not compile on amd64 (needs -fPIC)"
 .endif
 
+post-patch:
+	@${REINPLACE_CMD} -e '/extern int ForwardEvent();/d' \
+		${WRKSRC}/src/Chinput-*/src/*.c
+	@${FIND} ${WRKSRC} -type f | \
+		${XARGS} ${REINPLACE_CMD} -e 's,/usr/local,${PREFIX},g'
+
 pre-build:
 	@${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} \
 		-e 's|-lc_r|${PTHREAD_CFLAGS} ${PTHREAD_LIBS}|'
--- zh-chinput-3.0.2.5_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040921182817.1CF5A3EADE1>