muscle: fix build, enable x86_64.

* fix #227
This commit is contained in:
Jerome Duval
2015-06-13 10:43:16 +00:00
parent 4b504f1998
commit 53214b351a
2 changed files with 42 additions and 7 deletions

View File

@@ -18,11 +18,11 @@ LICENSE="BSD (3-clause)"
HOMEPAGE="https://public.msli.com/lcs/muscle/index.html"
SRC_URI="https://public.msli.com/lcs/muscle/muscle6.00.zip"
CHECKSUM_SHA256="b12abe12b5cc4aa93126f86ae07a4bcd02ee8d89d692789435debd5becc53437"
REVISION="1"
REVISION="2"
#TODO:enable multithreading for the devel package!
ARCHITECTURES="x86 ?x86_64"
ARCHITECTURES="x86 x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
@@ -37,6 +37,8 @@ PROVIDES="
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
lib:libgcc_s$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
@@ -54,6 +56,10 @@ PATCHES="muscle-6.00.patchset"
BUILD()
{
if [ $effectiveTargetArchitecture == x86_64 ]; then
CXXFLAGS="-DMUSCLE_64_BIT_PLATFORM"
fi
export CXXFLAGS="-D_BSD_SOURCE $CXXFLAGS"
cd server
make $jobArgs all libmuscle.a
}