aboutsummaryrefslogtreecommitdiffstats
path: root/vietnamese/vnlpr/Makefile
blob: 58abc871f8dd29654f5933df2156a884dcf2381c (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
# New ports collection makefile for:  vnlpr
# Version required: 2.0
# Date created:     Sat Dec 7, 1996
# Whom:         David O'Brien (obrien@cs.ucdavis.edu)
#
# $Id: Makefile,v 1.3 1997/09/22 17:04:39 max Exp $
#

DISTNAME=   vnlpr
PKGNAME=    vi-vnlpr-2.0
CATEGORIES= vietnamese
MASTER_SITES=   ftp://ftp.media.mit.edu/pub/Vietnet/Viscii/Unix/  \
        ftp://ftp.monash.edu.au/pub/vietnam/unix/
EXTRACT_SUFX=   .tar.Z

MAINTAINER=     obrien@FreeBSD.org

RUN_DEPENDS=    vn7to8:${PORTSDIR}/vietnamese/vn7to8 \
        vnpstext:${PORTSDIR}/vietnamese/vnpstext

pre-patch:
    @${MV} ${WRKSRC}/vnlpr ${WRKSRC}/vnlpr.in

do-build:
    ${SED} -e "s:^set VNLIB=./:set VNLIB=${PREFIX}/share/vn-fonts:"  \
        -e 's/^set PRINTER="barrons"/#set PRINTER="postscript"/'  \
        ${WRKSRC}/vnlpr.in > ${WRKSRC}/vnlpr

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/vnlpr ${PREFIX}/bin
    @${MKDIR} ${PREFIX}/share/vn-fonts
    ${INSTALL_DATA} ${WRKSRC}/*.ps ${PREFIX}/share/vn-fonts
    ${INSTALL_DATA} ${WRKSRC}/*.gsf ${PREFIX}/share/vn-fonts
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/doc/vnlpr
    ${INSTALL_MAN} ${WRKSRC}/README ${PREFIX}/share/doc/vnlpr
    ${INSTALL_MAN} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/vnlpr
.endif

.include <bsd.port.mk>