- Fix run error on 5.X/6.X

- Take maintainership

PR:		ports/96786
Submitted by:	chinsan
This commit is contained in:
Vanilla I. Shu 2006-05-05 15:35:02 +00:00
parent 2a27361ee9
commit c133b84b48
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=161423
2 changed files with 16 additions and 2 deletions

View File

@ -7,12 +7,12 @@
PORTNAME= zhcon
PORTVERSION= 0.2.3
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= chinese
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= chinsan.tw@gmail.com
COMMENT= A fast Console Chinese System which supports framebuffer device
GNU_CONFIGURE= yes
@ -21,11 +21,17 @@ ONLY_FOR_ARCHS= i386
# Don't bother to add ".if !defined(WITHOUT_NLS)", zhcon requires libintl
USE_GETTEXT= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-message
MAN1= zhcon.1
post-patch:
@${REINPLACE_CMD} -Ee 's,/dev/vga,/dev/ttyv0,g' ${WRKSRC}/src/display/fbdev.cpp
@${REINPLACE_CMD} -e '5 s|#||;' ${WRKSRC}/src/zhcon.conf
@${REINPLACE_CMD} -Ee 's,(\s*=\s*)("?)/usr/local([^"]*)("?),\1\2${PREFIX}\3\4,g' \
-e '/_nl_expand_alias/s,\(0\),\(\),g' ${WRKSRC}/${CONFIGURE_SCRIPT}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>

View File

@ -0,0 +1,8 @@
**************************************************************************
You need to add the following two line into your kernel config:
options SC_PIXEL_MODE
options VESA # this line can be replaced by 'kldload vesa'
**************************************************************************