summaryrefslogtreecommitdiffstats
path: root/chinese/hanzim/Makefile
blob: 87bcf1726fbd03fe05834cf2c291f8172eda8c3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Created by: ijliao
# $FreeBSD$

PORTNAME=	hanzim
PORTVERSION=	1.3
PORTREVISION=	3
CATEGORIES=	chinese tk
MASTER_SITES=	http://kamares.ucsd.edu/~arobert/Files/Chinese/ \
		http://www.525183.com/freebsd/hanzim/ \
		http://www.chinatinco.com/freebsd/hanzim/ \
		http://525183.serverbox.org/freebsd/hanzim/
MASTER_SITE_SUBDIR=	. Old
EXTRACT_SUFX=	.tgz

MAINTAINER=	sunrychen@gmail.com
COMMENT=	A Chinese character learning-aid program

BUILD_DEPENDS+=	wish8.4:${PORTSDIR}/x11-toolkits/tk84
RUN_DEPENDS+=	wish8.4:${PORTSDIR}/x11-toolkits/tk84

WRKSRC=		${WRKDIR}/Hanzim
ALL_TARGET=	${PORTNAME}

MAN1=		hanzim.1

NO_STAGE=	yes
BROKEN_powepc=	Does not install on powerpc: signal 11

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g' ${WRKSRC}/hanzim.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/hanzim ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/hanzim.man ${PREFIX}/man/man1/hanzim.1
	@${MKDIR} ${PREFIX}/lib/hanzim
	${INSTALL_DATA} ${WRKSRC}/Data/* ${PREFIX}/lib/hanzim
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/hanzim.doc ${DOCSDIR}
.endif
	${PREFIX}/bin/hanzim -port-install

.include <bsd.port.mk>
OpenPOWER on IntegriCloud