summaryrefslogtreecommitdiff
path: root/chinese/chinput3/Makefile
diff options
context:
space:
mode:
authorMichael Nottebrock <lofi@FreeBSD.org>2004-05-15 15:32:19 +0000
committerMichael Nottebrock <lofi@FreeBSD.org>2004-05-15 15:32:19 +0000
commit762c749fe1087906e594a0858458abf556cb905e (patch)
tree333194deec6df509e92342d0d60938b52dc927df /chinese/chinput3/Makefile
parentautoconf not available in extract/patch-targets, so move invocation to (diff)
Respect PTHREAD_{CFLAGS,LIBS}, unmark FORBIDDEN, mark BROKEN on 4.x/Alpha
Diffstat (limited to '')
-rw-r--r--chinese/chinput3/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/chinese/chinput3/Makefile b/chinese/chinput3/Makefile
index 85c513667670..043a9ab7f1c9 100644
--- a/chinese/chinput3/Makefile
+++ b/chinese/chinput3/Makefile
@@ -17,16 +17,21 @@ COMMENT= Chinese GB2312,BIG5 code input server
LATEST_LINK= zh-chinput3
USE_XLIB= yes
USE_GNOME= gtk12 imlib
+USE_REINPLACE= yes
MSG_FILE= ${.CURDIR}/pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
-.if ${OSVERSION} >= 502102
-FORBIDDEN= "Does not respect PTHREAD_{CFLAGS,LIBS}"
+.if ${ARCH} == "alpha" && ${OSVERSION} < 500000
+BROKEN= "Does not compile on FreeBSD-4.x/Alpha"
.endif
+pre-build:
+ @${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} \
+ -e 's|-lc_r|${PTHREAD_CFLAGS} ${PTHREAD_LIBS}|'
+
post-install:
@${SED} -e 's,%%X11BASE%%,${X11BASE},g' ${MSG_FILE} > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}