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