1998-07-20 02:35:39 +00:00
|
|
|
|
# New ports collection makefile for: xdvik + jp-patch
|
1999-06-11 19:03:45 +00:00
|
|
|
|
# Version required: 22.02
|
1998-07-20 02:35:39 +00:00
|
|
|
|
# Date created: 15 Jun 1998
|
|
|
|
|
# Whom: Kentaro Inagaki <inagaki@tg.rim.or.jp>
|
1998-06-14 07:58:50 +00:00
|
|
|
|
#
|
1999-06-11 19:03:45 +00:00
|
|
|
|
# $Id: Makefile,v 1.5 1999/01/18 03:07:17 steve Exp $
|
1998-06-14 07:58:50 +00:00
|
|
|
|
#
|
|
|
|
|
|
1999-06-11 19:03:45 +00:00
|
|
|
|
DISTNAME= xdvik-22.02
|
|
|
|
|
PKGNAME= ja-vfxdvik-22.02
|
1998-06-14 07:58:50 +00:00
|
|
|
|
CATEGORIES= japanese print
|
1999-06-11 19:03:45 +00:00
|
|
|
|
MASTER_SITES= ftp://ftp.ipc.chiba-u.ac.jp/pub/pub.yamaga/xdvik-22/ \
|
1998-06-14 07:58:50 +00:00
|
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
|
|
1999-06-11 19:03:45 +00:00
|
|
|
|
PATCH_SITES= ftp://ftp.ipc.chiba-u.ac.jp/pub/pub.yamaga/xdvik-22/ \
|
1998-07-20 02:35:39 +00:00
|
|
|
|
${MASTER_SITE_LOCAL}
|
1999-06-11 19:03:45 +00:00
|
|
|
|
PATCHFILES= xdvik-22.02-j1.02.patch.gz
|
1998-07-20 02:35:39 +00:00
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
|
|
|
|
|
MAINTAINER= inagaki@tg.rim.or.jp
|
1998-06-14 07:58:50 +00:00
|
|
|
|
|
1999-06-11 19:03:45 +00:00
|
|
|
|
#RUN_DEPENDS= mf:${PORTSDIR}/japanese/ptex-common
|
|
|
|
|
#LIB_DEPENDS= VFlib2.24:${PORTSDIR}/japanese/vflib
|
1998-06-14 07:58:50 +00:00
|
|
|
|
|
1998-07-20 02:35:39 +00:00
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
1998-06-14 07:58:50 +00:00
|
|
|
|
|
1998-07-20 02:35:39 +00:00
|
|
|
|
USE_GMAKE=YES
|
1998-06-14 07:58:50 +00:00
|
|
|
|
GNU_CONFIGURE=YES
|
1999-06-11 19:03:45 +00:00
|
|
|
|
#CONFIGURE_ARGS= --enable-shared=yes \
|
|
|
|
|
CONFIGURE_ARGS= \
|
|
|
|
|
--enable-bdpi=300 --enable-shrink=8 \
|
|
|
|
|
--enable-xdviprint=${PREFIX}/libexec/xdviprint
|
|
|
|
|
CONFIGURE_ENV= INSTALL="${INSTALL}" \
|
|
|
|
|
INSTALL_PROGRAM="${INSTALL_PROGRAM}" INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
|
|
|
|
|
INSTALL_DATA="${INSTALL_DATA}" INSTALL_MAN="${INSTALL_MAN}"
|
|
|
|
|
SCRIPTS_ENV= MV=${MV} SED=${SED}
|
|
|
|
|
VFFONTS= .:${PREFIX}/share/fonts/makejvf//
|
|
|
|
|
TFMFONTS= .:${PREFIX}/share/fonts/makejvf//
|
|
|
|
|
PKFONTS= .:${PREFIX}/lib/fonts/pk300//
|
|
|
|
|
MAKE_ENV= XDEFS="-DDEFAULT_VFFONTS='"\"\\\"${VFFONTS}\\\""\"' -DDEFAULT_TFMFONTS='"\"\\\"${TFMFONTS}\\\""\"' -DDEFAULT_PKFONTS='"\"\\\"${PKFONTS}\\\""\"'"
|
1998-07-20 02:35:39 +00:00
|
|
|
|
MAN1=xdvi.1
|
1998-06-14 07:58:50 +00:00
|
|
|
|
|
1998-07-20 02:35:39 +00:00
|
|
|
|
TEXMF= ${PREFIX}/share/texmf
|
1999-06-11 19:03:45 +00:00
|
|
|
|
VARTEXFONTS=/var/tmp/texfonts
|
1998-07-20 02:35:39 +00:00
|
|
|
|
XDVIDIR= ${TEXMF}/xdvi
|
1999-06-11 19:03:45 +00:00
|
|
|
|
MAKETEX_MODE?=ljfour
|
|
|
|
|
DVIPS?= dvipsk
|
1998-06-14 07:58:50 +00:00
|
|
|
|
|
1999-06-11 19:03:45 +00:00
|
|
|
|
DOCS= FAQ \
|
1998-07-20 02:35:39 +00:00
|
|
|
|
xdvi.icon \
|
|
|
|
|
README \
|
1999-06-11 19:03:45 +00:00
|
|
|
|
README.xdvik-22.x-jp \
|
|
|
|
|
READMEs/ChangeLog.xdvik20a-j1.1 \
|
|
|
|
|
READMEs/ChangeLog.xdvik20c-j1.0 \
|
1998-07-20 02:35:39 +00:00
|
|
|
|
READMEs/HEADERS.DOC \
|
|
|
|
|
READMEs/InternalVars \
|
1999-06-11 19:03:45 +00:00
|
|
|
|
READMEs/README.jp+toc+hal2 \
|
1998-07-20 02:35:39 +00:00
|
|
|
|
READMEs/README.jp-patch \
|
|
|
|
|
READMEs/README.markpage+toc+printdvi \
|
|
|
|
|
READMEs/README.markpage+toc+printdvi+paper \
|
1999-06-11 19:03:45 +00:00
|
|
|
|
READMEs/README.miyu-beta6 \
|
|
|
|
|
READMEs/README.ptex \
|
|
|
|
|
READMEs/README.tasai-ussy \
|
1998-07-20 02:35:39 +00:00
|
|
|
|
READMEs/README.xdvik18f-j1.0.patch \
|
1999-06-11 19:03:45 +00:00
|
|
|
|
READMEs/README.xdvik18f-j1.1p5.patch \
|
|
|
|
|
READMEs/README.xdvik20a-j1.1.patch \
|
|
|
|
|
READMEs/README.xdvik20c-j1.0+hal2+dvisel \
|
|
|
|
|
READMEs/README.xdvik20c-j1.0p1.patch
|
|
|
|
|
|
|
|
|
|
# ******************
|
|
|
|
|
# DVIPS:
|
|
|
|
|
# Please set up [dvipsk<73><6B>dvipsk-vflib<69><62>dvi2ps] to DVIPS when I want to
|
|
|
|
|
# change it.
|
|
|
|
|
# Also, please change script $ PREFIX/libexec/xdviprint after installation
|
|
|
|
|
# when the choice other than this wants.
|
|
|
|
|
# MAKETEX_MODE:
|
|
|
|
|
# When MetaFont is used the kind of the printer that I use is set up.
|
|
|
|
|
# The default is ljfour.
|
|
|
|
|
# It does not need to change it particularly because it is able to set up it
|
|
|
|
|
# with the option of xdvi.
|
|
|
|
|
# ******************
|
|
|
|
|
|
|
|
|
|
.if ${DVIPS} == dvi2ps
|
|
|
|
|
RUN_DEPENDS+= dvi2ps:${PORTSDIR}/japanese/dvi2ps
|
|
|
|
|
CONFIGURE_ARGS+= --with-dvifilter=dvi2ps
|
|
|
|
|
.elif ${DVIPS} == dvipsk-vflib
|
|
|
|
|
RUN_DEPENDS+= dvips:${PORTSDIR}/japanese/dvipsk-vflib
|
|
|
|
|
CONFIGURE_ARGS+= --with-dvifilter=dvips
|
|
|
|
|
.elif ${DVIPS} == dvipsk
|
|
|
|
|
RUN_DEPENDS+= dvips:${PORTSDIR}/japanese/dvipsk
|
|
|
|
|
CONFIGURE_ARGS+= --with-dvifilter=dvips
|
|
|
|
|
.else
|
|
|
|
|
DVIPS=dvipsk
|
|
|
|
|
RUN_DEPENDS+= dvips:${PORTSDIR}/japanese/dvipsk
|
|
|
|
|
CONFIGURE_ARGS+= --with-dvifilter=dvips
|
|
|
|
|
.endif
|
|
|
|
|
|
|
|
|
|
#.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
|
@( \
|
|
|
|
|
${ECHO} "************************************************************"; \
|
|
|
|
|
${ECHO} "* japanese/dvipsk is used in default. *"; \
|
|
|
|
|
${ECHO} "* Please refer to Makefile about a change. *"; \
|
|
|
|
|
${ECHO} "************************************************************")
|
1998-06-14 07:58:50 +00:00
|
|
|
|
|
|
|
|
|
pre-build:
|
1998-07-20 02:35:39 +00:00
|
|
|
|
@(cd ${WRKSRC} ; find . -name '*.orig' -exec ${RM} -f {} \;)
|
1998-06-14 07:58:50 +00:00
|
|
|
|
|
|
|
|
|
do-install:
|
1999-06-11 19:03:45 +00:00
|
|
|
|
@(cd ${WRKSRC}/texk/xdvik ; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
|
1998-06-14 07:58:50 +00:00
|
|
|
|
|
|
|
|
|
post-install:
|
1998-07-20 02:35:39 +00:00
|
|
|
|
@$(INSTALL_DATA) $(FILESDIR)/vfontmap $(XDVIDIR)
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/xdvi
|
|
|
|
|
@for i in ${DOCS} ; do \
|
1999-06-11 19:03:45 +00:00
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/texk/xdvik/$$i ${PREFIX}/share/doc/xdvi ; \
|
1998-07-20 02:35:39 +00:00
|
|
|
|
done
|
|
|
|
|
.endif
|
1998-06-14 07:58:50 +00:00
|
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|