summaryrefslogtreecommitdiff
path: root/print/tex-kotex-utils/Makefile
blob: 900cf4e704c1428ac44942600236802f60620bc2 (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
48
49
50
# $NetBSD: Makefile,v 1.4 2012/10/03 21:57:21 wiz Exp $

DISTNAME=	kotex-dist-20110504
PKGNAME=	tex-kotex-utils-0.3
PKGREVISION=	1
CATEGORIES=	print
MASTER_SITES=	http://ftp.ktug.or.kr/KTUG/ko.TeX/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
DISTFILES+=	kotexindy.pl utf8.xdy
SITES.kotexindy.pl= \
http://ftp.ktug.or.kr/pub/ktug/texlive/texmf-dist/scripts/kotex-util/perl/
SITES.utf8.xdy= \
http://ftp.ktug.or.kr/pub/ktug/texlive/texmf/xindy/modules/lang/korean/
DIST_SUBDIR=	${PKGNAME_NOREV}

MAINTAINER=	minskim@NetBSD.org
HOMEPAGE=	http://project.ktug.or.kr/ko.TeX/
COMMENT=	Utilities for tex-kotex

PKG_DESTDIR_SUPPORT=	user-destdir

USE_TOOLS+=	perl:run
WRKSRC=		${WRKDIR}

REPLACE_PERL=	*.pl scripts/kotex-util/perl/*.pl

INSTALLATION_DIRS+=	bin share/texmf/xindy/modules/lang/korean

do-build:
.for f in hbibtex hmakeindex
	cd ${WRKSRC}/source/latex/kotex-util && \
	${CC} ${CPPFLAGS} ${CFLAGS} -o ${f} ${f}.c
.endfor

do-install:
.for f in hbibtex hmakeindex
	${INSTALL_PROGRAM} ${WRKSRC}/source/latex/kotex-util/${f} \
		${DESTDIR}${PREFIX}/bin
.endfor
.for f in euc-bookmark hypua2jamo insertjamofiller jamo2hypua komkindex \
	ttf2kotexfont
	${INSTALL_SCRIPT} ${WRKSRC}/scripts/kotex-util/perl/${f}.pl \
		${DESTDIR}${PREFIX}/bin/${f}
.endfor
	${INSTALL_SCRIPT} ${WRKSRC}/kotexindy.pl \
		${DESTDIR}${PREFIX}/bin/kotexindy
	${INSTALL_DATA} ${WRKSRC}/utf8.xdy \
		${DESTDIR}${PREFIX}/share/texmf/xindy/modules/lang/korean/

.include "../../mk/bsd.pkg.mk"