summaryrefslogtreecommitdiff
path: root/cad/vipec/Makefile
blob: 244f4911ecdbd9689222668101347234bb31cc6d (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
# $NetBSD: Makefile,v 1.37 2004/12/03 15:14:52 wiz Exp $
#

DISTNAME=	ViPEC-3.1.3
PKGREVISION=	1
CATEGORIES=	cad
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=vipec/}

MAINTAINER=	dmcmahill@NetBSD.org
HOMEPAGE=	http://vipec.sourceforge.net/
COMMENT=	Network analyser for electrical networks

BUILD_DEPENDS+=		tmake-*:../../devel/tmake

USE_BUILDLINK3=		yes
USE_X11=		yes
USE_GNU_TOOLS+=		make
UNLIMIT_RESOURCES+=	datasize

CONFLICTS+=		vipec-[0-9]*

BUILD_TARGET=		ALL

do-configure:
	cd ${WRKSRC}/src && tmake vipec "CONFIG+=release" -o Makefile
	#cd ${WRKSRC}/src && tmake vipec "CONFIG+=debug" -o Makefile

post-patch:
	${SED} 's;@prefix@;${PREFIX};g' < ${FILESDIR}/vipec.sh.in > ${WRKDIR}/vipec.sh

post-install:
	${INSTALL_SCRIPT} ${WRKDIR}/vipec.sh ${PREFIX}/bin/vipec
	${INSTALL_DATA} ${WRKSRC}/vipec.cfg ${PREFIX}/vipec

.include "../../x11/qt2-libs/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"