2013-03-11 06:48:55 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.10 2013/03/11 10:48:55 espie Exp $
|
2002-01-23 20:43:57 -05:00
|
|
|
|
2007-09-15 17:36:57 -04:00
|
|
|
COMMENT= convert between GB and BIG-5 codes
|
2002-01-23 20:43:57 -05:00
|
|
|
|
|
|
|
DISTNAME= zh-hc-3.0
|
|
|
|
CATEGORIES= chinese
|
|
|
|
|
|
|
|
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
|
|
|
|
|
2002-03-25 18:26:02 -05:00
|
|
|
# Fairly restrictive licence
|
|
|
|
PERMIT_PACKAGE_CDROM= No
|
2013-03-11 06:48:55 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2010-07-24 03:01:03 -04:00
|
|
|
|
2004-11-21 16:51:36 -05:00
|
|
|
WANTLIB= c
|
2002-01-23 20:43:57 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2010-10-18 12:52:44 -04:00
|
|
|
USE_GROFF = Yes
|
2002-01-23 20:43:57 -05:00
|
|
|
ALL_TARGET= hc b2g g2b
|
|
|
|
|
2013-03-10 21:30:26 -04:00
|
|
|
NO_TEST= Yes
|
2002-10-24 19:52:29 -04:00
|
|
|
|
2002-01-23 20:43:57 -05:00
|
|
|
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
|
2003-10-26 18:49:31 -05:00
|
|
|
${INSTALL_DATA} ${FULLDISTDIR}/hc-supp.tab ${PREFIX}/share/hc
|
2002-01-23 20:43:57 -05:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/hc.1 ${PREFIX}/man/man1
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|