aboutsummaryrefslogtreecommitdiff
path: root/chinese/hc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/hc/Makefile')
-rw-r--r--chinese/hc/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/chinese/hc/Makefile b/chinese/hc/Makefile
index a6551700f211..7e737ac6b68f 100644
--- a/chinese/hc/Makefile
+++ b/chinese/hc/Makefile
@@ -21,6 +21,9 @@ EXTRACT_ONLY= hc-30.tar.gz
ALL_TARGET= hc b2g g2b
MAN1= hc.1
+pre-patch:
+ @${PERL} -pi -e 's|malloc.h|stdlib.h|' ${WRKSRC}/hclib.c
+
do-install:
@${MKDIR} ${PREFIX}/share/chinese
${INSTALL_PROGRAM} ${WRKSRC}/hc ${PREFIX}/bin