1995-04-15 04:34:11 +00:00
|
|
|
|
# New ports collection makefile for: xdvi
|
|
|
|
|
# Date created: 1 October 1994
|
|
|
|
|
# Whom: jmz
|
|
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
|
# $FreeBSD$
|
1995-04-15 04:34:11 +00:00
|
|
|
|
#
|
|
|
|
|
|
2000-04-09 17:50:59 +00:00
|
|
|
|
PORTNAME= xdvi
|
|
|
|
|
PORTVERSION= pl20
|
2004-02-04 05:10:27 +00:00
|
|
|
|
PORTREVISION= 1
|
1996-11-17 08:45:20 +00:00
|
|
|
|
CATEGORIES= print
|
1996-11-18 09:56:45 +00:00
|
|
|
|
MASTER_SITES= ${MASTER_SITE_XCONTRIB}
|
|
|
|
|
MASTER_SITE_SUBDIR= applications
|
2000-04-09 17:41:40 +00:00
|
|
|
|
DISTNAME= ${PORTNAME}-20
|
1995-06-13 20:59:35 +00:00
|
|
|
|
EXTRACT_SUFX= .tar.Z
|
1995-04-15 04:34:11 +00:00
|
|
|
|
|
|
|
|
|
MAINTAINER= jmz@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
|
COMMENT= A DVI Previewer for the X Window System
|
1995-04-15 04:34:11 +00:00
|
|
|
|
|
1996-03-10 09:06:28 +00:00
|
|
|
|
DIST_SUBDIR= xdvi # to share distfiles with japanese/xdvi
|
2003-11-20 15:06:14 +00:00
|
|
|
|
USE_PERL5_BUILD=yes
|
1994-10-01 00:00:16 +00:00
|
|
|
|
USE_IMAKE= yes
|
1995-04-15 14:44:37 +00:00
|
|
|
|
USE_GMAKE= yes
|
1995-04-15 22:06:55 +00:00
|
|
|
|
XMKMF= xmkmf
|
1997-03-09 22:52:25 +00:00
|
|
|
|
.if defined(PACKAGE_BUILDING)
|
|
|
|
|
SCRIPTS_ENV= PACKAGE_BUILDING=${PACKAGE_BUILDING}
|
|
|
|
|
.else
|
|
|
|
|
IS_INTERACTIVE= yes
|
|
|
|
|
.endif
|
1995-04-15 22:06:55 +00:00
|
|
|
|
|
1998-10-20 01:48:38 +00:00
|
|
|
|
MAN1= xdvi.1
|
|
|
|
|
|
2002-01-21 20:17:56 +00:00
|
|
|
|
post-configure:
|
|
|
|
|
@${PERL} -pi -e "s=distclean::=distclean:=g" ${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
|
|
pre-install:
|
2004-01-23 05:28:50 +00:00
|
|
|
|
@if ${LS} /var/db/pkg/ | grep -qi ^tetex; then\
|
2002-01-21 20:17:56 +00:00
|
|
|
|
${ECHO_MSG} "*** WARNING ***";\
|
|
|
|
|
${ECHO_MSG} "This port conflicts with teTeX! If you have already installed";\
|
|
|
|
|
${ECHO_MSG} "teTeX, you may want to backup the xdvi and MakeTeXPK commands.";\
|
|
|
|
|
${ECHO};\
|
|
|
|
|
${ECHO_MSG} "To cancel or suspend installation, press control-C or control-Z.";\
|
|
|
|
|
for i in 1 2 3 4 5; do ${ECHO} -n ; sleep 1; done; fi
|
|
|
|
|
|
2000-04-09 17:50:59 +00:00
|
|
|
|
do-install:
|
1996-11-17 08:45:20 +00:00
|
|
|
|
@${MKDIR} ${PREFIX}/man/man1
|
|
|
|
|
@${MKDIR} ${PREFIX}/bin
|
1994-10-01 00:00:16 +00:00
|
|
|
|
@(cd ${WRKSRC}; ${GMAKE} install.man \
|
1994-11-17 01:02:54 +00:00
|
|
|
|
MANDIR=${PREFIX}/man/man1 MANSUFFIX=1)
|
1994-10-01 00:00:16 +00:00
|
|
|
|
@(cd ${WRKSRC}; ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} xdvi.man)
|
1994-11-17 01:02:54 +00:00
|
|
|
|
@(cd ${WRKSRC}; ${GMAKE} -f Makefile install BINDIR=${PREFIX}/bin)
|
1996-11-30 10:41:21 +00:00
|
|
|
|
@(cd ${WRKSRC}; ${INSTALL_SCRIPT} MakeTeXPK ${PREFIX}/bin)
|
1994-10-01 00:00:16 +00:00
|
|
|
|
|
1998-12-01 21:14:08 +00:00
|
|
|
|
post-install:
|
|
|
|
|
@if [ -f ${WRKDIR}/post-install ]; then sh ${WRKDIR}/post-install; fi
|
1996-09-16 00:56:30 +00:00
|
|
|
|
|
1994-10-01 00:00:16 +00:00
|
|
|
|
.include <bsd.port.mk>
|