blob: 77af37f7480d35c013a18a58fb3f056095137f4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# This file is part of mingw-cross-env.
# See doc/index.html for further information.
# 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 gnutls
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
cd '$(1)' && NOCONFIGURE=true ./autogen.sh
cd '$(1)' && $(LIBTOOLIZE)
# wine confuses the cross-compiling detection, so set it explicitly
$(SED) -i 's,cross_compiling=no,cross_compiling=yes,' '$(1)/configure'
cd '$(1)' && ./configure \
--prefix='$(PREFIX)/$(TARGET)' \
--host='$(TARGET)' \
--disable-rpath \
--disable-dependency-tracking \
--disable-shared \
--enable-static \
--enable-libiconv \
--enable-msdblib \
--enable-sspi \
--disable-threadsafe \
--with-tdsver=7.2 \
--with-gnutls \
PKG_CONFIG='$(TARGET)-pkg-config'
$(MAKE) -C '$(1)' -j '$(JOBS)' install man_MANS=
endef
|