aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/epstool/Makefile
blob: 368be452010c7517e6e9a7fb47de6a7c199a9708 (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
# New ports collection makefile for:    epstool
# Date created:     23 October 1999
# Whom:         Yuzo FURUKAWA <hurukawa@kuee.kyoto-u.ac.jp>
#
# $FreeBSD$
#

PORTNAME=   epstool
PORTVERSION=    3.04
PORTREVISION=   1
CATEGORIES= graphics
MASTER_SITES=   ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/ghostgum/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Create or extract preview bitmaps in EPS files

USE_GHOSTSCRIPT_RUN=    yes

USE_REINPLACE=  yes
USE_GMAKE=  yes
MAKEFILE=   makefile
MAKE_ARGS=  MAKE="${GMAKE}" CC="${CC}" CCAUX="${CC}" CDEBUG="${CFLAGS}" \
        CLINK="${CC} ${LDFLAGS}" LINK="${CC} ${LDFLAGS}" EPSLIB=""
ALL_TARGET= ${PORTNAME}

MAN1=       epstool.1

pre-everything::
.if !defined(WITH_GHOSTSCRIPT_AFPL) || ${WITH_GHOSTSCRIPT_AFPL} != yes
    @${ECHO_MSG} ""
    @${ECHO_MSG} "      Define WITH_GHOSTSCRIPT_AFPL=yes to use"
    @${ECHO_MSG} "      AFPL Postscript interpreter instead of GNU one"
    @${ECHO_MSG} ""
.endif

post-patch:
    @${REINPLACE_CMD} -e 's|make -f|$$(MAKE) -f|g' ${WRKSRC}/src/unix.mak

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/bin/epstool ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/doc/epstool.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/epstool.htm ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/doc/gsview.css ${DOCSDIR}
.endif

.include <bsd.port.mk>