summaryrefslogtreecommitdiff
path: root/cad/xcircuit/Makefile
blob: 995efaaaf87a3ef4acf5d09892c1c10768d7b255 (plain)
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
# $NetBSD: Makefile,v 1.3 2001/02/16 13:46:31 wiz Exp $

DISTNAME=	xcircuit-2.2.0
CATEGORIES=	cad graphics
MASTER_SITES=	http://bach.ece.jhu.edu/~tim/programs/xcircuit/archive/

MAINTAINER=	jtb@netbsd.org
HOMEPAGE=	http://bach.ece.jhu.edu/~tim/programs/xcircuit/
COMMENT=	Drawing program for X11 (especially for circuits)

DEPENDS+=	ghostscript-[0-9]*:../../print/ghostscript

WRKSRC=		${WRKDIR}/${DISTNAME}
USE_IMAKE=	yes
USE_X11BASE=	yes
USE_XPM=	yes
EVAL_PREFIX+=	GS_PREFIX=ghostscript

post-extract:
	${RM} -fr ${WRKSRC}/examples/CVS
	${MV} -f ${WRKSRC}/examples/.xcircuitrc ${WRKSRC}/examples/xcircuitrc
	${TOUCH} ${WRKSRC}/menudep.h

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xcircuit/
	@for f in ${WRKSRC}/examples/*; do \
		c="${INSTALL_DATA} $$f ${PREFIX}/share/examples/xcircuit/"; \
		${ECHO} $$c; $$c; \
	done

.include "../../mk/bsd.pkg.mk"