2005-12-18 11:23:43 +00:00
# New ports collection makefile for: systemc
# Date created: 15 December 2005
# Whom: Daniel Thiele
#
# $FreeBSD$
#
PORTNAME = systemc
2009-03-28 10:28:25 +00:00
PORTVERSION = 2.2.0
2005-12-18 11:23:43 +00:00
CATEGORIES = cad devel
EXTRACT_SUFX = .tgz
MAINTAINER = dthiele@gmx.net
COMMENT = A modeling platform for system-level C++ models
2009-03-28 10:28:25 +00:00
RESTRICTED = You have to register at http://www.systemc.org/kmembership_info/individual_signup first
2005-12-18 11:23:43 +00:00
USE_GMAKE = yes
HAS_CONFIGURE = yes
CONFIGURE_SCRIPT = ../configure
2006-04-01 22:50:56 +00:00
CONFIGURE_ARGS = --prefix= ${ PREFIX } /systemc ${ CONFIGURE_TARGET }
CONFIGURE_WRKSRC = ${ WRKSRC } /objdir
BUILD_WRKSRC = ${ WRKSRC } /objdir
INSTALL_WRKSRC = ${ WRKSRC } /objdir
2005-12-18 11:23:43 +00:00
. i n c l u d e < b s d . p o r t . p r e . m k >
. i f ! e x i s t s ( $ { D I S T D I R } / $ { D I S T N A M E } $ { E X T R A C T _ S U F X } )
2009-03-28 10:28:25 +00:00
IGNORE = is restricted. You have to register at http://www.systemc.org/kmembership_info/individual_signup and download ${ DISTFILES } from http://www.systemc.org/downloads/standards/ first. Then put ${ DISTFILES } into ${ DISTDIR } and run make again
2005-12-18 11:23:43 +00:00
. e n d i f
2006-04-01 22:50:56 +00:00
. i f d e f i n e d ( W I T H _ O P T I M I Z E D _ C F L A G S )
CXXFLAGS += -O3
. e n d i f
pre-everything ::
. i f ! d e f i n e d ( W I T H _ O P T I M I Z E D _ C F L A G S )
@${ ECHO_MSG } "You can enable additional compilation optimizations"
@${ ECHO_MSG } "by defining WITH_OPTIMIZED_CFLAGS"
. e n d i f
pre-configure :
2005-12-18 11:23:43 +00:00
@${ MKDIR } ${ WRKSRC } /objdir
2006-04-01 22:50:56 +00:00
@${ REINPLACE_CMD } -e 's|\(OPT_CXXFLAGS="\).*"|\1${CXXFLAGS}"|g' \
${ CONFIGURE_WRKSRC } /${ CONFIGURE_SCRIPT }
2005-12-18 11:23:43 +00:00
2009-03-28 10:28:25 +00:00
post-patch :
@find ${ WRKSRC } -name .DS_Store -delete
2005-12-18 11:23:43 +00:00
. i n c l u d e < b s d . p o r t . p o s t . m k >