mxe/src/freetds.mk

36 lines
1.1 KiB
Makefile
Raw Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2009-11-09 01:36:50 +00:00
PKG := freetds
$(PKG)_WEBSITE := http://www.freetds.org/
$(PKG)_DESCR := FreeTDS
2009-11-09 01:36:50 +00:00
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.00.23
$(PKG)_CHECKSUM := 1be0cedc4ad026c28633c6587e84e35844dfa4e05e6779eae6d475572a64d36f
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
2015-06-18 12:27:31 +01:00
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
2015-08-25 10:23:47 +01:00
$(PKG)_URL := ftp://ftp.freetds.org/pub/$(PKG)/stable/$($(PKG)_FILE)
$(PKG)_URL_2 := https://fossies.org/linux/privat/$($(PKG)_FILE)
2015-09-23 08:41:16 +01:00
$(PKG)_DEPS := gcc gnutls libiconv
2009-11-09 01:36:50 +00:00
define $(PKG)_UPDATE
$(WGET) -q -O- 'ftp://ftp.freetds.org/pub/freetds/stable/' | \
$(SED) -n 's,.*freetds-\([0-9.]*\)\.tar.*,\1,p' | \
$(SORT) -V | \
tail -1
2009-11-09 01:36:50 +00:00
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
2009-11-09 01:36:50 +00:00
--disable-rpath \
--disable-dependency-tracking \
--enable-libiconv \
--enable-msdblib \
2010-08-17 19:55:16 +01:00
--enable-sspi \
--disable-threadsafe \
--with-tdsver=7.2 \
--with-gnutls \
PKG_CONFIG='$(TARGET)-pkg-config'
$(MAKE) -C '$(1)' -j '$(JOBS)' install man_MANS=
2009-11-09 01:36:50 +00:00
endef