summaryrefslogtreecommitdiff
path: root/print/ja-vfxdvik/Makefile
blob: 676de672df8e31fb456836b1279ff724be156862 (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
# $NetBSD: Makefile,v 1.1.1.1 2002/05/31 13:01:06 seb Exp $
#

DISTNAME=	xdvik-22.15
PKGNAME=	ja-vfxdvik-22.15
PKGREVISION=	1
CATEGORIES=	japanese print
MASTER_SITES=	ftp://ftp.appi.keio.ac.jp/pub/xdvi/

PATCH_SITES=	ftp://ftp.appi.keio.ac.jp/pub/xdvi/
PATCHFILES=	xdvik-22.15-j1.04.patch.gz
PATCH_DIST_ARGS=-d ${WRKSRC} --quiet -E -p1

MAINTAINER=	tech-pkg-ja@jp.netbsd.org
HOMEPAGE=	# no home page
COMMENT=	xdvik with vflib

DEPENDS+=	TeXfamily>=1.2.1:../../print/texfamily
DEPENDS+=	ja-vflib-lib-[0-9]*:../../print/ja-vflib-lib

XDVI_DIR=	${WRKDIR}/${DISTNAME}/texk/xdvik

USE_GMAKE=	yes
USE_X11=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--enable-local-texmf=texmf.local \
		--without-texinfo \
		--without-dialog \
		--disable-multiplatform \
		--enable-ipc \
		--with-epsfwin \
		--with-hp2627win \
		--with-mftalkwin \
		--with-x11 \
		--with-system-wwwlib=yes \
		--with-libwww-config=${LOCALBASE}/bin/libwww-config \
		--with-system-pnglib \
		--with-pnglib-libdir=${LOCALBASE}/lib \
		--with-pnglib-include=${LOCALBASE}/include \
		--with-system-zlib \
		--enable-xdviprint=${LOCALBASE}/bin/vfxdviprint \
		--enable-xdvietcdir=${LOCALBASE}/share/texmf.local/vfxdvi

.include "../../mk/bsd.prefs.mk"
.if defined(PAPERSIZE) && ${PAPERSIZE} == "A4"
CONFIGURE_ARGS+=--enable-a4
.endif

.if ${OPSYS} != "SunOS"
CONFIGURE_ARGS+=--enable-auto-core \
		--with-zlib-libdir=/usr/lib \
		--with-zlib-include=/usr/include
.else
CONFIGURE_ARGS+= --with-zlib-libdir=${LOCALBASE}/lib \
		--with-zlib-include=${LOCALBASE}/include
.endif

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

do-build:
	cd ${XDVI_DIR} && ${MAKE_PROGRAM}

do-install:
	cd ${XDVI_DIR} && ${MAKE_PROGRAM} install

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