annotate src/freetds.mk @ 531:0eea9b2a19ef

improved coding style
author Volker Grabsch <vog@notjusthosting.com>
date Mon, 09 Nov 2009 03:36:24 +0100
parents aade1560187d
children ca50d0553062
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
529
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # Copyright (C) 2009 Mark Brand
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2 # Volker Grabsch
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 # Permission is hereby granted, free of charge, to any person obtaining
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 # a copy of this software and associated documentation files (the
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 # "Software"), to deal in the Software without restriction, including
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 # without limitation the rights to use, copy, modify, merge, publish,
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 # distribute, sublicense, and/or sell copies of the Software, and to
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 # permit persons to whom the Software is furnished to do so, subject
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 # to the following conditions:
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 #
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 # The above copyright notice and this permission notice shall be
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 # included in all copies or substantial portions of the Software.
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 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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 # FreeTDS
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 PKG := freetds
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 $(PKG)_IGNORE :=
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 $(PKG)_VERSION := 0.82
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 $(PKG)_CHECKSUM := 7e2a0c9e41c240c2d1c7f69c6f278e9a5bb80c2d
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 $(PKG)_SUBDIR := freetds-$($(PKG)_VERSION)
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 $(PKG)_FILE := freetds-$($(PKG)_VERSION).tar.gz
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 $(PKG)_WEBSITE := http://www.freetds.org/
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 $(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
32 $(PKG)_DEPS := gcc libiconv
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 define $(PKG)_UPDATE
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 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
36 grep '<option>R' | \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 $(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
38 $(SED) 's,_,.,g' | \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
39 head -1
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 endef
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42 define $(PKG)_BUILD
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 # Beware --with-gnutls broken detection.
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 cd '$(1)' && ./configure \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
45 --prefix='$(PREFIX)/$(TARGET)' \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
46 --host='$(TARGET)' \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
47 --disable-rpath \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
48 --disable-dependency-tracking \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
49 --disable-shared \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 --disable-apps \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 --disable-server \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 --disable-pool \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
53 --enable-static \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
54 --enable-libiconv \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
55 --enable-msdblib \
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
56 --with-tdsver=8.0
531
0eea9b2a19ef improved coding style
Volker Grabsch <vog@notjusthosting.com>
parents: 529
diff changeset
57 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
529
aade1560187d new package: freetds (by Mark Brand)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
58 endef