1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit versionator multilib toolchain-funcs
9 DESCRIPTION="A C++ based modeling platform for VLSI and system-level co-design"
10 HOMEPAGE="http://www.systemc.org/"
16 KEYWORDS="~amd64 ~x86"
21 elog "${PN} developers require end-users to accept their license agreement"
22 elog "by registering on their Web site (${HOMEPAGE})."
23 elog "Please download ${A} manually and place it in ${DISTDIR}."
27 sed -i -e "s:lib-\$(TARGET_ARCH):$(get_libdir):g" $(find . -name Makefile.in) || die "Patching Makefile.in failed"
29 sed -i -e "s:OPT_CXXFLAGS=\"-O3\":OPT_CXXFLAGS=\"${CXXFLAGS}\":g" configure || die "Patching configure failed"
31 sed -i -e '/#include "sysc\/utils\/sc_report.h"/a \
33 #include <cstring>' src/sysc/utils/sc_utils_ids.cpp || die "Patching failed"
35 for sfile in src/sysc/qt/md/*.s ; do
37 #if defined(__linux__) && defined(__ELF__) \
38 .section .note.GNU-stack,"",%progbits \
39 #endif' "${sfile}" || die "Patching ${sfile} failed"
44 econf --disable-dependency-tracking CXX=$(tc-getCXX)
53 dodoc AUTHORS ChangeLog INSTALL NEWS README RELEASENOTES
60 elog "If you want to run the examples, you need to :"
61 elog " tar xvfz ${PORTAGE_ACTUAL_DISTDIR}/${A}"
63 elog " find examples -name 'Makefile.*' -exec sed -i -e 's/-lm/-lm -lpthread/' '{}' \;"