summaryrefslogtreecommitdiff
path: root/print/tex-hlatex/Makefile
blob: 2d285e888a6ba1b643d1ae22b51a9cfb7974e3df (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
51
52
53
54
55
56
57
58
59
# $NetBSD: Makefile,v 1.4 2005/12/26 23:39:33 schmonz Exp $

DISTNAME=	HLaTeX-1.0.1
PKGNAME=	tex-hlatex-${DISTNAME:S/HLaTeX-//}
PKGREVISION=	1
CATEGORIES=	print
MASTER_SITES=	ftp://ftp.ktug.or.kr/pub/ktug/hlatex/

MAINTAINER=	minskim@NetBSD.org
HOMEPAGE=	http://project.ktug.or.kr/hlatex/
COMMENT=	LaTeX package to typeset Hangul

PKG_FAIL_REASON+=	"Broken on NetBSD/i386 3.0 in pkgsrc-2005Q4"
PKG_FAIL_REASON+=	"Will be removed in pkgsrc-2006Q1 unless fixed"

DEPENDS+=	tex-uhc-fonts-base>=1.0:../../fonts/tex-uhc-fonts-base

WRKSRC=		${WRKDIR}/HLaTeX

.include "../../print/teTeX/module.mk"

do-build:
	${CC} ${CPPFLAGS} ${CFLAGS} -o ${WRKSRC}/hbibtex \
		${WRKSRC}/contrib/hbibtex.c
	${CC} ${CPPFLAGS} ${CFLAGS} -o ${WRKSRC}/hmakeindex \
		${WRKSRC}/contrib/hmakeindex.c

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/hbibtex ${PREFIX}/bin/
	${INSTALL_PROGRAM} ${WRKSRC}/hmakeindex ${PREFIX}/bin/
	${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/tex/latex/hlatex
	${INSTALL_DATA} ${WRKSRC}/latex/* \
		${PKG_LOCALTEXMFPREFIX}/tex/latex/hlatex/
	${INSTALL_DATA} ${WRKSRC}/contrib/hbname-k.tex \
		${PKG_LOCALTEXMFPREFIX}/tex/latex/hlatex/
	${INSTALL_DATA} ${WRKSRC}/contrib/*.sty ${WRKSRC}/contrib/hfn-k.tex \
		${PKG_LOCALTEXMFPREFIX}/tex/latex/hlatex/
	${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/tex/lambda/hlatex
.for f in u8hangul.tex uhc-test.tex uhc*.fd
	${INSTALL_DATA} ${WRKSRC}/lambda/${f} \
		${PKG_LOCALTEXMFPREFIX}/tex/lambda/hlatex/
.endfor
	${INSTALL_DATA} ${WRKSRC}/contrib/hbname-u.tex \
		${PKG_LOCALTEXMFPREFIX}/tex/lambda/hlatex/
	${INSTALL_DATA} ${WRKSRC}/contrib/hfn-u.tex \
		${PKG_LOCALTEXMFPREFIX}/tex/lambda/hlatex/
	${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/omega/ocp/hlatex
	${INSTALL_DATA} ${WRKSRC}/lambda/hlatex.ocp \
		${PKG_LOCALTEXMFPREFIX}/omega/ocp/hlatex/
	${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/omega/otp/hlatex
	${INSTALL_DATA} ${WRKSRC}/lambda/hlatex.otp \
		${PKG_LOCALTEXMFPREFIX}/omega/otp/hlatex/
	${INSTALL_DATA_DIR} ${PKG_LOCALTEXMFPREFIX}/bibtex/bst/hlatex
	${INSTALL_DATA} ${WRKSRC}/contrib/halpha.bst \
		${PKG_LOCALTEXMFPREFIX}/bibtex/bst/hlatex/
	${INSTALL_DATA} ${WRKSRC}/contrib/*.ist \
		${PKG_LOCALTEXMFPREFIX}/makeindex/

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