Merged in mhellegers/haikuports/libiodbc (pull request #501)

Add recipe for  libiodbc
This commit is contained in:
Augustin Cavalier
2015-02-20 19:06:11 -05:00
2 changed files with 98 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
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"
LICENSE="GNU LGPL v2
BSD (3-clause)"
COPYRIGHT="1995 Ke Jin
1996-2014 OpenLink Software"
SRC_URI="http://downloads.sourceforge.net/project/iodbc/iodbc/3.52.9/libiodbc-3.52.9.tar.gz"
CHECKSUM_SHA256="33207d9f477aa5fa76962ff644baa38e59255b96812f28574794659fb61a7ab2"
PATCHES="libiodbc-$portVersion.patchset"
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86"
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
PROVIDES="
libiodbc$secondaryArchSuffix = $portVersion
cmd:iodbctest$secondaryArchSuffix = $portVersion
cmd:iodbctestw$secondaryArchSuffix = $portVersion
lib:libiodbc$secondaryArchSuffix = $portVersion
lib:libiodbcinst$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:awk
cmd:find
cmd:make
"
PROVIDES_devel="
libiodbc_devel = $portVersion
cmd:iodbc_config = $portVersion
devel:libiodbc = $portVersion
devel:libiodbcinst = $portVersion
devel:libodbc = $portVersion
"
REQUIRES_devel="
libiodbc == $portVersion base
"
BUILD()
{
runConfigure ./configure --with-iodbc-inidir=$settingsDir/etc
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libiodbc \
libiodbcinst \
libodbc
fixPkgconfig
packageEntries devel \
$binDir/iodbc-config \
$developDir \
$dataDir
}

View File

@@ -0,0 +1,29 @@
From 919e19cea580666032f1e03bf3892ef0ab2b9d4d Mon Sep 17 00:00:00 2001
From: Mark Hellegers <mark@firedisk.net>
Date: Wed, 4 Feb 2015 23:22:01 +0100
Subject: Add Haiku support to configure
---
configure | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/configure b/configure
index 469edd7..ea2d785 100755
--- a/configure
+++ b/configure
@@ -10588,6 +10588,12 @@ gnu*)
hardcode_into_libs=yes
;;
+haiku*)
+ library_names_spec='${libname}${shared_ext}'
+ dynamic_linker="$host_os ld.so"
+ shlibpath_var=LIBRARY_PATH
+ ;;
+
hpux9* | hpux10* | hpux11*)
# Give a soname corresponding to the major version so that dld.sl refuses to
# link against other versions.
--
2.2.2