summaryrefslogtreecommitdiff
path: root/print/tex-kotex-utils/Makefile
blob: 2d598d1cba07b14a50d0ee7c0fdd390b61b9475a (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.7 2013/11/13 19:27:55 minskim Exp $

DISTNAME=	kotex-dist-20110504
PKGNAME=	tex-kotex-utils-0.3
PKGREVISION=	3
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

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

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

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

.include "../../print/kpathsea/texmf.mk"

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-dist/xindy/modules/lang/korean/

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