annotate src/freetds.mk @ 641:dab071eac9c0

simplified file markers
author Volker Grabsch <vog@notjusthosting.com>
date Sat, 16 Jan 2010 23:02:02 +0100
parents bbeb07907607
children 29f1ba4559ae
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
641
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 603
diff changeset
1 # This file is part of mingw-cross-env.
dab071eac9c0 simplified file markers
Volker Grabsch <vog@notjusthosting.com>
parents: 603
diff changeset
2 # See doc/index.html or doc/README for further information.
529
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # FreeTDS
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 PKG := freetds
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_IGNORE :=
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_VERSION := 0.82
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_CHECKSUM := 7e2a0c9e41c240c2d1c7f69c6f278e9a5bb80c2d
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_SUBDIR := freetds-$($(PKG)_VERSION)
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_FILE := freetds-$($(PKG)_VERSION).tar.gz
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 $(PKG)_WEBSITE := http://www.freetds.org/
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 $(PKG)_URL := http://ibiblio.org/pub/Linux/ALPHA/$(PKG)/stable/$($(PKG)_FILE)
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 $(PKG)_DEPS := gcc libiconv
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://freetds.cvs.sourceforge.net/viewvc/freetds/freetds/' | \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 grep '<option>R' | \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 $(SED) -n 's,.*R\([0-9][0-9_]*\)<.*,\1,p' | \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 $(SED) 's,_,.,g' | \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 head -1
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 endef
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 define $(PKG)_BUILD
557
ca50d0553062 use winsock2 instead of winsock in packages freetds and openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 531
diff changeset
24 # package uses winsock2.h, so it should link to ws2_32 instead of wsock32
ca50d0553062 use winsock2 instead of winsock in packages freetds and openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 531
diff changeset
25 $(SED) 's,wsock32,ws2_32,g' -i '$(1)'/configure
ca50d0553062 use winsock2 instead of winsock in packages freetds and openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 531
diff changeset
26
603
bbeb07907607 fix for systems where wine confuses the cross-compiling detection of ./configure
Volker Grabsch <vog@notjusthosting.com>
parents: 559
diff changeset
27 # wine confuses the cross-compiling detection, so set it explicitly
bbeb07907607 fix for systems where wine confuses the cross-compiling detection of ./configure
Volker Grabsch <vog@notjusthosting.com>
parents: 559
diff changeset
28 $(SED) 's,cross_compiling=no,cross_compiling=yes,' -i '$(1)/configure'
bbeb07907607 fix for systems where wine confuses the cross-compiling detection of ./configure
Volker Grabsch <vog@notjusthosting.com>
parents: 559
diff changeset
29
557
ca50d0553062 use winsock2 instead of winsock in packages freetds and openssl (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 531
diff changeset
30 # beware --with-gnutls broken detection
529
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 cd '$(1)' && ./configure \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 --prefix='$(PREFIX)/$(TARGET)' \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33 --host='$(TARGET)' \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 --disable-rpath \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 --disable-dependency-tracking \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 --disable-shared \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 --enable-static \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 --enable-libiconv \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 --enable-msdblib \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 --with-tdsver=8.0
559
1f4b53460478 build the utilities of package freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents: 557
diff changeset
41 $(MAKE) -C '$(1)' -j '$(JOBS)' install
529
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 endef