1522e709da
The program converts a GB file to a BIG-5 file, or a BIG-5 file to a GB file. GB (GuoBiao) refers to the standard implementation of "GB2312-80" of Mainland China, in which the two bytes representing a GB code have their most significant bit set to 1. BIG-5 refers to the Big Five standard published in 1984 by Taiwan's Institute for Information Industry.
37 lines
954 B
Makefile
37 lines
954 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2002/01/24 01:43:57 kevlo Exp $
|
|
|
|
COMMENT= "convert between GB and BIG-5 codes"
|
|
|
|
DISTNAME= zh-hc-3.0
|
|
CATEGORIES= chinese
|
|
NEED_VERSION= 1.504
|
|
|
|
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ftp://ftp.cuhk.hk/pub/chinese/ifcss/software/unix/convert/
|
|
DISTFILES= hc-30.tar.gz hc-supp.tab
|
|
EXTRACT_ONLY= hc-30.tar.gz
|
|
|
|
WRKDIST= ${WRKDIR}/hc3
|
|
|
|
ALL_TARGET= hc b2g g2b
|
|
|
|
pre-patch:
|
|
perl -pi -e 's|malloc.h|stdlib.h|' ${WRKSRC}/hclib.c
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/hc
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hc ${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/b2g ${PREFIX}/bin
|
|
${INSTALL_SCRIPT} ${WRKSRC}/g2b ${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/hc.tab ${PREFIX}/share/hc
|
|
${INSTALL_DATA} ${DISTDIR}/hc-supp.tab ${PREFIX}/share/hc
|
|
${INSTALL_MAN} ${WRKSRC}/hc.1 ${PREFIX}/man/man1
|
|
|
|
.include <bsd.port.mk>
|