mxe/src/freetds.mk

37 lines
1.2 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
2019-09-02 21:40:09 +01:00
$(PKG)_WEBSITE := https://www.freetds.org/
$(PKG)_DESCR := FreeTDS
2009-11-09 01:36:50 +00:00
$(PKG)_IGNORE :=
2020-09-04 23:12:23 +01:00
$(PKG)_VERSION := 1.2.4
$(PKG)_CHECKSUM := b78cee51bd1d35828dc4e7138289bb93c0d605d33828b6d0e0587e201df5f42e
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
2015-06-18 12:27:31 +01:00
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
2019-09-02 21:40:09 +01:00
$(PKG)_URL := https://www.freetds.org/files/stable/$($(PKG)_FILE)
$(PKG)_URL_2 := https://fossies.org/linux/privat/$($(PKG)_FILE)
2018-02-18 15:39:39 +00:00
$(PKG)_DEPS := cc openssl libiconv
2009-11-09 01:36:50 +00:00
define $(PKG)_UPDATE
2019-09-02 21:40:09 +01:00
$(WGET) -q -O- 'https://www.freetds.org/files/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 \
2018-02-18 15:39:39 +00:00
--with-openssl \
PKG_CONFIG='$(TARGET)-pkg-config' \
2018-03-15 01:34:41 +00:00
CFLAGS=-D_WIN32_WINNT=0x0600
$(MAKE) -C '$(1)' -j '$(JOBS)' install man_MANS=
2009-11-09 01:36:50 +00:00
endef