annotate src/xerces.mk @ 567:22af4af31e80

avoid rc (release candidate) versions of package xerces
author Volker Grabsch <vog@notjusthosting.com>
date Wed, 02 Dec 2009 14:21:57 +0100
parents a8603e0dbf27
children dab071eac9c0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
551
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # Copyright (C) 2009 Volker Grabsch
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2 #
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3 # Permission is hereby granted, free of charge, to any person obtaining
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # a copy of this software and associated documentation files (the
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 # "Software"), to deal in the Software without restriction, including
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 # without limitation the rights to use, copy, modify, merge, publish,
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 # distribute, sublicense, and/or sell copies of the Software, and to
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 # permit persons to whom the Software is furnished to do so, subject
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 # to the following conditions:
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 #
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 # The above copyright notice and this permission notice shall be
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 # included in all copies or substantial portions of the Software.
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 #
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 # Xerces-C++
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 PKG := xerces
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 $(PKG)_IGNORE :=
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
25 $(PKG)_VERSION := 3.0.1
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
26 $(PKG)_CHECKSUM := 71e4efee5397dd45d6bafad34bf3bc766bc2a085
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 $(PKG)_SUBDIR := xerces-c-$($(PKG)_VERSION)
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 $(PKG)_FILE := xerces-c-$($(PKG)_VERSION).tar.gz
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 $(PKG)_WEBSITE := http://xerces.apache.org/xerces-c/
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 $(PKG)_URL := http://apache.linux-mirror.org/xerces/c/$(word 1,$(subst ., ,$($(PKG)_VERSION)))/sources/$($(PKG)_FILE)
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
31 $(PKG)_URL_2 := http://www.apache.org/dist/xerces/c/$(word 1,$(subst ., ,$($(PKG)_VERSION)))/sources/$($(PKG)_FILE)
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
32 $(PKG)_DEPS := gcc libiconv curl
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
33
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
34 define $(PKG)_UPDATE
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
35 wget -q -O- 'http://svn.apache.org/viewvc/xerces/c/tags/?sortby=date' | \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
36 grep '<a name="' | \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
37 $(SED) -n 's,.*<a name="Xerces-C_\([0-9][^"]*\)".*,\1,p' | \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
38 $(SED) 's,_,.,g' | \
567
22af4af31e80 avoid rc (release candidate) versions of package xerces
Volker Grabsch <vog@notjusthosting.com>
parents: 553
diff changeset
39 grep -v rc | \
551
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
40 head -1
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
41 endef
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
42
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
43 define $(PKG)_BUILD
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
44 cd '$(1)' && ./configure \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
45 --host='$(TARGET)' \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
46 --disable-shared \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
47 --prefix='$(PREFIX)/$(TARGET)' \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
48 --enable-libtool-lock \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
49 --disable-pretty-make \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
50 --enable-threads \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
51 --enable-network \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
52 --enable-netaccessor-curl \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
53 --disable-netaccessor-socket \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
54 --disable-netaccessor-cfurl \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
55 --disable-netaccessor-winsock \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
56 --enable-transcoder-iconv \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
57 --disable-transcoder-gnuiconv \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
58 --disable-transcoder-icu \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
59 --disable-transcoder-macosunicodeconverter \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
60 --disable-transcoder-windows \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
61 --enable-msgloader-inmemory \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
62 --disable-msgloader-iconv \
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
63 --disable-msgloader-icu \
553
a8603e0dbf27 bugfix of curl integration into package xerces
Volker Grabsch <vog@notjusthosting.com>
parents: 551
diff changeset
64 --with-curl='$(PREFIX)/$(TARGET)' \
551
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
65 --without-icu \
553
a8603e0dbf27 bugfix of curl integration into package xerces
Volker Grabsch <vog@notjusthosting.com>
parents: 551
diff changeset
66 LIBS="-lws2_32 `$(TARGET)-pkg-config --libs libcurl`"
551
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
67 $(MAKE) -C '$(1)' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
68 $(MAKE) -C '$(1)' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
359d61d7cb6d new package: xerces
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
69 endef