summaryrefslogtreecommitdiff
path: root/print/teTeX-bin/Makefile
blob: 07e1bb5a4408ca341ed2cbe68ee65926938d1a82 (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
60
61
62
63
64
65
66
67
68
69
70
# $NetBSD: Makefile,v 1.71 2006/05/25 13:38:57 seb Exp $

DISTNAME=	tetex-src-${TETEX_BIN_VERS}
PKGNAME=	teTeX-bin-${TETEX_BIN_VERS}
PKGREVISION=	8
CATEGORIES=	print
MASTER_SITES=	${MASTER_SITE_TEX_CTAN:=systems/unix/teTeX/2.0/distrib/}

MAINTAINER=	kei@NetBSD.org
HOMEPAGE=	http://www.tug.org/tetex/
COMMENT=	TeX distribution for UNIX compatible systems - executables, version 2

# games/omega previously installed an omega executable too
CONFLICTS+=	teTeX2-bin-[0-9]* omega<0.90.4nb1

DEPENDS+=	teTeX-share>=2.0.2:../../print/teTeX-share
DEPENDS+=	dialog>=0.6z:../../misc/dialog

USE_LANGUAGES=	c c++
USE_TOOLS+=	bison
INFO_FILES=	# PLIST

CHECK_FILES_SKIP+=	${PREFIX}/share/texmf/ls-R

REPLACE_PERL=	texk/xdvik/t1mapper \
		texk/oxdvik/t1mapper

.include "../../mk/bsd.prefs.mk"
# sysutils/coreutils installs a 'readlink' program, so conflict with it if
# GNU_PROGRAM_PREFIX == ''
.if ${GNU_PROGRAM_PREFIX} == ""
CONFLICTS+=	coreutils-[0-9]*
.endif

.include "../../mk/compiler.mk"
#
.if ${OPSYS} == "SunOS"
# If we are using gcc3, we need to link against libgcc_s, too.  This
# ensures modules can resolve symbols they require from gcc.
.  if !empty(CC_VERSION:Mgcc-3*)
LDFLAGS+=	-lgcc_s
.  endif
.endif

.if defined(PAPERSIZE)
LOWER_PAPERSIZE_cmd=	${ECHO} ${PAPERSIZE:Q} | ${TR} '[A-Z]' '[a-z]'
LOWER_PAPERSIZE=	${LOWER_PAPERSIZE_cmd:sh}
.endif

post-install:
	@${RM} -f ${PREFIX}/share/texmf/web2c/*.log
.if defined(PAPERSIZE)
	${LOCALBASE}/bin/texconfig dvips paper ${LOWER_PAPERSIZE}
.  if ${PAPERSIZE} == "Letter"
	${LOCALBASE}/bin/texconfig xdvi us
.  else
	${LOCALBASE}/bin/texconfig xdvi ${LOWER_PAPERSIZE}
.  endif
.endif
	${LOCALBASE}/bin/texconfig font ro
	${LOCALBASE}/bin/texconfig font vardir ${VARBASE}/spool/texfonts
	${LOCALBASE}/bin/texconfig font options appendonlydir varfonts

.include "../../print/teTeX-bin/Makefile.common"

OWN_DIRS+=	${PREFIX}/share/texmf-local

.include "../../mk/xaw.buildlink3.mk"

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