mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-30 12:08:53 +02:00
Merged in mhellegers/haikuports/psqlodbc (pull request #547)
Add recipe for psqlodbc 09.03.0400
This commit is contained in:
57
dev-libs/psqlodbc/patches/psqlodbc-09.03.0400.patchset
Normal file
57
dev-libs/psqlodbc/patches/psqlodbc-09.03.0400.patchset
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
From 2cc0b4ec3352f0f9bd189496b1ab3eeeeb89dc9f Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mark Hellegers <mark@firedisk.net>
|
||||||
|
Date: Wed, 10 Jun 2015 23:30:01 +0200
|
||||||
|
Subject: [PATCH] Changes to make psqlodbc run on Haiku
|
||||||
|
|
||||||
|
---
|
||||||
|
config/config.guess | 6 ++++++
|
||||||
|
config/config.sub | 2 +-
|
||||||
|
configure.ac | 2 +-
|
||||||
|
3 files changed, 8 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/config/config.guess b/config/config.guess
|
||||||
|
index 0e30d56..9070f97 100755
|
||||||
|
--- a/config/config.guess
|
||||||
|
+++ b/config/config.guess
|
||||||
|
@@ -1131,6 +1131,12 @@ EOF
|
||||||
|
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
||||||
|
echo i586-pc-beos
|
||||||
|
exit 0 ;;
|
||||||
|
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
|
||||||
|
+ echo i586-pc-haiku
|
||||||
|
+ exit ;;
|
||||||
|
+ x86_64:Haiku:*:*)
|
||||||
|
+ echo x86_64-unknown-haiku
|
||||||
|
+ exit ;;
|
||||||
|
SX-4:SUPER-UX:*:*)
|
||||||
|
echo sx4-nec-superux${UNAME_RELEASE}
|
||||||
|
exit 0 ;;
|
||||||
|
diff --git a/config/config.sub b/config/config.sub
|
||||||
|
index 9d7f733..19ac113 100755
|
||||||
|
--- a/config/config.sub
|
||||||
|
+++ b/config/config.sub
|
||||||
|
@@ -1140,7 +1140,7 @@ case $os in
|
||||||
|
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
|
||||||
|
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
|
||||||
|
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
|
||||||
|
- | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
|
||||||
|
+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -haiku*)
|
||||||
|
# Remember, each alternative MUST END IN *, to match a version number.
|
||||||
|
;;
|
||||||
|
-qnx*)
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 5f4b9cb..3bffe33 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -102,7 +102,7 @@ fi
|
||||||
|
# SQLCOLATTRIBUTE_SQLLEN check
|
||||||
|
#
|
||||||
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
|
||||||
|
- [[#include <sql.h>>
|
||||||
|
+ [[#include <sql.h>
|
||||||
|
SQLRETURN SQL_API SQLColAttribute
|
||||||
|
(SQLHSTMT StatementHandle,SQLUSMALLINT ColumnNumber,
|
||||||
|
SQLUSMALLINT FieldIdentifier, SQLPOINTER CharacterAttribute,
|
||||||
|
--
|
||||||
|
2.2.2
|
||||||
|
|
||||||
62
dev-libs/psqlodbc/psqlodbc-09.03.0400.recipe
Normal file
62
dev-libs/psqlodbc/psqlodbc-09.03.0400.recipe
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
SUMMARY="PostgreSQL ODBC driver"
|
||||||
|
DESCRIPTION="
|
||||||
|
The PostgreSQL ODBC driver is used to connect to the PostgreSQL database using the ODBC API.
|
||||||
|
"
|
||||||
|
HOMEPAGE="http://odbc.postgresql.org"
|
||||||
|
LICENSE="GNU LGPL v2"
|
||||||
|
COPYRIGHT="1996-2014 PostgreSQL Global Development Group"
|
||||||
|
SRC_URI="https://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-09.03.0400.tar.gz"
|
||||||
|
CHECKSUM_SHA256="de77dfa89dba0a159afc57b2e312ca6e9075dd92b761c7cc700c0450ba02b56b"
|
||||||
|
PATCHES="psqlodbc-$portVersion.patchset"
|
||||||
|
REVISION="1"
|
||||||
|
ARCHITECTURES="x86_gcc2 ?x86"
|
||||||
|
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
psqlodbc$secondaryArchSuffix = $portVersion
|
||||||
|
lib:psqlodbcw$secondaryArchSuffix = $portVersion
|
||||||
|
"
|
||||||
|
|
||||||
|
REQUIRES="
|
||||||
|
haiku$secondaryArchSuffix
|
||||||
|
lib:libiodbc$secondaryArchSuffix
|
||||||
|
lib:libpq$secondaryArchSuffix
|
||||||
|
lib:libssl$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
devel:libiodbc$secondaryArchSuffix
|
||||||
|
devel:libpq$secondaryArchSuffix
|
||||||
|
devel:libssl$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
haiku${secondaryArchSuffix}_devel
|
||||||
|
cmd:gcc$secondaryArchSuffix
|
||||||
|
cmd:ld$secondaryArchSuffix
|
||||||
|
cmd:make
|
||||||
|
cmd:autoconf
|
||||||
|
"
|
||||||
|
PROVIDES_devel="
|
||||||
|
psqlodbc${secondaryArchSuffix}_devel = $portVersion
|
||||||
|
devel:psqlodbcw${secondaryArchSuffix} = $portVersion
|
||||||
|
"
|
||||||
|
REQUIRES_devel="
|
||||||
|
psqlodbc$secondaryArchSuffix == $portVersion base
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD()
|
||||||
|
{
|
||||||
|
autoconf
|
||||||
|
runConfigure ./configure --with-iodbc
|
||||||
|
make $jobArgs
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
make install
|
||||||
|
|
||||||
|
prepareInstalledDevelLibs psqlodbcw
|
||||||
|
|
||||||
|
packageEntries devel \
|
||||||
|
$developDir
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user