summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-10-28 08:21:03 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-10-28 08:39:40 +0000
commitc4bf4f3d0fca7ae424b3cb86d9e94c8b168ec057 (patch)
tree8882a146d3da54db2c3e583a9b1b3f957b1c2467
parent09bf2b2e02a1f1bac5548ca79ce4b02e4ce7fd76 (diff)
downloadaports-c4bf4f3d0fca7ae424b3cb86d9e94c8b168ec057.tar.bz2
aports-c4bf4f3d0fca7ae424b3cb86d9e94c8b168ec057.tar.xz
main/freetds: upgrade to 0.91
-rw-r--r--main/freetds/APKBUILD33
-rw-r--r--main/freetds/freetds-libiconv.patch20
2 files changed, 43 insertions, 10 deletions
diff --git a/main/freetds/APKBUILD b/main/freetds/APKBUILD
index 0475ff86d..dc53764eb 100644
--- a/main/freetds/APKBUILD
+++ b/main/freetds/APKBUILD
@@ -1,33 +1,46 @@
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Michael Mason <ms13sp@gmail.com>
pkgname=freetds
-pkgver=0.82
-pkgrel=9
+pkgver=0.91
+pkgrel=0
pkgdesc="Tabular Datastream Library"
url="http://www.freetds.org/"
arch="all"
license="GPL"
depends=
-makedepends="unixodbc-dev readline-dev libiconv-dev libtool"
+makedepends="unixodbc-dev readline-dev libiconv-dev libtool autoconf automake"
install=
subpackages="$pkgname-doc $pkgname-dev"
-source="http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/$pkgname-$pkgver.tar.gz"
+source="http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/$pkgname-$pkgver.tar.gz
+ freetds-libiconv.patch"
+_builddir="$srcdir/$pkgname-$pkgver"
-build() {
- cd "$srcdir/$pkgname-$pkgver"
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ aclocal -I m4 && autoconf && automake
+}
+build() {
+ cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
- --enable-msdblib
+ --enable-msdblib \
+ || return 1
make || return 1
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$_builddir"
+ make -j1 DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
}
-md5sums="3df6b2e83fd420e90f1becbd1162990a freetds-0.82.tar.gz"
+md5sums="b14db5823980a32f0643d1a84d3ec3ad freetds-0.91.tar.gz
+d2c26724048dd5c73af7f1c48c8ddf29 freetds-libiconv.patch"
diff --git a/main/freetds/freetds-libiconv.patch b/main/freetds/freetds-libiconv.patch
new file mode 100644
index 000000000..f13bc242e
--- /dev/null
+++ b/main/freetds/freetds-libiconv.patch
@@ -0,0 +1,20 @@
+--- ./src/dblib/Makefile.am.orig
++++ ./src/dblib/Makefile.am
+@@ -20,5 +20,5 @@
+ SYMBOLS = -export-symbols-regex '^(db|bcp_|tdsdump_open|tdsdbopen|.*_xact|close_commit|open_commit|.?asprintf).*'
+ endif
+ libsybdb_la_LDFLAGS= -version-info 5:0:0 $(SYMBOLS) $(FREETDS_SYMBOLIC)
+-libsybdb_la_LIBADD= ../tds/libtds.la ../replacements/libreplacements.la $(NETWORK_LIBS) $(LIBICONV) $(FREETDS_LIBGCC)
++libsybdb_la_LIBADD= ../tds/libtds.la ../replacements/libreplacements.la $(NETWORK_LIBS) $(LTLIBICONV) $(FREETDS_LIBGCC)
+
+--- ./src/tds/Makefile.am.orig
++++ ./src/tds/Makefile.am
+@@ -19,7 +19,7 @@
+ bulk.c win_mutex.c \
+ $(AUTH_FILES)
+ libtds_la_LDFLAGS=
+-libtds_la_LIBADD=
++libtds_la_LIBADD= $(LTLIBICONV)
+
+ noinst_HEADERS = tds_willconvert.h encodings.h num_limits.h tds_types.h
+ EXTRA_DIST = tds_willconvert.h encodings.h num_limits.h tds_types.h \