changeset 529:aade1560187d

new package: freetds (by Mark Brand)
author Volker Grabsch <vog@notjusthosting.com>
date Mon, 09 Nov 2009 02:36:50 +0100
parents cc31dacda67d
children 154d7dc4581a
files src/freetds.mk
diffstat 1 files changed, 58 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/freetds.mk	Mon Nov 09 02:36:50 2009 +0100
@@ -0,0 +1,58 @@
+# Copyright (C) 2009  Mark Brand
+#                     Volker Grabsch
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject
+# to the following conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+# FreeTDS
+PKG             := freetds
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 0.82
+$(PKG)_CHECKSUM := 7e2a0c9e41c240c2d1c7f69c6f278e9a5bb80c2d
+$(PKG)_SUBDIR   := freetds-$($(PKG)_VERSION)
+$(PKG)_FILE     := freetds-$($(PKG)_VERSION).tar.gz
+$(PKG)_WEBSITE  := http://www.freetds.org/
+$(PKG)_URL      := http://ibiblio.org/pub/Linux/ALPHA/$(PKG)/stable/$($(PKG)_FILE)
+$(PKG)_DEPS     := gcc libiconv
+
+define $(PKG)_UPDATE
+    wget -q -O- 'http://freetds.cvs.sourceforge.net/viewvc/freetds/freetds/' | \
+    grep '<option>R' | \
+    $(SED) -n 's,.*R\([0-9][0-9_]*\)<.*,\1,p' | \
+    $(SED) 's,_,.,g' | \
+    head -1
+endef
+
+define $(PKG)_BUILD
+    # Beware --with-gnutls broken detection.
+    cd '$(1)' && ./configure \
+        --prefix='$(PREFIX)/$(TARGET)' \
+        --host='$(TARGET)' \
+        --disable-rpath \
+        --disable-dependency-tracking \
+        --disable-shared \
+        --disable-apps \
+        --disable-server \
+        --disable-pool \
+        --enable-static \
+        --enable-libiconv \
+        --enable-msdblib \
+        --with-tdsver=8.0
+    $(MAKE) -C '$(1)' install -j '$(JOBS)'
+endef