mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
fftw: build both float and double versions.
This commit is contained in:
@@ -21,26 +21,36 @@ COPYRIGHT="
|
||||
2003, 2007-2011 Matteo Frigo
|
||||
2003, 2007-2011 Massachusetts Institute of Technology
|
||||
"
|
||||
REVISION="3"
|
||||
REVISION="4"
|
||||
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
libfftw$secondaryArchSuffix = $portVersion compat >= 3
|
||||
lib:libfftw$secondaryArchSuffix = $portVersion compat >= 3
|
||||
lib:libfftw3$secondaryArchSuffix = $portVersion compat >= 3
|
||||
lib:libfftw3f$secondaryArchSuffix = $portVersion compat >= 3
|
||||
cmd:fftw_wisdom$secondaryArchSuffix
|
||||
cmd:fftwf_wisdom$secondaryArchSuffix
|
||||
cmd:fftw_wisdom_to_conf$secondaryArchSuffix
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libfftw${secondaryArchSuffix}_devel = $portVersion compat >= 3
|
||||
devel:libfftw3$secondaryArchSuffix = $portVersion compat >= 3
|
||||
devel:libfftw3f$secondaryArchSuffix = $portVersion compat >= 3
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libfftw$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:awk
|
||||
@@ -50,23 +60,29 @@ BUILD_PREREQUIRES="
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure
|
||||
make clean && make distclean || true
|
||||
|
||||
# build double-precision version
|
||||
runConfigure ./configure --enable-shared
|
||||
make $jobArgs
|
||||
make install
|
||||
|
||||
make clean && make distclean || true
|
||||
|
||||
# build float-precision version
|
||||
runConfigure ./configure --enable-float --enable-shared
|
||||
make $jobArgs
|
||||
make install
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
prepareInstalledDevelLib libfftw3
|
||||
prepareInstalledDevelLibs \
|
||||
libfftw3 \
|
||||
libfftw3f
|
||||
fixPkgconfig
|
||||
packageEntries devel $developDir
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
|
||||
PROVIDES_devel="
|
||||
libfftw${secondaryArchSuffix}_devel = $portVersion compat >= 3
|
||||
devel:libfftw$secondaryArchSuffix = $portVersion compat >= 3
|
||||
devel:libfftw3$secondaryArchSuffix = $portVersion compat >= 3
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libfftw$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user