88 lines
2.5 KiB
Makefile
88 lines
2.5 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2010/09/13 04:45:02 minskim Exp $
|
|
|
|
DISTNAME= texlive-20100720-source
|
|
PKGNAME= xdvik-22.84.16
|
|
PKGREVISION= 1
|
|
CATEGORIES= print
|
|
MASTER_SITES= ${MASTER_SITE_TEX_CTAN:=systems/texlive/Source/}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= minskim@NetBSD.org
|
|
HOMEPAGE= http://xdvi.sourceforge.net/
|
|
COMMENT= Previewer for DVI files
|
|
|
|
CONFLICTS+= teTeX-bin<3.0nb25
|
|
BUILD_DEPENDS+= texlive-tetex-[0-9]*:../../print/texlive-tetex
|
|
BUILD_DEPENDS+= tex-xdvi-[0-9]*:../../print/tex-xdvi
|
|
DEPENDS+= dvipsk-[0-9]*:../../print/dvipsk
|
|
DEPENDS+= ghostscript-[0-9]*:../../print/ghostscript
|
|
|
|
EXTRACT_ELEMENTS= ${DISTNAME}/build-aux \
|
|
${DISTNAME}/texk/xdvik
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LIBTOOL= yes
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/texk/xdvik
|
|
|
|
FIND_PREFIX:= TEX_XDVI_PREFIX=tex-xdvi
|
|
.include "../../mk/find-prefix.mk"
|
|
|
|
CONFIGURE_ARGS+= --with-system-kpathsea \
|
|
--with-kpathsea-includes=${BUILDLINK_PREFIX.kpathsea}/include \
|
|
--with-kpathsea-libdir=${BUILDLINK_PREFIX.kpathsea}/lib
|
|
CONFIGURE_ARGS+= --with-system-t1lib \
|
|
--with-t1lib-includes=${BUILDLINK_PREFIX.t1lib} \
|
|
--with-t1lib-libdir=${BUILDLINK_PREFIX.t1lib}
|
|
CONFIGURE_ARGS+= --with-xdvi-x-toolkit=xaw
|
|
CONFIGURE_ARGS+= --with-default-dvips-path=${LOCALBASE}/bin/dvips
|
|
CONFIGURE_ARGS+= --with-default-ps2pdf-path=${LOCALBASE}/bin/ps2pdf
|
|
|
|
PKG_SYSCONFSUBDIR= texmf
|
|
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/xdvi
|
|
CONF_FILES= ${PREFIX}/share/texmf-dist/xdvi/XDvi \
|
|
${PKG_SYSCONFDIR}/xdvi/XDvi
|
|
|
|
BUILD_DEFS+= PAPERSIZE
|
|
|
|
INSTALLATION_DIRS+= share/texmf-dist/xdvi
|
|
|
|
TEX_TEXMF_DIRS+= ${PKG_SYSCONFDIR}
|
|
TEX_TEXMF_DIRS+= ${PREFIX}/share/texmf
|
|
TEX_TEXMF_DIRS+= ${PREFIX}/share/texmf-dist
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${PAPERSIZE} == "Letter"
|
|
XDVI_PAPERSIZE= us
|
|
.else
|
|
XDVI_PAPERSIZE= a4
|
|
.endif
|
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
.include "../../fonts/t1lib/buildlink3.mk"
|
|
.include "../../print/kpathsea/buildlink3.mk"
|
|
.include "../../print/kpathsea/texmf.mk"
|
|
.include "../../x11/libXp/buildlink3.mk"
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
|
.include "../../mk/xaw.buildlink3.mk"
|
|
|
|
post-extract:
|
|
${RM} ${WRKSRC}/texmf/XDvi
|
|
${MKDIR} -p ${WRKSRC}/texmf/xdvi
|
|
${CP} ${LOCALBASE}/share/texmf/xdvi/XDvi \
|
|
${WRKSRC}/texmf/xdvi
|
|
|
|
post-build:
|
|
env TEXMFCONFIG=${LOCALBASE}/share/texmf \
|
|
TFC_TEXMFCONFIG=${WRKSRC}/texmf \
|
|
${LOCALBASE}/bin/texconfig xdvi paper ${XDVI_PAPERSIZE}
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/texmf/xdvi/XDvi \
|
|
${DESTDIR}${PREFIX}/share/texmf-dist/xdvi
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|