aboutsummaryrefslogtreecommitdiffstats
path: root/cad/scv/Makefile
blob: 5cbc0dc436c5a8290d8f972a93473c3960f90f67 (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
# New ports collection makefile for:   scv
# Date created:        16 December 2006
# Whom:                Peter Johnson
#
# $FreeBSD$
#

PORTNAME=   scv
PORTVERSION=    1.0p2
CATEGORIES= cad devel
MASTER_SITES=   # you have to register and manually fetch
EXTRACT_SUFX=   -sysc2.2.12jun06.tgz

MAINTAINER= johnson.peter@gmail.com
COMMENT=    SystemC Verification library

BUILD_DEPENDS=  ${LOCALBASE}/systemc/lib-freebsd/libsystemc.a:${PORTSDIR}/cad/systemc
RUN_DEPENDS=    ${LOCALBASE}/systemc/lib-freebsd/libsystemc.a:${PORTSDIR}/cad/systemc

RESTRICTED= You have to register at http://www.systemc.org/account/register.php first

USE_GMAKE=  yes
HAS_CONFIGURE=  yes

WRKSRC=     ${WRKDIR}/scv-1.0p2-sysc2.2
CONFIGURE_SCRIPT=   ../configure
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS=     --with-systemc=${LOCALBASE}/systemc ${CONFIGURE_TARGET}
CONFIGURE_WRKSRC=   ${WRKSRC}/objdir
BUILD_WRKSRC=   ${WRKSRC}/objdir
INSTALL_WRKSRC= ${WRKSRC}/objdir

.include <bsd.port.pre.mk>

.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE=     is restricted. You have to register at http://www.systemc.org/account/register.php and download ${DISTFILES} from there first. Then put ${DISTFILES} into ${DISTDIR} and run make again
.endif

pre-configure:
    @${MKDIR} ${WRKSRC}/objdir

.include <bsd.port.post.mk>