32cd5e1109
- Remove tetex-modesw dependency.
83 lines
2.2 KiB
Makefile
83 lines
2.2 KiB
Makefile
# New ports collection makefile for: xdvik
|
|
# Date created: 26 Feb 1998
|
|
# Whom: Kentaro Inagaki <JBD01226@niftyserve.ne.jp>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= xdvik
|
|
PORTVERSION= 22.84.8
|
|
PORTREVISION= 0
|
|
CATEGORIES= print
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= xdvi
|
|
PKGNAMESUFFIX= -tetex
|
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
COMMENT= DVI Previewer(kpathsearch) for X
|
|
|
|
BUILD_DEPENDS= ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal \
|
|
${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
|
|
mktexlsr:${PORTSDIR}/print/teTeX-base
|
|
RUN_DEPENDS= ${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal \
|
|
${LOCALBASE}/${TEXMF}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
|
|
mktexlsr:${PORTSDIR}/print/teTeX-base
|
|
LIB_DEPENDS= t1.5:${PORTSDIR}/devel/t1lib
|
|
|
|
USE_XLIB= yes
|
|
USE_GMAKE= yes
|
|
USE_MOTIF= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --with-system-t1lib \
|
|
--with-t1lib-libdir=${LIBT1_PREFIX}/lib \
|
|
--with-t1lib-include=${LIBT1_PREFIX}/include \
|
|
--disable-multiplatform
|
|
CONFIGURE_ENV= INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
|
|
INSTALL_DATA="${INSTALL_DATA}" \
|
|
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
|
|
CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
|
|
INSTALL_WRKSRC= ${WRKSRC}/texk/xdvik
|
|
|
|
PLIST_SUB= TEXMF=${TEXMF}
|
|
CONFLICTS= xdvi-* *-xdvi*
|
|
|
|
MAN1= xdvi.1 xdvizilla.1
|
|
|
|
TEXMF?= share/texmf
|
|
TEXMFLOCAL?= share/texmf-local
|
|
TEXMFLOCAL_LSR?=${LOCALBASE}/${TEXMFLOCAL}/ls-R
|
|
TEXCONFIG?= ${LOCALBASE}/bin/texconfig
|
|
MKTEXLSR?= ${LOCALBASE}/bin/mktexlsr
|
|
LIBT1_PREFIX?= ${LOCALBASE}
|
|
DOC_FILES= BUGS CHANGES INSTALL \
|
|
README README.CVS README_maintainer TODO
|
|
|
|
.if defined(WITH_LETTERSIZE)
|
|
FLAVOR+= letter
|
|
PAPERSIZE= letter
|
|
.else
|
|
PAPERSIZE= a4
|
|
.endif
|
|
|
|
PKGINSTALL= ${WRKDIR}/pkg-install.sh
|
|
PKGDEINSTALL= ${WRKDIR}/pkg-install.sh
|
|
PKGINSTALL_SUB= MKTEXLSR=${MKTEXLSR} \
|
|
XDVIDIR=${PREFIX}/${TEXMF}/xdvi \
|
|
XDVIVARDIR=${PREFIX}/${TEXMF}-var/xdvi \
|
|
PAPERSIZE=${PAPERSIZE} \
|
|
TEXCONFIG=${TEXCONFIG} \
|
|
LOCALBASE=${LOCALBASE}
|
|
|
|
pre-build:
|
|
${SED} ${PKGINSTALL_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
< ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
|
|
${CHMOD} 0755 ${PKGINSTALL}
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${DOC_FILES:S@^@${WRKSRC}/@} ${DOCSDIR}
|
|
.endif
|
|
@${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
|
|
|
.include <bsd.port.mk>
|