summaryrefslogtreecommitdiff
path: root/chinese/miniChinput
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2009-06-01 17:29:21 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2009-06-01 17:29:21 +0000
commitaa3514e24f6faf5302ec9c8d8ed467963ec64746 (patch)
tree0731d83a2ec0516260cfa12777c20235dd77041a /chinese/miniChinput
parentHere are new Linux Fedora 10 infrastructure ports. (diff)
Fix build with custom LOCALBSE and respect CFLAGS a little more.
Reported by: QATty
Notes
Notes: svn path=/head/; revision=234984
Diffstat (limited to 'chinese/miniChinput')
-rw-r--r--chinese/miniChinput/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/chinese/miniChinput/Makefile b/chinese/miniChinput/Makefile
index 16e845c4f124..5f1442a9aabf 100644
--- a/chinese/miniChinput/Makefile
+++ b/chinese/miniChinput/Makefile
@@ -15,6 +15,7 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= A tiny version of Chinput
GNU_CONFIGURE= yes
+CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
USE_GMAKE= yes
USE_ICONV= yes
USE_XORG= x11 xt
@@ -33,6 +34,10 @@ BROKEN= Build fails on sparc64
post-patch:
@${REINPLACE_CMD} -e 's,make,${GMAKE},g' ${WRKSRC}/src/Makefile.in
@echo "install:" >> ${WRKSRC}/src/IMdkit/Makefile
+ @${REINPLACE_CMD} 's,^CFLAGS =,CFLAGS +=,' ${WRKSRC}/ImmModules/cce/Makefile.in \
+ ${WRKSRC}/ImmModules/turbo/Makefile.in \
+ ${WRKSRC}/src/server/Makefile.in \
+ ${WRKSRC}/src/client/Makefile.in
@${REINPLACE_CMD} -e 's#$$(prefix)$$(imdir)/{gb,gbk,big5}#$$(prefix)$$(imdir)/gb $$(prefix)$$(imdir)/gbk $$(prefix)$$(imdir)/big5#g' ${WRKSRC}/ImmModules/turbo/Makefile.in
@${REINPLACE_CMD} -e 's,-@PACKAGE_VERSION@,,g' ${WRKSRC}/doc/Makefile.in
@${REINPLACE_CMD} -e 's,/share/man,/man,g' ${WRKSRC}/configure