aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/jadetex-ptex/Makefile
blob: dfce0ef75095f4c60741c4da6db2db8edaf54d1d (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
# New ports collection makefile for:    jadetex-ptex
# Date created:         11 June 2003
# Whom:                 Hiroki Sato <hrs@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   jadetex
PORTVERSION=    3.13
PORTREVISION=   8
CATEGORIES= japanese print
MASTER_SITES=   SF
PKGNAMESUFFIX=  -ptex
DISTNAME=   jadetex-${PORTVERSION}

MAINTAINER= hrs@FreeBSD.org
COMMENT=    A pTeX backend for Jade, for typesetting SGML documents

BUILD_DEPENDS=  ptex:${PORTSDIR}/japanese/ptex
LIB_DEPENDS=    png.5:${PORTSDIR}/graphics/png
RUN_DEPENDS=    ptex:${PORTSDIR}/japanese/ptex

PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES=  pkg-message

PLIST_SUB=  PKGNAMESUFFIX=${PKGNAMESUFFIX} \
        MKTEXLSR=${MKTEXLSR} \
        TEXMFDIR=${TEXMFDIR} \
        TEXMFLOCALDIR=${TEXMFLOCALDIR}

MKTEXLSR=   ${LOCALBASE}/bin/mktexlsr
TEXMFDIR=   share/texmf
TEXMFLOCALDIR=  share/texmf-local

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}${PKGNAMESUFFIX}
    ${INSTALL_MAN} ${WRKSRC}/README.jadetex-ptex ${DOCSDIR}${PKGNAMESUFFIX}/
.endif
    ${LOCALBASE}/bin/mktexlsr ${LOCALBASE}/${TEXMFDIR}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>