aboutsummaryrefslogtreecommitdiffstats
path: root/main/freetds
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-27 14:06:45 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-27 14:22:24 +0000
commit8d2c903bee89abe26bbedcb9c87d9b4977ca5887 (patch)
tree947b6a6cd85675635f74f3731c43318dd0c240d0 /main/freetds
parent4bcc6d4b25febf5771be27c1b373c30c38e80c93 (diff)
downloadaports-8d2c903bee89abe26bbedcb9c87d9b4977ca5887.tar.bz2
aports-8d2c903bee89abe26bbedcb9c87d9b4977ca5887.tar.xz
main/freetds: fix includes (to build against musl)
Diffstat (limited to 'main/freetds')
-rw-r--r--main/freetds/APKBUILD15
-rw-r--r--main/freetds/fix-includes.patch10
2 files changed, 22 insertions, 3 deletions
diff --git a/main/freetds/APKBUILD b/main/freetds/APKBUILD
index d980ccd541..3c6b2a5a5b 100644
--- a/main/freetds/APKBUILD
+++ b/main/freetds/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=freetds
pkgver=0.92.79
-pkgrel=0
+pkgrel=1
pkgdesc="Tabular Datastream Library"
url="http://www.freetds.org/"
arch="all"
@@ -12,11 +12,13 @@ makedepends="unixodbc-dev readline-dev libiconv-dev libtool autoconf automake"
install=
subpackages="$pkgname-doc $pkgname-dev"
source="ftp://ftp.freetds.org/pub/freetds/stable/$pkgname-$pkgver.tar.gz
- freetds-libiconv.patch"
+ freetds-libiconv.patch
+ fix-includes.patch"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
cd "$_builddir"
+ update_config_sub || return 1
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
@@ -46,4 +48,11 @@ package() {
}
md5sums="b97e9bdd3f461af3e8ea559404582f70 freetds-0.92.79.tar.gz
-d2c26724048dd5c73af7f1c48c8ddf29 freetds-libiconv.patch"
+d2c26724048dd5c73af7f1c48c8ddf29 freetds-libiconv.patch
+9b58f810335051cd27939ed3d23549be fix-includes.patch"
+sha256sums="06b9b3fe797552d93365f1f1f84051f6c292bb0f9fca06a3475852700cf71f50 freetds-0.92.79.tar.gz
+8616c79ec80db274200f27028c2a6ec616f9e6494d2cb2591f7bd3c4575c7677 freetds-libiconv.patch
+abf74427b80f122b91bad324410b0a7b4afc8de96acc65be5abd08dbe4be7b44 fix-includes.patch"
+sha512sums="d5ede1312ee0c5ad4ed787c243a5e3242f25e4470d9201922df5736883c1c4652fa3483544dc78a945c37d006b173ffa35ba5a0ecfbb67a68b046667a7b51236 freetds-0.92.79.tar.gz
+1dd76053477a23428355a704b0b0d5ee652e4c55d4beb46c43ab8c5d5d0eaa6d29accc4a8a1c41e42f4ac20521549b8d6c379773106d6d46299e96ba45a045ce freetds-libiconv.patch
+bea9d52c052f2eb93836f33c58154dc8d3c19b73d0ad64cfcd9b2bc6f5e27787263977eeb5d91ebe9cb30fda6df32b6bb53a03e2350060b790a7c8a86fb352fa fix-includes.patch"
diff --git a/main/freetds/fix-includes.patch b/main/freetds/fix-includes.patch
new file mode 100644
index 0000000000..cd538534c9
--- /dev/null
+++ b/main/freetds/fix-includes.patch
@@ -0,0 +1,10 @@
+--- freetds-0.92.79.orig/src/apps/tsql.c
++++ freetds-0.92.79/src/apps/tsql.c
+@@ -33,6 +33,7 @@
+ # endif
+ #endif
+
++#include <getopt.h>
+ #include <stdio.h>
+ #include <assert.h>
+ #include <ctype.h>