summaryrefslogtreecommitdiff
path: root/cad/vipec/Makefile
blob: e243044fecc2029b3d98e01aa87d5be57fd78a25 (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
37
38
39
40
41
42
43
44
45
46
47
48
# ex:ts=8
# New ports collection makefile for:	vipec
# Date created:			April 3, 2001
# Whom:				Ying-Chieh Liao <ijliao@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	vipec
PORTVERSION=	3.2.0
PORTREVISION=	1
CATEGORIES=	cad
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}
DISTNAME=	ViPEC-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Analyze high frequency, linear electrical networks

WRKSRC=		${WRKDIR}/${DISTNAME}/src

USE_QT_VER=	3
USE_GMAKE=	yes
MAKE_ENV=	QTDIR="${QT_PREFIX}"

post-patch:
	@${SED} -e 's:@PREFIX@:${PREFIX}:g' \
		${FILESDIR}/vipec.sh.in > ${WRKSRC}/../vipec.sh

do-configure:
	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} qmake \
		-spec ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ vipec.pro

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/../vipec.sh ${PREFIX}/bin/vipec
	${INSTALL_PROGRAM} ${WRKSRC}/../vipec ${PREFIX}/bin/vipec.exec
	@${MKDIR} ${DATADIR}
	${INSTALL_DATA} ${WRKSRC}/../vipec.cfg ${DATADIR}
	@${MKDIR} ${DATADIR}/ckt
	${INSTALL_DATA} ${WRKSRC}/../ckt/*.* ${DATADIR}/ckt
	@${MKDIR} ${DATADIR}/help
	${INSTALL_DATA} ${WRKSRC}/../help/*.* ${DATADIR}/help
	@${MKDIR} ${DATADIR}/help/models
	${INSTALL_DATA} ${WRKSRC}/../help/models/*.* ${DATADIR}/help/models
	@${MKDIR} ${DATADIR}/messages
	${INSTALL_DATA} ${WRKSRC}/../messages/*.qm ${DATADIR}/messages

.include <bsd.port.mk>