aboutsummaryrefslogtreecommitdiff
path: root/japanese/platex-common/Makefile
blob: ac6f13d3c85923e652acc334748bbe5e2dfc1b12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# New ports collection makefile for:	platex2e-common
# Version required:		<1997/07/02>+2
# Date created:			05 Oct 1997
# Whom:				Masafumi NAKANE <max@FreeBSD.ORG>
#
# $Id: Makefile,v 1.19 1997/10/05 21:07:13 max Exp $
#

DISTNAME=	base-9706
PKGNAME=	ja-platex2e-common-97.07.02.2
CATEGORIES=	japanese print
MASTER_SITES=	ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/platex/1997-07-02/ \
		ftp://ftp.ams.org/pub/tex/ \
		${MASTER_SITE_LOCAL}
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ecfonts-1.0.tar.gz tfm.tar \
		amsfonts-sources.tar.Z

MAINTAINER=	max@FreeBSD.ORG

BUILD_DEPENDS=	ptex-common:${PORTSDIR}/japanese/ptex-common
RUN_DEPENDS=	ptex-common:${PORTSDIR}/japanese/ptex-common

WRKSRC=		${WRKDIR}/base
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX} ecfonts-1.0.tar.gz  \
		amsfonts-sources.tar.Z
DIST_SUBDIR=	platex2e

TEXMF=		${PREFIX}/share/texmf

post-extract:
	@tar -C ${WRKDIR} -xf ${DISTDIR}/${DIST_SUBDIR}/tfm.tar

do-build:
	@(cd ${WRKSRC}; tex -ini unpack.ins ; tex -ini latex.ltx)

do-install:
	@${RM} -rf ${TEXMF}/tex/latex/base
	@${MKDIR} ${TEXMF}/tex/latex/base
	${CP} ${WRKSRC}/* ${TEXMF}/tex/latex/base
	${MV} -f ${TEXMF}/tex/latex/base/latex.fmt ${TEXMF}/web2c
	${MKDIR} ${TEXMF}/fonts/tfm/public/ams
	${CP} ${WRKDIR}/tfm/* ${TEXMF}/fonts/tfm/public/ams
	${MKDIR} ${TEXMF}/fonts/source/public/ams
	${CP} -R ${WRKDIR}/amsfonts/sources/* ${TEXMF}/fonts/source/public/ams
	${MKDIR} ${TEXMF}/fonts/tfm/public/ec
	${CP} ${WRKDIR}/ec/tfm/* ${TEXMF}/fonts/tfm/public/ec
	${MKDIR} ${TEXMF}/fonts/source/public/ec
	${CP} ${WRKDIR}/ec/src/* ${TEXMF}/fonts/source/public/ec
	@/bin/ln -fs tex ${PREFIX}/bin/latex
	@/bin/ln -s latex ${PREFIX}/bin/platex-common

.include <bsd.port.mk>