1998-06-14 22:00:05 +00:00
|
|
|
# New ports collection makefile for: xdvik
|
|
|
|
# Date created: 26 Feb 1998
|
|
|
|
# Whom: Kentaro Inagaki <JBD01226@niftyserve.ne.jp>
|
|
|
|
#
|
1999-08-31 01:53:22 +00:00
|
|
|
# $FreeBSD$
|
1998-06-14 22:00:05 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 17:50:59 +00:00
|
|
|
PORTNAME= xdvik
|
2005-09-10 22:27:22 +00:00
|
|
|
PORTVERSION= 22.84.10
|
|
|
|
PORTREVISION= 0
|
1998-06-14 22:00:05 +00:00
|
|
|
CATEGORIES= print
|
2004-05-12 17:01:05 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= xdvi
|
2004-06-18 15:29:44 +00:00
|
|
|
PKGNAMESUFFIX= -tetex
|
1998-06-14 22:00:05 +00:00
|
|
|
|
2004-05-12 17:01:05 +00:00
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= DVI Previewer(kpathsearch) for X
|
1998-06-14 22:00:05 +00:00
|
|
|
|
2004-12-21 19:42:33 +00:00
|
|
|
BUILD_DEPENDS= ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal \
|
2005-02-06 13:55:24 +00:00
|
|
|
${LOCALBASE}/${TEXMFDISTDIR}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
|
2004-06-18 15:29:44 +00:00
|
|
|
mktexlsr:${PORTSDIR}/print/teTeX-base
|
2004-12-21 19:42:33 +00:00
|
|
|
RUN_DEPENDS= ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal \
|
2005-02-06 13:55:24 +00:00
|
|
|
${LOCALBASE}/${TEXMFDISTDIR}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
|
2004-06-18 15:29:44 +00:00
|
|
|
mktexlsr:${PORTSDIR}/print/teTeX-base
|
2004-05-12 17:01:05 +00:00
|
|
|
LIB_DEPENDS= t1.5:${PORTSDIR}/devel/t1lib
|
1998-06-14 22:00:05 +00:00
|
|
|
|
1998-12-02 04:59:50 +00:00
|
|
|
USE_XLIB= yes
|
2004-05-12 17:01:05 +00:00
|
|
|
USE_GMAKE= yes
|
2004-12-21 19:42:33 +00:00
|
|
|
USE_MOTIF= yes
|
2004-05-12 17:01:05 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2004-12-21 19:42:33 +00:00
|
|
|
CONFIGURE_ARGS= --with-system-t1lib \
|
|
|
|
--with-t1lib-libdir=${LIBT1_PREFIX}/lib \
|
|
|
|
--with-t1lib-include=${LIBT1_PREFIX}/include \
|
|
|
|
--disable-multiplatform
|
2004-05-12 17:01:05 +00:00
|
|
|
CONFIGURE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
|
|
|
|
INSTALL_DATA="${INSTALL_DATA}" \
|
2004-07-25 14:58:20 +00:00
|
|
|
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
|
|
|
|
CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
|
2004-06-18 15:29:44 +00:00
|
|
|
INSTALL_WRKSRC= ${WRKSRC}/texk/xdvik
|
2004-05-12 17:01:05 +00:00
|
|
|
|
2005-02-06 13:55:24 +00:00
|
|
|
PLIST_SUB= TEXMFDIR=${TEXMFDIR} TEXMFCONFIGDIR=${TEXMFDIR}-config
|
|
|
|
CONFLICTS= xdvi-[0-9]* xdvi-*-[0-9]* \
|
|
|
|
*-xdvi-[0-9]* xdvi-*-[0-9]* \
|
|
|
|
*-xdvik-[0-9]* ja-ptex-tetex-[0-9]*
|
2004-05-12 17:01:05 +00:00
|
|
|
|
2004-12-21 19:42:33 +00:00
|
|
|
MAN1= xdvi.1 xdvizilla.1
|
2005-09-13 18:04:35 +00:00
|
|
|
MLINKS= xdvi.1 oxdvi.1
|
2004-05-12 17:01:05 +00:00
|
|
|
|
2005-02-06 13:55:24 +00:00
|
|
|
TEXMFDIR= share/texmf
|
|
|
|
TEXMFDISTDIR= share/texmf-dist
|
|
|
|
TEXMFLOCALDIR= share/texmf-local
|
|
|
|
TEXMFLOCAL_LSR?=${LOCALBASE}/${TEXMFLOCALDIR}/ls-R
|
|
|
|
TEXCONFIGBIN= ${LOCALBASE}/bin/texconfig-sys
|
2004-05-12 17:01:05 +00:00
|
|
|
MKTEXLSR?= ${LOCALBASE}/bin/mktexlsr
|
|
|
|
LIBT1_PREFIX?= ${LOCALBASE}
|
|
|
|
DOC_FILES= BUGS CHANGES INSTALL \
|
|
|
|
README README.CVS README_maintainer TODO
|
1998-06-14 22:00:05 +00:00
|
|
|
|
2004-12-21 19:42:33 +00:00
|
|
|
.if defined(WITH_LETTERSIZE)
|
|
|
|
FLAVOR+= letter
|
|
|
|
PAPERSIZE= letter
|
|
|
|
.else
|
|
|
|
PAPERSIZE= a4
|
|
|
|
.endif
|
|
|
|
|
2004-06-18 15:29:44 +00:00
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install.sh
|
|
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-install.sh
|
2004-12-21 19:42:33 +00:00
|
|
|
PKGINSTALL_SUB= MKTEXLSR=${MKTEXLSR} \
|
2005-02-06 13:55:24 +00:00
|
|
|
XDVIDIR=${PREFIX}/${TEXMFDIR}/xdvi \
|
|
|
|
XDVICONFDIR=${PREFIX}/${TEXMFDIR}-config/xdvi \
|
2004-12-21 19:42:33 +00:00
|
|
|
PAPERSIZE=${PAPERSIZE} \
|
2005-02-06 13:55:24 +00:00
|
|
|
TEXCONFIGBIN=${TEXCONFIGBIN} \
|
2004-12-21 19:42:33 +00:00
|
|
|
LOCALBASE=${LOCALBASE}
|
2004-06-18 15:29:44 +00:00
|
|
|
|
2005-02-06 13:55:24 +00:00
|
|
|
pre-install:
|
2004-06-18 15:29:44 +00:00
|
|
|
${SED} ${PKGINSTALL_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
|
|
< ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
|
|
|
|
${CHMOD} 0755 ${PKGINSTALL}
|
1998-06-14 22:00:05 +00:00
|
|
|
|
|
|
|
post-install:
|
2004-05-12 17:01:05 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES:S@^@${WRKSRC}/@} ${DOCSDIR}
|
|
|
|
.endif
|
2004-06-18 15:29:44 +00:00
|
|
|
@${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
1998-06-14 22:00:05 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|