summaryrefslogtreecommitdiff
path: root/print/teTeX-bin/Makefile
blob: e5d0cf9425d65dcbddc98277d1f0c935079b3af4 (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
# $NetBSD: Makefile,v 1.6 1999/08/24 14:21:00 tron Exp $
# FreeBSD Id: Makefile,v 1.20 1997/08/05 06:56:41 tg Exp
#

DISTNAME=	teTeX-src-1.0.6
PKGNAME=	teTeX-bin-1.0.6
CATEGORIES=	print
MASTER_SITES=	${MASTER_SITE_TEX_CTAN:=systems/unix/teTeX/1.0/distrib/sources/}

MAINTAINER=	hubertf@netbsd.org

BUILD_DEPENDS+=	${LOCALBASE}/bin/bison:../../devel/bison
DEPENDS+=	teTeX-share-1.0:../teTeX-share
DEPENDS+=	dialog-0.6z:../../misc/dialog
DEPENDS+=	libwww-5.1m1:../../www/libwww
DEPENDS+=	ncurses-4.2:../../devel/ncurses
DEPENDS+=	png-1.0.3:../../graphics/png

ALL_TARGET=	all
INSTALL_TARGET=	install strip
DIST_SUBDIR=	teTeX
USE_GMAKE=	yes
USE_X11=	yes
CFLAGS+=	-Dunix
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--without-texinfo \
		--without-dialog \
		--disable-multiplatform \
		--enable-ipc \
		--enable-auto-core \
		--with-epsfwin \
		--with-hp2627win \
		--with-mftalkwin \
		--with-x11 \
		--enable-a4 \
		--with-system-wwwlib \
		--with-libwww=${LOCALBASE} \
		--with-libwww-libdir=${LOCALBASE}/lib \
		--with-libwww-include=${LOCALBASE}/include/w3c-libwww \
		--with-system-ncurses \
		--with-ncurses-libdir=${LOCALBASE}/lib \
		--with-ncurses-include=${LOCALBASE}/include \
		--with-system-pnglib \
		--with-pnglib-libdir=${LOCALBASE}/lib \
		--with-pnglib-include=${LOCALBASE}/include \
		--with-system-zlib \
		--with-zlib-libdir=/usr/lib \
		--with-zlib-include=/usr/include

CONFIGURE_ENV+=	INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
		INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
		INSTALL_DATA="${INSTALL_DATA}"

post-install:
	@${RM} ${PREFIX}/share/texmf/web2c/*.log
	### someone needs to adjust papersize to this:
	#texconfig dvips paper a4
	#texconfig xdvi a4
	texconfig font ro
	texconfig font vardir /var/spool/texfonts
	texconfig font options appendonlydir varfonts

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