annotate src/expat.mk @ 408:413750a629be

improved version recognition for sourceforge packages
author Volker Grabsch <vog@notjusthosting.com>
date Mon, 10 Aug 2009 13:24:12 +0200
parents 85ffa9259036
children d2a6561bcb6d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
188
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # Expat XML Parser
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2
306
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
3 PKG := expat
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
4 $(PKG)_VERSION := 2.0.1
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
5 $(PKG)_CHECKSUM := 663548c37b996082db1f2f2c32af060d7aa15c2d
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
6 $(PKG)_SUBDIR := expat-$($(PKG)_VERSION)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
7 $(PKG)_FILE := expat-$($(PKG)_VERSION).tar.gz
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
8 $(PKG)_WEBSITE := http://expat.sourceforge.net/
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
9 $(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/expat/$($(PKG)_FILE)
85ffa9259036 validate downloads using SHA-1 checksums
Volker Grabsch <vog@notjusthosting.com>
parents: 265
diff changeset
10 $(PKG)_DEPS := gcc
188
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 define $(PKG)_UPDATE
408
413750a629be improved version recognition for sourceforge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 306
diff changeset
13 $(call SOURCEFORGE_FILES,http://sourceforge.net/projects/expat/files/expat/) | \
188
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14 $(SED) -n 's,.*expat-\([0-9][^>]*\)\.tar.*,\1,p' | \
408
413750a629be improved version recognition for sourceforge packages
Volker Grabsch <vog@notjusthosting.com>
parents: 306
diff changeset
15 tail -1
188
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 endef
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 define $(PKG)_BUILD
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 cd '$(1)' && ./configure \
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20 --host='$(TARGET)' \
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 --disable-shared \
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 --prefix='$(PREFIX)/$(TARGET)'
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
11829aaff7d3 new package: expat
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 endef