diff options
author | keith <keith@FreeBSD.org> | 2000-12-01 12:29:28 +0800 |
---|---|---|
committer | keith <keith@FreeBSD.org> | 2000-12-01 12:29:28 +0800 |
commit | 0e06eef0c5a8c5d1d50595be35e2bd3d874e6314 (patch) | |
tree | e84a12aec5868b58b212ad9c1140d34e4c08012d | |
parent | c65215b74e702f290942a7079b1a58b51a3535d7 (diff) | |
download | freebsd-ports-gnome-0e06eef0c5a8c5d1d50595be35e2bd3d874e6314.tar.gz freebsd-ports-gnome-0e06eef0c5a8c5d1d50595be35e2bd3d874e6314.tar.zst freebsd-ports-gnome-0e06eef0c5a8c5d1d50595be35e2bd3d874e6314.zip |
Fix machine/console.h -> sys/{consio,kbio}.h change.
PR: ports/23197
-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> |