aboutsummaryrefslogtreecommitdiffstats
path: root/print/tgif2tex/Makefile
blob: f2aebaf5a1c22c01a8896d634bf863021885a87b (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
# New ports collection makefile for:    tgif2tex
# Date created:     12 Mar 1998
# Whom:         Satoshi TAOKA <taoka@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   tgif2tex
PORTVERSION=    1.46
CATEGORIES= print
MASTER_SITES=   http://camphor.elcom.nitech.ac.jp/~nakano/tgif2tex/
DISTNAME=   ${PORTNAME}

MAINTAINER= taoka@FreeBSD.org

USE_PERL5=  yes

PORTSDOCDIR?=   ${PREFIX}/share/doc/tgif2tex
DOCSRC+=    example.obj \
        example.tex

do-build:
    @cd ${WRKSRC}; ${MV} tgif2tex tgif2tex.org; \
    ${SED} -e 's,/usr/local/X11R6/bin/tgif,${X11BASE}/bin/tgif,' \
        -e 's;^#! */usr/local/bin/perl *;#!${PERL5};' \
            tgif2tex.org > tgif2tex

pre-install:
    @if [ ${PREFIX} != "/usr/local" ]; then \
        ${SED} s,/usr/local,${PREFIX}, ${WRKSRC}/tgif2tex \
            > ${WRKSRC}/tgif2tex.org; \
        ${MV} ${WRKSRC}/tgif2tex.org ${WRKSRC}/tgif2tex; \
    fi

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/tgif2tex ${PREFIX}/bin/tgif2tex
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PORTSDOCDIR}
    cd ${WRKSRC}; ${INSTALL_DATA} ${DOCSRC} ${PORTSDOCDIR};
    ${INSTALL_DATA} ${FILESDIR}/00readme ${PORTSDOCDIR}
.endif

.include <bsd.port.mk>