Fix build with custom LOCALBSE and respect CFLAGS a little more.

Reported by:	QATty
This commit is contained in:
Ion-Mihai Tetcu 2009-06-01 17:29:21 +00:00
parent c11516af7b
commit aa3514e24f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=234984

View File

@ -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