aboutsummaryrefslogtreecommitdiffstats
path: root/print/xtexsh/Makefile
blob: af880cc5a6a680c83f145d57a430d86dd2a16519 (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
# New ports collection makefile for:   xtexsh
# Date created:         11 August 2001
# Whom:                 Jean-Sebastien Roy <js@jeannot.org>
#
# $FreeBSD$
#

PORTNAME=   xtexsh
PORTVERSION=    1.4.2
PORTREVISION=   4
CATEGORIES= print
MASTER_SITES=   ftp://ftp.mat.univie.ac.at/pub/teschl/xtexsh/
DISTNAME=   ${PORTNAME}-1.4-2

MAINTAINER= ports@FreeBSD.org
COMMENT=    Tcl/Tk-based simple TeX interface

RUN_DEPENDS=    tex:${PORTSDIR}/print/teTeX \
        wish8.4:${PORTSDIR}/x11-toolkits/tk84

WRKSRC=     ${WRKDIR}/${PORTNAME}-1.4

NO_BUILD=   yes
MAN1=       xtexsh.1
MANCOMPRESSED=  yes

post-patch:
    @${REINPLACE_CMD} -e 's,/usr/bin/wish,${PREFIX}/bin/wish8.4,; \
        s,/etc,${PREFIX}/etc,; s,bash,sh,' ${WRKSRC}/xtexsh

do-install:
    @${INSTALL_SCRIPT} ${WRKSRC}/xtexsh ${PREFIX}/bin
    @${INSTALL_MAN} ${WRKSRC}/xtexsh.1.gz ${PREFIX}/man/man1
    @${INSTALL_DATA} ${WRKSRC}/xtexshrc ${PREFIX}/etc/xtexshrc
    @${MKDIR} ${PREFIX}/share/xtexsh
.for f in xtexsh-mini.png xtexsh.png xtexsh.desktop xtexsh.spec
    @${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}
.endfor
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/index.html ${DOCSDIR}
.endif

.include <bsd.port.mk>