summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry/namd/namd-2.7.ebuild')
-rw-r--r--sci-chemistry/namd/namd-2.7.ebuild20
1 files changed, 8 insertions, 12 deletions
diff --git a/sci-chemistry/namd/namd-2.7.ebuild b/sci-chemistry/namd/namd-2.7.ebuild
index bac3055..d8de799 100644
--- a/sci-chemistry/namd/namd-2.7.ebuild
+++ b/sci-chemistry/namd/namd-2.7.ebuild
@@ -30,7 +30,7 @@ DEPEND="|| ( app-shells/csh
CHARM="charm-9999"
# NAMD_ARCH="Linux-amd64-g++"
-NAMD_ARCH="Linux-x86_64"
+NAMD_ARCH="Linux-x86_64-g++"
NAMD_DOWNLOAD="http://www.ks.uiuc.edu/Development/Download/download.cgi?PackageName=NAMD"
@@ -46,22 +46,18 @@ pkg_nofetch() {
echo
}
-src_unpack() {
- unpack ${A}
-
+src_prepare() {
# apply a few small fixes to make NAMD compile and
# link to the proper libraries
# epatch "${FILESDIR}"/namd-2.6-gentoo-amd64.patch
- cd "${S}"
-
# proper compiler and cflags
- sed -e "s/g++/$(tc-getCXX)/" \
- -e "s/CXXOPTS = -O3 -march=pentiumpro -ffast-math -static/CXXOPTS = ${CXXFLAGS}/" \
- -e "s/gcc/$(tc-getCC)/" \
- -e "s/COPTS = -O3 -march=pentiumpro -ffast-math -static/COPTS = ${CFLAGS}/" \
- -i arch/${NAMD_ARCH}.arch || \
- die "Failed to setup ${NAMD_ARCH}.arch"
+# sed -e "s/g++/$(tc-getCXX)/" \
+# -e "s/CXXOPTS = -O3 -march=pentiumpro -ffast-math -static/CXXOPTS = ${CXXFLAGS}/" \
+# -e "s/gcc/$(tc-getCC)/" \
+# -e "s/COPTS = -O3 -march=pentiumpro -ffast-math -static/COPTS = ${CFLAGS}/" \
+# -i arch/${NAMD_ARCH}-g++.arch || \
+# die "Failed to setup ${NAMD_ARCH}.arch"
# configure
./config tcl fftw ${NAMD_ARCH}