summaryrefslogtreecommitdiff
path: root/cad/xcircuit/Makefile
blob: f4b1901b5af2575536dd7e638786ef908eca0184 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# $NetBSD: Makefile,v 1.28 2006/11/12 14:25:50 dmcmahill Exp $

DISTNAME=	xcircuit-3.4.26
CATEGORIES=	cad graphics
MASTER_SITES=	http://opencircuitdesign.com/xcircuit/archive/ \
		http://bach.ece.jhu.edu/~tim/programs/xcircuit/archive/
EXTRACT_SUFX=	.tgz

MAINTAINER=	shaun@inerd.com
HOMEPAGE=	http://opencircuitdesign.com/xcircuit/
COMMENT=	Drawing program for X11 (especially for circuits)

WRKSRC=		${WRKDIR}/${DISTNAME}
USE_TOOLS+=	gs:run
GNU_CONFIGURE=	yes

.include "../../lang/tcl/Makefile.version"
.include "../../x11/tk/Makefile.version"

CONFIGURE_ARGS+=--prefix=${PREFIX}
CONFIGURE_ARGS+=--with-tcl=${BUILDLINK_PREFIX.tcl}/lib
CONFIGURE_ARGS+=--with-tk=${BUILDLINK_PREFIX.tk}/lib
CONFIGURE_ARGS+=--with-tclincls=${BUILDLINK_PREFIX.tcl}/include
CONFIGURE_ARGS+=--with-tcllibs=${BUILDLINK_PREFIX.tcl}/lib
CONFIGURE_ARGS+=--with-tkincls=${BUILDLINK_PREFIX.tk}/include
CONFIGURE_ARGS+=--with-tklibs=${BUILDLINK_PREFIX.tk}/lib
#CFLAGS+=	-DBUILTINS_DIR=${PREFIX}/lib/${DISTNAME:C/\.[^\.]*$//}
LDFLAGS+= 	-ltcl${TCL_VERSION:C/\.[^\.]*$//:C/\.//g}
LDFLAGS+=	-ltk${TK_VERSION:C/\.[^\.]*$//:C/\.//g}
LDFLAGS+=	-L${LOCALBASE}/lib

BUILD_TARGET=	tcl
INSTALL_TARGET= install-tcl

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

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/xcircuit
	${INSTALL_DATA} ${WRKSRC}/examples/*.* ${PREFIX}/share/examples/xcircuit/
	${INSTALL_DATA} ${WRKSRC}/examples/xcircuitrc ${PREFIX}/share/examples/xcircuit/

.include "../../graphics/xpm/buildlink3.mk"
.include "../../lang/tcl/buildlink3.mk"
.include "../../x11/tk/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"