diff options
author | Jing-Tang Keith Jang <keith@FreeBSD.org> | 2000-12-01 04:29:28 +0000 |
---|---|---|
committer | Jing-Tang Keith Jang <keith@FreeBSD.org> | 2000-12-01 04:29:28 +0000 |
commit | e7bf354fcc21c6efea79829674728a0b04ab0a44 (patch) | |
tree | 896d30e17c26394f1ca4170f0323f700b1995e90 /chinese | |
parent | edd90209be7c1e108ad1656ca215f53747ef0188 (diff) |
Fix machine/console.h -> sys/{consio,kbio}.h change.
PR: ports/23197
Notes
Notes:
svn path=/head/; revision=35569
Diffstat (limited to 'chinese')
-rw-r--r-- | chinese/big5con/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chinese/big5con/Makefile b/chinese/big5con/Makefile index 2c5f8b6e0039..abadbaacf2ec 100644 --- a/chinese/big5con/Makefile +++ b/chinese/big5con/Makefile @@ -28,6 +28,12 @@ EXTRACT_ONLY= ${DISTNAME}.tgz # Fix some bugs # ftp://bsd.sinica.edu.tw/pub/FreeBSD/taiwan/users/woju/source/b5c-d2e.patch +.include <bsd.port.pre.mk> +post-patch: +.if ${OSVERSION} > 500012 + @perl -pi -e 's,machine/console.h>,sys/consio.h>\n#include\t<sys/kbio.h>\n,' ${WRKSRC}/include/* + @perl -pi -e 's,machine/console.h>,sys/consio.h>\n#include\t<sys/kbio.h>\n,' ${WRKSRC}/src/* +.endif pre-install: @if [ ! -f ${PREFIX}/lib/fonts/kc16.smf ]; then \ tar xvfzp ${DISTDIR}/b5cbin-pa.tgz -C ${PREFIX}; \ @@ -36,4 +42,4 @@ pre-install: post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |