mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 16:50:06 +02:00
76 lines
1.9 KiB
Bash
76 lines
1.9 KiB
Bash
SUMMARY="Independent Open DataBase Connectivity"
|
|
DESCRIPTION="iODBC is the acronym for Independent Open DataBase Connectivity, \
|
|
an Open Source platform independent implementation of both the ODBC \
|
|
and X/Open specifications. It is rapidly emerging as the industry standard \
|
|
for developing solutions that are language, platform and database independent."
|
|
HOMEPAGE="http://www.iodbc.org"
|
|
COPYRIGHT="1995 Ke Jin
|
|
1996-2014 OpenLink Software"
|
|
LICENSE="GNU LGPL v2
|
|
BSD (3-clause)"
|
|
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"
|
|
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 = $libVersionCompat
|
|
lib:libiodbcinst$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libiodbc${secondaryArchSuffix}_devel = $portVersion
|
|
cmd:iodbc_config$secondaryArchSuffix = $portVersion
|
|
devel:libiodbc$secondaryArchSuffix = $libVersionCompat
|
|
devel:libiodbcinst$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libiodbc$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:awk
|
|
cmd:find
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
runConfigure ./configure --with-iodbc-inidir=$settingsDir/etc \
|
|
--disable-libodbc \
|
|
--disable-static
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool file
|
|
rm $libDir/*.la
|
|
|
|
prepareInstalledDevelLibs libiodbc \
|
|
libiodbcinst
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$binDir/iodbc-config \
|
|
$developDir \
|
|
$dataDir
|
|
}
|