aboutsummaryrefslogtreecommitdiffstats
path: root/print/xdvi/Makefile
blob: b8e45642c0d8f992a993cc9d804c97e985a93ace (plain) (blame)
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
# Created by: Jean-Marc Zucconi <jmz@FreeBSD.org>
# $FreeBSD$

PORTNAME=   xdvi
PORTVERSION=    pl20
PORTREVISION=   4
CATEGORIES= print
MASTER_SITES=   ${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR= applications
DISTNAME=   ${PORTNAME}-20
EXTRACT_SUFX=   .tar.Z
DIST_SUBDIR=    ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    DVI previewer for the X Window System

DEPRECATED= Unmaintained interactive port
EXPIRATION_DATE=2014-08-20

CONFLICTS=  teTeX-*

USES=       gmake imake:notall
USE_XORG=   ice sm x11 xaw xext xmu xt xpm
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL=   ${WRKDIR}/pkg-deinstall
PLIST_SUB=  LOCALBASE=${LOCALBASE}
.if defined(PACKAGE_BUILDING)
SCRIPTS_ENV=    PACKAGE_BUILDING=${PACKAGE_BUILDING}
.else
IS_INTERACTIVE= yes
.endif

MAN1=       xdvi.1

NO_STAGE=   yes
post-configure:
    @${REINPLACE_CMD} -e "s=distclean::=distclean:=g" ${WRKSRC}/Makefile
.for F in pkg-install pkg-deinstall
    ${SED}  -e "s=%%PREFIX%%=${PREFIX}=" \
        -e "s=%%LOCALBASE%%=${LOCALBASE}=" \
        < ${PKGDIR}/${F} > ${WRKDIR}/${F}
.endfor

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

post-install:
    @if [ -f ${WRKDIR}/post-install ]; then ${SH} ${WRKDIR}/post-install; fi

.include <bsd.port.mk>