1996-11-09 12:59:11 +00:00
|
|
|
# New ports collection makefile for: xdvi-17miyu + patches + vector font library
|
1996-12-18 14:16:23 +00:00
|
|
|
# Version required: pl17
|
1996-11-09 12:59:11 +00:00
|
|
|
# Date created: 8 Nov 1996
|
|
|
|
# Whom: Mita Yoshio <mita@jp.FreeBSD.org>
|
|
|
|
#
|
1996-12-18 14:16:23 +00:00
|
|
|
# $Id: Makefile,v 1.5 1996/12/07 00:20:43 asami Exp $
|
1996-11-09 12:59:11 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= xdvi-17
|
1996-12-18 14:16:23 +00:00
|
|
|
PKGNAME= jp-vfxdvi${RESOLUTION}-17
|
1996-11-11 10:13:07 +00:00
|
|
|
CATEGORIES= japanese print
|
1996-11-09 12:59:11 +00:00
|
|
|
MASTER_SITES= ftp://bacchus.in.kobe-u.ac.jp/pub/tex/dviware/xdvi17/ \
|
|
|
|
ftp://bacchus.in.kobe-u.ac.jp/pub/tex/dviware/xdvi18/ \
|
|
|
|
ftp://ftp.hipecs.hokudai.ac.jp/pub/news-archive/fj.comp.texhax/volume95/Sep/ \
|
|
|
|
ftp://ftp.hipecs.hokudai.ac.jp/pub/news-archive/fj.comp.texhax/volume95/Oct/ \
|
|
|
|
ftp://ftp.hipecs.hokudai.ac.jp/pub/news-archive/fj.comp.texhax/volume95/Nov/
|
|
|
|
DISTFILES= xdvi-17.tar.gz xdvi-17miyu.patch-beta6.gz \
|
|
|
|
xdvi18-okagawa-patch \
|
|
|
|
950923.02.Z 951007.02.Z 951109.04.Z
|
|
|
|
|
|
|
|
MAINTAINER= mita@jp.FreeBSD.org
|
|
|
|
|
1996-12-07 00:20:47 +00:00
|
|
|
LIB_DEPENDS= VFlib\\.2\\.:${PORTSDIR}/japanese/vflib
|
1996-11-09 12:59:11 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}
|
|
|
|
DIST_SUBDIR= xdvi
|
|
|
|
USE_IMAKE= yes
|
|
|
|
XMKMF= xmkmf
|
|
|
|
EXTRACT_ONLY= xdvi-17.tar.gz
|
|
|
|
|
|
|
|
.if !defined(RESOLUTION)
|
|
|
|
RESOLUTION= 300
|
|
|
|
RESOLUTION_UNSPECIFIED= yes
|
|
|
|
.else
|
|
|
|
.if ${RESOLUTION} != 118 && ${RESOLUTION} != 240 && \
|
|
|
|
${RESOLUTION} != 300 && ${RESOLUTION} != 360 && \
|
|
|
|
${RESOLUTION} != 400 && ${RESOLUTION} != 600
|
|
|
|
RESOLUTION_INVALID= yes
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
.if defined(RESOLUTION_UNSPECIFIED)
|
|
|
|
@echo "Building xdvi with ${RESOLUTION}dpi fonts."
|
|
|
|
@echo "Set the environment variable RESOLUTION if you want"
|
|
|
|
@echo "it to use other resolutions."
|
|
|
|
@echo "Possible values are: 118, 240, 300 (default), 360, 400 and 600."
|
|
|
|
.elif defined(RESOLUTION_INVALID)
|
|
|
|
@echo "Error: invalid value for RESOLUTION: \"${RESOLUTION}\""
|
|
|
|
@echo "Possible values are: 118, 240, 300 (default), 360, 400 and 600."
|
|
|
|
@/usr/bin/false
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@(cd ${WRKDIR} ; \
|
1996-12-03 04:07:49 +00:00
|
|
|
${GZCAT} ${DISTDIR}/${DIST_SUBDIR}/950923.02.Z | uudecode ; \
|
|
|
|
${GZCAT} ${DISTDIR}/${DIST_SUBDIR}/951109.04.Z | uudecode ; \
|
|
|
|
uudecode ${DISTDIR}/${DIST_SUBDIR}/xdvi18-okagawa-patch ; \
|
1996-11-09 12:59:11 +00:00
|
|
|
gzip -d xdvi18.vflib.patch.gz ; \
|
|
|
|
${PATCH} < ${FILESDIR}/xdvi18.vflib.patch.of.patch >/dev/null 2>&1; \
|
|
|
|
gzip -d xdvi-17+ptex.fixed.patch.gz ; \
|
|
|
|
${PATCH} < ${FILESDIR}/xdvi-17+ptex.fixed.patch.of.patch >/dev/null 2>&1; \
|
1996-12-03 13:08:20 +00:00
|
|
|
${MKDIR} tmp; \
|
1996-11-09 12:59:11 +00:00
|
|
|
cd tmp; \
|
|
|
|
${PATCH} -f < ../xdvi18.vflib.patch >/dev/null 2>&1; \
|
|
|
|
cd .. ; \
|
1996-12-03 04:07:49 +00:00
|
|
|
${GZCAT} ${DISTDIR}/${DIST_SUBDIR}/xdvi-17miyu.patch-beta6.gz | patch -d . >/dev/null 2>&1; \
|
1996-11-09 12:59:11 +00:00
|
|
|
${GZCAT} xdvi-pl17+markpage+toc+printdvi+paper.patch.gz | patch -d . >/dev/null 2>&1 ; \
|
|
|
|
${PATCH} -d . < xdvi-17+ptex.fixed.patch >/dev/null 2>&1; \
|
|
|
|
${CP} tmp/dnpzeit.c tmp/zeit.c . ; \
|
|
|
|
)
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.if defined(BATCH)
|
|
|
|
@(cd ${WRKDIR}; sh ${FILESDIR}/customize.sh ${RESOLUTION} BATCH)
|
|
|
|
.else
|
|
|
|
@(cd ${WRKDIR}; sh ${FILESDIR}/customize.sh ${RESOLUTION})
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|