aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/fig2pstricks/Makefile
blob: 2c484f708769614ab7cf36e1f182e2bcfd52da4d (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
# ex:ts=8
# Ports collection makefile for:    fig2pstricks
# Date created:         Mar 4, 2005
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   fig2pstricks
PORTVERSION=    0.6.8
CATEGORIES= graphics
MASTER_SITES=   http://www.vuw.ac.nz/staff/chirok_han/fig2pstricks/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Convert xfig to pstricks

USE_GMAKE=  yes

PLIST_FILES=    bin/fig2pstricks

post-patch:
    @${REINPLACE_CMD} -e 's|gcc|$$(CC)|g ; \
         s|^CFLAGS|#CFLAGS|g' ${WRKSRC}/Makefile
    @cd ${WRKSRC} && ${TR} -d '\r' < fig2pstricks.c > fig2pstricks.c.bak \
        && ${SED} -e 's:0.6.6:${PORTNAME}:g' < fig2pstricks.c.bak \
        > fig2pstricks.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

.include <bsd.port.mk>