1998-12-13 03:36:35 +00:00
|
|
|
# New ports collection makefile for: tgif2tex
|
|
|
|
# Date created: 12 Mar 1998
|
1999-05-01 04:03:48 +00:00
|
|
|
# Whom: Satoshi TAOKA <taoka@FreeBSD.org>
|
1998-12-13 03:36:35 +00:00
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1998-12-13 03:36:35 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 17:50:59 +00:00
|
|
|
PORTNAME= tgif2tex
|
|
|
|
PORTVERSION= 1.46
|
1998-12-13 03:36:35 +00:00
|
|
|
CATEGORIES= print
|
|
|
|
MASTER_SITES= http://camphor.elcom.nitech.ac.jp/~nakano/tgif2tex/
|
2000-04-09 17:41:40 +00:00
|
|
|
DISTNAME= ${PORTNAME}
|
1998-12-13 03:36:35 +00:00
|
|
|
|
1999-05-01 04:03:48 +00:00
|
|
|
MAINTAINER= taoka@FreeBSD.org
|
1998-12-13 03:36:35 +00:00
|
|
|
|
|
|
|
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>
|