summaryrefslogtreecommitdiffstats
path: root/print/xdvi/Makefile
blob: 4bc750933d20ea8cc57c9194c2a44b1e6340faf7 (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
# New ports collection makefile for:    xdvi
# Version required:     patchlevel 20
# Date created:         1 October 1994
# Whom:                 jmz
#
# $Id: Makefile,v 1.23 1997/03/09 22:51:56 jmz Exp $
#

DISTNAME=	xdvi-20
PKGNAME=	xdvi-pl20
CATEGORIES=	print
MASTER_SITES=	${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR=	applications
EXTRACT_SUFX=	.tar.Z

MAINTAINER=	jmz@FreeBSD.org

DIST_SUBDIR=	xdvi	# to share distfiles with japanese/xdvi
USE_IMAKE=	yes
USE_GMAKE=	yes
XMKMF=		xmkmf
.if defined(PACKAGE_BUILDING)
SCRIPTS_ENV=	PACKAGE_BUILDING=${PACKAGE_BUILDING}
.else
IS_INTERACTIVE=	yes
.endif

MAN1=		xdvi.1

do-install: 
	@${MKDIR} ${PREFIX}/man/man1
	@${MKDIR} ${PREFIX}/bin
	@(cd ${WRKSRC}; ${GMAKE} install.man \
		MANDIR=${PREFIX}/man/man1 MANSUFFIX=1)
	@(cd ${WRKSRC}; ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} xdvi.man)
	@(cd ${WRKSRC}; ${GMAKE} -f Makefile install BINDIR=${PREFIX}/bin)
	@(cd ${WRKSRC}; ${INSTALL_SCRIPT} MakeTeXPK ${PREFIX}/bin)

pre-clean:
	@rm -f ${SCRIPTDIR}/post-install

.include <bsd.port.mk>
OpenPOWER on IntegriCloud