freebsd-ports/print/xdvi/Makefile
Dmitry Marakasov 33e3d901d4 Convert most of remaining ports that depend on xorg-libraries to
modular xorg.

- supply corresponding USE_XORG for all imake-using ports that need it
- USE_IMAKE no longer implies USE_XLIB in absence of USE_XORG
- retire USE_X_PREFIX which is not really used anywhere after the
  above change
- a few minor nits like whitespace and SF macro

Tested by:	2 tinderbox runs by pav
Approved by:	portmgr (pav)
2009-06-09 15:33:28 +00:00

56 lines
1.4 KiB
Makefile

# New ports collection makefile for: xdvi
# Date created: 1 October 1994
# Whom: jmz
#
# $FreeBSD$
#
PORTNAME= xdvi
PORTVERSION= pl20
PORTREVISION= 4
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_XCONTRIB}
MASTER_SITE_SUBDIR= applications
DISTNAME= ${PORTNAME}-20
EXTRACT_SUFX= .tar.Z
MAINTAINER= ports@FreeBSD.org
COMMENT= A DVI Previewer for the X Window System
CONFLICTS= teTeX-*
DIST_SUBDIR= xdvi
USE_IMAKE= yes
USE_XORG= ice sm x11 xaw xext xmu xt xpm
USE_GMAKE= yes
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
PLIST_SUB= LOCALBASE=${LOCALBASE}
XMKMF= xmkmf
.if defined(PACKAGE_BUILDING)
SCRIPTS_ENV= PACKAGE_BUILDING=${PACKAGE_BUILDING}
.else
IS_INTERACTIVE= yes
.endif
MAN1= xdvi.1
post-configure:
@${REINPLACE_CMD} -e "s=distclean::=distclean:=g" ${WRKSRC}/Makefile
.for F in pkg-install pkg-deinstall
${SED} -e "s=%%PREFIX%%=${PREFIX}=" \
-e "s=%%LOCALBASE%%=${LOCALBASE}=" \
< ${PKGDIR}/${F} > ${WRKDIR}/${F}
.endfor
do-install:
@(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>