ports/93879: [PATCH] FIXED systemc installation problem and cleaned up Makefile
Daniel Thiele
dthiele at gmx.net
Wed Mar 29 20:10:20 UTC 2006
The following reply was made to PR ports/93879; it has been noted by GNATS.
From: Daniel Thiele <dthiele at gmx.net>
To: bug-followup at FreeBSD.org, thierry at FreeBSD.org, dthiele at gmx.net
Cc:
Subject: Re: ports/93879: [PATCH] FIXED systemc installation problem and cleaned
up Makefile
Date: Wed, 29 Mar 2006 22:03:08 +0200
Hello,
thank you for your hint at OPTIMIZED_CFLAGS. I went through the
information you provided and adjusted the port's Makefile
(hopefully in the right way). The new Makefile should now look
like this (except for the $FreeBSD line):
--- Makefile start ---
# New ports collection makefile for: systemc
# Date created: 15 December 2005
# Whom: Daniel Thiele
#
# $FreeBSD: ports/cad/systemc/Makefile,v 1.1 2005/12/18 11:23:43 lawrance Exp $
#
PORTNAME= systemc
PORTVERSION= 2.1.v1
PORTREVISION= 1
CATEGORIES= cad devel
EXTRACT_SUFX= .tgz
MAINTAINER= dthiele at gmx.net
COMMENT= A modeling platform for system-level C++ models
RESTRICTED= You have to register at http://www.systemc.org/account/register.php first
USE_GMAKE= yes
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= ../configure
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --prefix=${PREFIX}/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
.if defined(WITH_OPTIMIZED_CFLAGS)
CXXFLAGS+= -O3
.endif
pre-everything::
.if !defined(WITH_OPTIMIZED_CFLAGS)
@${ECHO_MSG} "You can enable additional compilation optimizations"
@${ECHO_MSG} "by defining WITH_OPTIMIZED_CFLAGS"
.endif
pre-configure:
@${MKDIR} ${WRKSRC}/objdir
@${REINPLACE_CMD} -e 's|\(OPT_CXXFLAGS="\).*"|\1${CXXFLAGS}"|g' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
.include <bsd.port.post.mk>
--- Makefile end ---
Since REINPLACE_CMD with the above arguments replaces the entire
OPT_CXXFLAGS lines of the configure script the file patch-configure
can remain as it is or the CXXFLAGS line may be canged to
OPT_CXXFLAGS="".
Regards,
Daniel
More information about the freebsd-ports-bugs
mailing list