aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/e2ps/Makefile
blob: 7e88e2abdd490039d9332b04e7adb8213fa6507b (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
# Created by: Daisuke Kawahara <kawahara@pine.kuee.kyoto-u.ac.jp>
# $FreeBSD$

PORTNAME=   e2ps
PORTVERSION=    4.34
CATEGORIES= japanese print
MASTER_SITES=   http://wt1.ld.infoseek.co.jp/sources/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Text file to postscript converter (with Japanese support)

USE_BZIP2=  yes
DOCDIR=     ${PREFIX}/share/doc/${PKGBASE}

NO_STAGE=   yes
.include <bsd.port.pre.mk>

post-patch:
        cd ${WRKSRC} && \
        mv ps-font.c ps-font.c.orig && \
        ${SED} -e '/Times-Roman$$/,/^Gothic-Medium.Katakana$$/{s,$$,\\,;}' ps-font.c.orig > ps-font.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/e2ps ${PREFIX}/bin
    ${LN} -sf ${PREFIX}/bin/e2ps ${PREFIX}/bin/e2lpr
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCDIR}
    cd ${WRKSRC} ; ${INSTALL_DATA} README.euc README.english ${DOCDIR}
.endif

.include <bsd.port.post.mk>