Lines 7-18
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= zhcon |
8 |
PORTNAME= zhcon |
9 |
PORTVERSION= 0.2.3 |
9 |
PORTVERSION= 0.2.3 |
10 |
PORTREVISION= 5 |
10 |
PORTREVISION= 6 |
11 |
CATEGORIES= chinese |
11 |
CATEGORIES= chinese |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
13 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
13 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
14 |
|
14 |
|
15 |
MAINTAINER= ports@FreeBSD.org |
15 |
MAINTAINER= chinsan.tw@gmail.com |
16 |
COMMENT= A fast Console Chinese System which supports framebuffer device |
16 |
COMMENT= A fast Console Chinese System which supports framebuffer device |
17 |
|
17 |
|
18 |
GNU_CONFIGURE= yes |
18 |
GNU_CONFIGURE= yes |
Lines 21-31
Link Here
|
21 |
# Don't bother to add ".if !defined(WITHOUT_NLS)", zhcon requires libintl |
21 |
# Don't bother to add ".if !defined(WITHOUT_NLS)", zhcon requires libintl |
22 |
USE_GETTEXT= yes |
22 |
USE_GETTEXT= yes |
23 |
|
23 |
|
|
|
24 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
25 |
SUB_FILES= pkg-message |
24 |
MAN1= zhcon.1 |
26 |
MAN1= zhcon.1 |
25 |
|
27 |
|
26 |
post-patch: |
28 |
post-patch: |
27 |
@${REINPLACE_CMD} -Ee 's,/dev/vga,/dev/ttyv0,g' ${WRKSRC}/src/display/fbdev.cpp |
29 |
@${REINPLACE_CMD} -Ee 's,/dev/vga,/dev/ttyv0,g' ${WRKSRC}/src/display/fbdev.cpp |
|
|
30 |
@${REINPLACE_CMD} -e '5 s|#||;' ${WRKSRC}/src/zhcon.conf |
28 |
@${REINPLACE_CMD} -Ee 's,(\s*=\s*)("?)/usr/local([^"]*)("?),\1\2${PREFIX}\3\4,g' \ |
31 |
@${REINPLACE_CMD} -Ee 's,(\s*=\s*)("?)/usr/local([^"]*)("?),\1\2${PREFIX}\3\4,g' \ |
29 |
-e '/_nl_expand_alias/s,\(0\),\(\),g' ${WRKSRC}/${CONFIGURE_SCRIPT} |
32 |
-e '/_nl_expand_alias/s,\(0\),\(\),g' ${WRKSRC}/${CONFIGURE_SCRIPT} |
|
|
33 |
|
34 |
post-install: |
35 |
@${CAT} ${PKGMESSAGE} |
30 |
|
36 |
|
31 |
.include <bsd.port.mk> |
37 |
.include <bsd.port.mk> |