mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
libiodbc, add libVersionCompat, disable static library (#8155)
This commit is contained in:
@@ -8,20 +8,23 @@ COPYRIGHT="1995 Ke Jin
|
||||
1996-2014 OpenLink Software"
|
||||
LICENSE="GNU LGPL v2
|
||||
BSD (3-clause)"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://sf.net/projects/iodbc/files/iodbc/$portVersion/libiodbc-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="51c5ff3a7d9a54202486cb77a3514e0e379a135beefcd5d12b96d1901f9dfb62"
|
||||
PATCHES="libiodbc-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all ?x86"
|
||||
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
|
||||
ARCHITECTURES="all"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
libVersion="2.1.25"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libiodbc$secondaryArchSuffix = $portVersion
|
||||
cmd:iodbctest$secondaryArchSuffix = $portVersion
|
||||
cmd:iodbctestw$secondaryArchSuffix = $portVersion
|
||||
lib:libiodbc$secondaryArchSuffix = $portVersion
|
||||
lib:libiodbcinst$secondaryArchSuffix = $portVersion
|
||||
lib:libiodbc$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libiodbcinst$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
@@ -30,9 +33,8 @@ REQUIRES="
|
||||
PROVIDES_devel="
|
||||
libiodbc${secondaryArchSuffix}_devel = $portVersion
|
||||
cmd:iodbc_config$secondaryArchSuffix = $portVersion
|
||||
devel:libiodbc$secondaryArchSuffix = $portVersion
|
||||
devel:libiodbcinst$secondaryArchSuffix = $portVersion
|
||||
devel:libodbc$secondaryArchSuffix = $portVersion
|
||||
devel:libiodbc$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libiodbcinst$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libiodbc$secondaryArchSuffix == $portVersion base
|
||||
@@ -49,7 +51,9 @@ BUILD_PREREQUIRES="
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure --with-iodbc-inidir=$settingsDir/etc
|
||||
runConfigure ./configure --with-iodbc-inidir=$settingsDir/etc \
|
||||
--disable-libodbc \
|
||||
--disable-static
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
@@ -57,9 +61,11 @@ INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# remove libtool file
|
||||
rm $libDir/*.la
|
||||
|
||||
prepareInstalledDevelLibs libiodbc \
|
||||
libiodbcinst \
|
||||
libodbc
|
||||
libiodbcinst
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
|
||||
Reference in New Issue
Block a user