freebsd-ports/print/xdvi/Makefile
Trevor Johnson 7e223b8511 Define USE_PERL5_BUILD, not erroneous USE_PERL.
Submitted by:	Oliver Eikemeier
2003-11-20 15:06:14 +00:00

56 lines
1.5 KiB
Makefile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# New ports collection makefile for: xdvi
# Date created: 1 October 1994
# Whom: jmz
#
# $FreeBSD$
#
PORTNAME= xdvi
PORTVERSION= pl20
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR= applications
DISTNAME= ${PORTNAME}-20
EXTRACT_SUFX= .tar.Z
MAINTAINER= jmz@FreeBSD.org
COMMENT= A DVI Previewer for the X Window System
DIST_SUBDIR= xdvi # to share distfiles with japanese/xdvi
USE_PERL5_BUILD=yes
USE_IMAKE= yes
USE_GMAKE= yes
XMKMF= xmkmf
.if defined(PACKAGE_BUILDING)
SCRIPTS_ENV= PACKAGE_BUILDING=${PACKAGE_BUILDING}
.else
IS_INTERACTIVE= yes
.endif
MAN1= xdvi.1
post-configure:
@${PERL} -pi -e "s=distclean::=distclean:=g" ${WRKSRC}/Makefile
pre-install:
@if ls /var/db/pkg/ | grep -qi ^tetex; then\
${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
do-install:
@${MKDIR} ${PREFIX}/man/man1
@${MKDIR} ${PREFIX}/bin
@(cd ${WRKSRC}; ${GMAKE} install.man \
MANDIR=${PREFIX}/man/man1 MANSUFFIX=1)
@(cd ${WRKSRC}; ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} xdvi.man)
@(cd ${WRKSRC}; ${GMAKE} -f Makefile install BINDIR=${PREFIX}/bin)
@(cd ${WRKSRC}; ${INSTALL_SCRIPT} MakeTeXPK ${PREFIX}/bin)
post-install:
@if [ -f ${WRKDIR}/post-install ]; then sh ${WRKDIR}/post-install; fi
.include <bsd.port.mk>