aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/ptex-pkfonts300/Makefile
blob: cef6ed1c67571352d0d11b158f68984a53680c00 (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
53
54
55
# New ports collection makefile for:   ptex-pkfonts
# Date created:        24 Dec 1999
# Whom:                Kentaro Inagaki <inagaki@tg.rim.or.jp>
#
# $FreeBSD$
#

PORTNAME=   ptex-pkfonts
PORTVERSION=    1.0
PKGNAMESUFFIX=  ${RESOLUTION}
CATEGORIES= japanese print
DISTFILES=  # none

MAINTAINER= inagaki@tg.rim.or.jp

RUN_DEPENDS=    ${LOCALBASE}/lib/fonts/pk${RESOLUTION}:${PORTSDIR}/print/pkfonts${RESOLUTION}

NO_BUILD=   yes
PKGREQ=     ${WRKDIR}/REQ

# ******************
# 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.
# MAKETEX_MODE:
#  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.
# ******************
USEPK_MODE?=    preview
MAKETEX_MODE?=  ${USEPK_MODE}
RESOLUTION?=    300

.BEGIN:
.if defined(RESOLUTION) && \
    ${RESOLUTION} != 118 && ${RESOLUTION} != 240 && \
    ${RESOLUTION} != 300 && ${RESOLUTION} != 360 && \
    ${RESOLUTION} != 400  && ${RESOLUTION} != 600
    @${ECHO} "Error: invalid value for RESOLUTION: \"${RESOLUTION}\""
    @${ECHO} "Possible values are: 118, 240, 300, 360, 400 and 600."
    @${FALSE}
.endif

do-extract:
    @${MKDIR} ${WRKDIR}
    @${SED} -e 's,%%RESOLUTION%%,${RESOLUTION},g' \
        -e 's,%%USEPK_MODE%%,${USEPK_MODE},g' \
        < ${FILESDIR}/REQ.tmpl > ${WRKDIR}/REQ; \

do-install:
    @${SETENV} PKG_PREFIX=${PREFIX} \
        ${SH} ${WRKDIR}/REQ ${PKGNAME} INSTALL

.include <bsd.port.mk>