aboutsummaryrefslogtreecommitdiffstats
path: root/print/dvipdfmx/Makefile
blob: fbd4cb75c12834a568b70c612760477a0c588013 (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
# New ports collection makefile for:    dvipdfmx
# Date created:     8 March 2001
# Whom:         Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
#
# $FreeBSD$
#

PORTNAME=   dvipdfmx
PORTVERSION=    20040411
CATEGORIES= print
MASTER_SITES=   http://project.ktug.or.kr/dvipdfmx/snapshot/current/

MAINTAINER= matusita@FreeBSD.org
COMMENT=    Dvipdfm with Asian languages by CID-keyed font technology support

BUILD_DEPENDS=  ${LOCALBASE}/lib/libkpathsea.a:${PORTSDIR}/print/teTeX-base
LIB_DEPENDS=    png:${PORTSDIR}/graphics/png \
        paper:${PORTSDIR}/print/libpaper
RUN_DEPENDS=    ${LOCALBASE}/${TEXMFLOCAL}/ls-R:${PORTSDIR}/print/tex-texmflocal \
        ${ADOBECMAPDIR}/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps \
        kpsepath:${PORTSDIR}/print/teTeX-base

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --datadir=${LOCALBASE}/${TEXMFLOCAL}
PLIST_SUB=  TEXMFLOCAL=${TEXMFLOCAL} \
        MKTEXLSR=${MKTEXLSR} \
        ADOBECMAPDIR=${ADOBECMAPDIR} \
        DVIPDFMCMAPDIR=${DVIPDFMCMAPDIR}

TEXMFLOCAL= share/texmf-local
MKTEXLSR=   ${LOCALBASE}/bin/mktexlsr
DVIPDFMCMAPDIR= ${LOCALBASE}/${TEXMFLOCAL}/dvipdfm/CMap
ADOBECMAPDIR=   ${LOCALBASE}/share/fonts/adobe-cmaps

post-install:
    ${LN} -s -f ${ADOBECMAPDIR} ${DVIPDFMCMAPDIR}/adobe-cmaps
    ${MKTEXLSR}

.include <bsd.port.mk>