aboutsummaryrefslogtreecommitdiffstats
path: root/print/epsmerge/Makefile
blob: f2b954a0986d9d2de1e67304405aac89770a3e99 (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
# New ports collection makefile for:    epsmerge
# Date created:             Nov 30, 2003
# Whom:                 Bruce M Simpson <bms@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   epsmerge
PORTVERSION=    2.2.2
CATEGORIES= print
MASTER_SITES=   http://home.clara.net/nox/software/epsmerge/
DISTNAME=   ${PORTNAME}-${PORTVERSION}

MAINTAINER= bms@FreeBSD.org
COMMENT=    Merge multiple EPS files into one EPS or PS file

USE_PERL5=  yes
USE_SUBMAKE=    yes
NO_BUILD=   yes

MAN1=       epsmerge.1

EPSMERGELIBDIR= ${PREFIX}/lib/${PORTNAME}

LIBFILES=   Cell.pm CellFactory.pm Driver.pm Eps.pm Formatter.pm \
        Io.pm MainCell.pm Options.pm

do-install:
    ${MKDIR} ${EPSMERGELIBDIR}
.for libfile in ${LIBFILES}
    ${INSTALL_SCRIPT} ${WRKSRC}/lib/${libfile} ${EPSMERGELIBDIR}
.endfor
    ${INSTALL_SCRIPT} ${WRKSRC}/epsmerge ${EPSMERGELIBDIR}
    ${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL5}|g' \
        ${EPSMERGELIBDIR}/epsmerge
    ${RM} ${EPSMERGELIBDIR}/epsmerge.bak
    ${INSTALL_SCRIPT} ${FILESDIR}/epsmerge ${PREFIX}/bin
    ${REINPLACE_CMD} -e 's|%%EPSMERGELIBDIR%%|${EPSMERGELIBDIR}|g' \
        ${PREFIX}/bin/epsmerge
    ${RM} ${PREFIX}/bin/epsmerge.bak
.if !defined(NO_INSTALL_MANPAGES)
    ${INSTALL_MAN} ${WRKSRC}/docs/${PORTNAME}.1 ${PREFIX}/man/man1
.endif
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_MAN} ${WRKSRC}/docs/${PORTNAME}.txt ${DOCSDIR}
    ${INSTALL_MAN} ${WRKSRC}/docs/${PORTNAME}.html ${DOCSDIR}
.endif

.include <bsd.port.mk>