aboutsummaryrefslogtreecommitdiffstats
path: root/cad/xcircuit/Makefile
blob: a78e64ebed9b3f925d0dd86b834372648234bf9e (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
# New ports collection makefile for:    xcircuit
# Date created:     3 Apr 1998
# Whom:         giffunip@asme.org
#
# $FreeBSD$
#

PORTNAME=   xcircuit
PORTVERSION=    2.3.3
PORTEPOCH=  1
CATEGORIES= cad
MASTER_SITES=   http://xcircuit.ece.jhu.edu/archive/

MAINTAINER= ports@FreeBSD.org
COMMENT=    An X11 drawing program [especially for circuit schematics]

RUN_DEPENDS=    gs:${PORTSDIR}/print/ghostscript-gnu
BUILD_DEPENDS=  gm4:${PORTSDIR}/devel/m4

USE_XPM=    yes
USE_IMAKE=  yes
USE_REINPLACE=  yes
XMKMF=      xmkmf

MAN1=       xcircuit.1

post-patch:
    @${FIND} ${WRKSRC} -name '*.[ch]' | ${XARGS} ${REINPLACE_CMD} -e \
        's|<malloc.h>|<stdlib.h>|g'

post-install:
    @${MKDIR} ${PREFIX}/share/examples/xcircuit
    ${TAR} -C ${WRKSRC}/examples --exclude CVS -cf - . | \
        ${TAR} -C ${PREFIX}/share/examples/xcircuit --unlink -xf -

.include <bsd.port.mk>