aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/pstoepsi/Makefile
blob: fcc473c0073410baf4292be86f4459b415ab2145 (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
# Created by: Mita Yoshio <mita@jp.FreeBSD.org>
# $FreeBSD$

PORTNAME=   pstoepsi
PORTVERSION=    20020711
PORTREVISION=   6
CATEGORIES= graphics
MASTER_SITES=   ftp://bourbon.usc.edu/pub/tgif/tools/pstoepsi/
DISTFILES=  pstoepsi README.this-site
DIST_SUBDIR=    pstoepsi
EXTRACT_ONLY=   #empty

MAINTAINER= ports@FreeBSD.org
COMMENT=    Wiliam Chia-Wei Cheng's yet another PS to EPSI converter

BROKEN=     unfetchable

RUN_DEPENDS=    pbmtoepsi:graphics/netpbm

USES=       ghostscript:run
NO_WRKSUBDIR=   yes
NO_ARCH=    yes

OPTIONS_DEFINE= DOCS

post-extract:
    @${CP} ${DISTDIR}/${DIST_SUBDIR}/pstoepsi ${WRKSRC}/pstoepsi.prefix
    @${CP} ${DISTDIR}/${DIST_SUBDIR}/README.this-site ${WRKSRC}

do-build:
    ${SED} -e "s+%%PREFIX%%+${PREFIX}+g" ${WRKSRC}/pstoepsi.prefix > \
                        ${WRKSRC}/pstoepsi
    ${GZIP_CMD} ${WRKSRC}/README.this-site

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/pstoepsi ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README.this-site.gz ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>