1998-07-20 02:35:39 +00:00
|
|
|
# New ports collection makefile for: xdvik + jp-patch
|
|
|
|
# Date created: 15 Jun 1998
|
|
|
|
# Whom: Kentaro Inagaki <inagaki@tg.rim.or.jp>
|
1998-06-14 07:58:50 +00:00
|
|
|
#
|
1999-08-25 05:28:01 +00:00
|
|
|
# $FreeBSD$
|
1998-06-14 07:58:50 +00:00
|
|
|
#
|
|
|
|
|
2000-04-13 08:34:11 +00:00
|
|
|
PORTNAME= xdvik-vflib
|
|
|
|
PORTVERSION= 22.15
|
1998-06-14 07:58:50 +00:00
|
|
|
CATEGORIES= japanese print
|
1999-11-17 23:50:39 +00:00
|
|
|
MASTER_SITES= ftp://ftp.appi.keio.ac.jp/pub/xdvi/ \
|
1999-06-16 12:41:09 +00:00
|
|
|
ftp://ftp.ipc.chiba-u.ac.jp/pub/pub.yamaga/xdvik-22/ \
|
1999-11-17 23:50:39 +00:00
|
|
|
ftp://komadori.planet.sci.kobe-u.ac.jp/pub/xdvi/ \
|
|
|
|
ftp://ftp.chem.eng.himeji-tech.ac.jp/pub/xdvi/ \
|
|
|
|
ftp://ftp.iij.ad.jp/pub/TeX/CTAN/dviware/xdvik/ \
|
|
|
|
ftp://ftp.ipc.chiba-u.ac.jp/pub/pub.yamaga/xdvik-22/ \
|
|
|
|
ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/jvf/ \
|
1999-06-16 17:05:22 +00:00
|
|
|
ftp://ftp.tex.ac.uk/tex-archive/dviware/xdvik/ \
|
1998-06-14 07:58:50 +00:00
|
|
|
${MASTER_SITE_LOCAL}
|
2000-06-09 21:59:16 +00:00
|
|
|
MASTER_SITE_SUBDIR= asami/LOCAL_PORTS
|
2000-04-13 08:34:11 +00:00
|
|
|
DISTNAME= xdvik-${PORTVERSION}
|
1998-06-14 07:58:50 +00:00
|
|
|
|
1999-11-17 23:50:39 +00:00
|
|
|
PATCH_SITES= ftp://ftp.appi.keio.ac.jp/pub/xdvi/ \
|
|
|
|
ftp://ftp.ipc.chiba-u.ac.jp/pub/pub.yamaga/xdvik-22/ \
|
|
|
|
ftp://komadori.planet.sci.kobe-u.ac.jp/pub/xdvi/ \
|
|
|
|
ftp://ftp.chem.eng.himeji-tech.ac.jp/pub/xdvi/ \
|
|
|
|
${MASTER_SITE_LOCAL}
|
2000-06-09 21:59:16 +00:00
|
|
|
PATCH_SITE_SUBDIR= asami/LOCAL_PORTS
|
2000-04-13 08:34:11 +00:00
|
|
|
PATCHFILES= ${DISTNAME}-j1.03.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-16 12:41:09 +00:00
|
|
|
LIB_DEPENDS= VFlib2.24:${PORTSDIR}/japanese/vflib
|
2000-01-25 14:23:46 +00:00
|
|
|
RUN_DEPENDS+= makejvf:${PORTSDIR}/japanese/makejvf
|
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
|
|
|
|
1999-11-17 23:50:39 +00:00
|
|
|
DIST_SUBDIR= xdvik
|
|
|
|
USE_GMAKE= YES
|
|
|
|
GNU_CONFIGURE= YES
|
2000-01-25 14:23:46 +00:00
|
|
|
CONFIGURE_ARGS= --enable-a4 --enable-bdpi=${BDPI} --enable-shrink=${SHRINK} \
|
|
|
|
--with-dvifilter=${DVIPS} \
|
|
|
|
--enable-xdviprint=${PREFIX}/libexec/xdviprint \
|
|
|
|
--enable-smallpanel --enable-zoombutton \
|
|
|
|
--enable-vikey
|
|
|
|
CONFIGURE_ENV= INSTALL="${INSTALL}" \
|
|
|
|
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
|
|
|
|
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
|
|
|
|
INSTALL_DATA="${INSTALL_DATA}" INSTALL_MAN="${INSTALL_MAN}" \
|
|
|
|
XDEFS='-DMFMODE=\"${MF_MODE}\"'
|
1999-06-11 19:03:45 +00:00
|
|
|
SCRIPTS_ENV= MV=${MV} SED=${SED}
|
2000-01-25 14:23:46 +00:00
|
|
|
#MAKE_ENV= 'XDEFS=${XDEFS}'
|
1999-06-16 17:05:22 +00:00
|
|
|
PATCH_STRIP= -p1
|
1999-11-17 23:50: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
|
2000-01-25 14:23:46 +00:00
|
|
|
#VARTEXFONTS= /var/tmp/texfonts
|
1998-07-20 02:35:39 +00:00
|
|
|
XDVIDIR= ${TEXMF}/xdvi
|
2000-01-25 14:23:46 +00:00
|
|
|
|
|
|
|
#VFFONTS= .:${MAKEJVFDIR}/vf//
|
|
|
|
#XDEFS+= -DDEFAULT_VFFONTS=\"\\\"${VFFONTS}\\\"\"
|
|
|
|
#TFMFONTS= .:${MAKEJVFDIR}/tfm/ptex//
|
|
|
|
#XDEFS+= -DDEFAULT_TFMFONTS=\"\\\"${TFMFONTS}\\\"\"
|
|
|
|
#PKFONTS= .:${PREFIX}/lib/fonts/pk{118:240:300:360:400:600}//
|
|
|
|
#XDEFS+= -DDEFAULT_PKFONTS=\"\\\"${PKFONTS}\\\"\"
|
|
|
|
|
|
|
|
DOCS= FAQ xdvi.icon CHANGES.xdvik-jp \
|
|
|
|
README README.xdvik-jp \
|
1999-06-11 19:03:45 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
# ******************
|
2000-01-25 14:23:46 +00:00
|
|
|
# USEPK_MODE:
|
|
|
|
# Mode name of Metafont to give to print/pkfonts* is set.
|
|
|
|
# It is care-and-attention to the other program how MetaFont wants to
|
|
|
|
# be executed that do not use modeless. Kpathsea always searches
|
|
|
|
# modeless because even if you specify any kind of mode.
|
1999-06-11 19:03:45 +00:00
|
|
|
# MAKETEX_MODE:
|
2000-01-25 14:23:46 +00:00
|
|
|
# It is mode name of default at executing MetaFont. The default is ljfour.
|
|
|
|
# This needs not to be changed. It can be changed with an option or resource.
|
|
|
|
# DVIPS:
|
|
|
|
# Specification of `dvi -> ps' conversion program to use.
|
|
|
|
# You can set following one: dvips, dvipsk-vflib, dvi2ps.
|
|
|
|
# Other way... After installation if you change script
|
|
|
|
# ${PREFIX}/libexec/xdviprint, any kind of program can be used.
|
1999-06-11 19:03:45 +00:00
|
|
|
# ******************
|
2000-01-25 14:23:46 +00:00
|
|
|
FONTTYPE?= metafont
|
|
|
|
USEPK_MODE?= preview
|
|
|
|
MAKETEX_MODE?= ljfour
|
|
|
|
SHRINK?= 6
|
|
|
|
BDPI?= 300
|
|
|
|
DVIPS?= dvips
|
1999-06-11 19:03:45 +00:00
|
|
|
|
2000-01-25 14:23:46 +00:00
|
|
|
.if ${FONTTYPE} == metafont
|
|
|
|
RUN_DEPENDS+= ptex-common:${PORTSDIR}/japanese/ptex-common
|
|
|
|
MF_MODE= ${MAKETEX_MODE}
|
1999-06-11 19:03:45 +00:00
|
|
|
.else
|
2000-01-25 14:23:46 +00:00
|
|
|
MF_MODE= ${USEPK_MODE}
|
|
|
|
CONFIGURE_ARGS+=--without-mktexpk-default
|
2000-04-13 08:34:11 +00:00
|
|
|
.if ${FONTTYPE} == pkall
|
|
|
|
PKGNAMESUFFIX= -${FONTTYPE}
|
|
|
|
.else
|
|
|
|
PKGNAMESUFFIX= -pk${BDPI}
|
|
|
|
.endif
|
2000-01-25 14:23:46 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.BEGIN:
|
|
|
|
.if ${FONTTYPE} != metafont && \
|
|
|
|
${FONTTYPE} != pkfont && ${FONTTYPE} != pkall
|
|
|
|
@${ECHO} "Error: invalid value for FONTTYPE: \"${FONTTYPE}\""
|
|
|
|
@${ECHO} "Possible values are: metafont, pkall and pkfont."
|
|
|
|
@${FALSE}
|
|
|
|
.endif
|
|
|
|
.if ${BDPI} != 118 && ${BDPI} != 240 && \
|
|
|
|
${BDPI} != 300 && ${BDPI} != 360 && \
|
|
|
|
${BDPI} != 400 && ${BDPI} != 600
|
|
|
|
@${ECHO} "Error: invalid value for BDPI: \"${BDPI}\""
|
|
|
|
@${ECHO} "Possible values are: all, 118, 240, 300, 360, 400 and 600."
|
|
|
|
@${FALSE}
|
|
|
|
.endif
|
|
|
|
.if ${DVIPS} != dvi2ps && ${DVIPS} != dvips
|
|
|
|
@${ECHO} "Error: invalid value for DVIPS: \"${DVIPS}\""
|
|
|
|
@${ECHO} "Possible values are: dvi2ps and dvips."
|
|
|
|
@${FALSE}
|
1999-06-11 19:03:45 +00:00
|
|
|
.endif
|
|
|
|
|
2000-01-25 14:23:46 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
1999-06-11 19:03:45 +00:00
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
@( \
|
2000-01-25 14:23:46 +00:00
|
|
|
${ECHO} "**************************************************************"; \
|
|
|
|
${ECHO} "* japanese/dvipsk is used in default. *"; \
|
|
|
|
${ECHO} "* Please refer to Makefile about a change. *"; \
|
|
|
|
${ECHO} "* or, after installation, please change *"; \
|
|
|
|
${ECHO} "* ${PREFIX}/libexec/xdviprint. *"; \
|
|
|
|
${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-16 12:41:09 +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 \
|
2000-01-25 14:23:46 +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
|
|
|
|
2000-01-25 14:23:46 +00:00
|
|
|
.include <bsd.port.post.mk>
|