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

PORTNAME=   dvipdfmx
PORTVERSION=    20110311
CATEGORIES= print
MASTER_SITES=   ${MASTER_SITE_TEX_CTAN} \
        http://project.ktug.or.kr/dvipdfmx/snapshot/latest/ \
        http://project.ktug.or.kr/dvipdfmx/snapshot/archive/
MASTER_SITE_SUBDIR= dviware/dvipdfmx
DIST_SUBDIR=    dvipdfmx

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

LICENSE=    GPLv2 # (or later)

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

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --datadir=${LOCALBASE}/share
MAKE_JOBS_SAFE= yes

PLIST_SUB=  DVIPDFMXDIR=${DVIPDFMXDIR} \
        FONTMAPDIR=${FONTMAPDIR} \
        GLYPHMAPDIR=${GLYPHMAPDIR} \
        FONTCMAPDIR=${FONTCMAPDIR} \
        MKTEXLSR=${MKTEXLSR} \
        ADOBECMAPDIR=${ADOBECMAPDIR}

MAN1=       extractbb.1

TEXMFDIR=   share/texmf
DVIPDFMXDIR=    ${TEXMFDIR}/dvipdfmx
FONTMAPDIR= ${TEXMFDIR}/fonts/map/dvipdfmx
GLYPHMAPDIR=    ${TEXMFDIR}/fonts/map/glyphlist
FONTCMAPDIR=    ${TEXMFDIR}/fonts/cmap
ADOBECMAPDIR=   ${LOCALBASE}/share/fonts/adobe-cmaps
MKTEXLSR=   ${LOCALBASE}/bin/mktexlsr

post-install:
    ${MKDIR} ${LOCALBASE}/${FONTCMAPDIR}
    ${LN} -s -f ${ADOBECMAPDIR} \
        ${LOCALBASE}/${FONTCMAPDIR}/adobe-cmaps
    ${MKTEXLSR} ${PREFIX}/${TEXMFDIR}

.include <bsd.port.mk>