diff options
author | Nicolas Bock <nicolasbock@gmail.com> | 2013-05-10 15:53:52 -0600 |
---|---|---|
committer | Nicolas Bock <nicolasbock@gmail.com> | 2013-05-10 15:53:52 -0600 |
commit | 1d40023814ab26ee8e869b34cc020cdb58f31d1e (patch) | |
tree | add5db940894c182cd6a5e921f19d070fcd2e3ba /sci-physics/lammps/lammps-20130512.ebuild | |
parent | Cleaned up the make command line arguments. (diff) | |
download | sci-1d40023814ab26ee8e869b34cc020cdb58f31d1e.tar.gz sci-1d40023814ab26ee8e869b34cc020cdb58f31d1e.tar.bz2 sci-1d40023814ab26ee8e869b34cc020cdb58f31d1e.zip |
Added more use flags to control the build process.
It seems, at least on my system, that the LAMMPS_MEMALIGN option is a
guarantee for a segfault. I made the use of this macro optional.
Package-Manager: portage-2.2.0_alpha174
Diffstat (limited to 'sci-physics/lammps/lammps-20130512.ebuild')
-rw-r--r-- | sci-physics/lammps/lammps-20130512.ebuild | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sci-physics/lammps/lammps-20130512.ebuild b/sci-physics/lammps/lammps-20130512.ebuild index 28d26e4e6..878d095e0 100644 --- a/sci-physics/lammps/lammps-20130512.ebuild +++ b/sci-physics/lammps/lammps-20130512.ebuild @@ -15,18 +15,21 @@ SRC_URI="http://lammps.sandia.gov/tars/lammps-${LAMMPSDATE}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="package-meam package-dipole package-rigid" +IUSE="lammps-gzip lammps-memalign package-meam package-dipole package-rigid" DEPEND="" RDEPEND="${DEPEND}" S="${WORKDIR}/${PN}-${LAMMPSDATE}" -LAMMPS_INCLUDEFLAGS="-DLAMMPS_GZIP -DLAMMPS_MEMALIGN" +LAMMPS_INCLUDEFLAGS="" src_prepare() { epatch "${FILESDIR}/Makefile.gentoo-serial.patch" + use lammps-gzip && LAMMPS_INCLUDEFLAGS+=" -DLAMMPS_GZIP" + use lammps-memalign && LAMMPS_INCLUDEFLAGS+=" -DLAMMPS_MEMALIGN" + # Patch up the patch. sed -i \ -e "s/ARCHIVE\s*=.*$/ARCHIVE = $(tc-getAR)/" \ |