aboutsummaryrefslogtreecommitdiffstats
path: root/print/dvipdfmx/Makefile
blob: 311173a9da86310bc2fd53c32e1539064ff37a94 (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=    20030313
PORTREVISION=   3
CATEGORIES= print
MASTER_SITES=   http://project.ktug.or.kr/dvipdfmx/snapshot/ \
        ftp://freebsd.sinica.edu.tw/pub/statue/dvipdfmx/
DISTFILES=  ${PORTNAME}-${PORTVERSION}.tar.gz \
        ${PORTNAME}-base-0.1.tar.gz

MAINTAINER= statue@freebsd.sinica.edu.tw
COMMENT=    Dvipdfm with Asian languages by CID-keyed font technology support

BUILD_DEPENDS=  ${LOCALBASE}/lib/libkpathsea.a:${PORTSDIR}/print/teTeX
LIB_DEPENDS=    png:${PORTSDIR}/graphics/png
RUN_DEPENDS=    ${LOCALBASE}/share/ghostscript/Resource/ai0/CMap/Identity-H:${PORTSDIR}/print/adobe-cmaps \
        kpsepath:${PORTSDIR}/print/teTeX

USE_OPENSSL=    yes
GNU_CONFIGURE=  yes

pre-install:
    ${CP} ${LOCALBASE}/bin/dvipdfm ${LOCALBASE}/bin/dvipdfm-orig > /dev/null 2>&1 || ${TRUE}
    ${MV} ${LOCALBASE}/share/texmf/dvipdfm ${LOCALBASE}/share/texmf/dvipdfm-orig > /dev/null 2>&1 || ${TRUE}

post-install:
    @${LN} -fs ${LOCALBASE}/share/ghostscript/Resource ${PREFIX}/share/texmf/dvipdfm/
    ${MKDIR} ${LOCALBASE}/share/texmf/dvipdfm/base
    ${CP} ${WRKDIR}/base/* ${LOCALBASE}/share/texmf/dvipdfm/base
    ${RM} ${LOCALBASE}/share/texmf/dvipdfm/config/dvipdfmx.cfg.orig
    ${LOCALBASE}/bin/mktexlsr

.include <bsd.port.mk>