You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/freetds.mk

37 lines
1.2 KiB

# This file is part of MXE. See LICENSE.md for licensing information.
PKG := freetds
$(PKG)_WEBSITE := http://www.freetds.org/
$(PKG)_DESCR := FreeTDS
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.1.6
$(PKG)_CHECKSUM := c23e00359d747a5e4c654d9595f520f2534bff597150b0e4bf1dae6b53f139a3
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := ftp://ftp.freetds.org/pub/$(PKG)/stable/$($(PKG)_FILE)
$(PKG)_URL_2 := https://fossies.org/linux/privat/$($(PKG)_FILE)
$(PKG)_DEPS := cc openssl libiconv
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
endef
define $(PKG)_BUILD
cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--disable-rpath \
--disable-dependency-tracking \
--enable-libiconv \
--enable-msdblib \
--enable-sspi \
--disable-threadsafe \
--with-tdsver=7.2 \
--with-openssl \
PKG_CONFIG='$(TARGET)-pkg-config' \
CFLAGS=-D_WIN32_WINNT=0x0600
$(MAKE) -C '$(1)' -j '$(JOBS)' install man_MANS=
endef