annotate src/gdb.mk @ 1001:4b94e4708014

forge gdb to use Bash instead of the potentially buggy /bin/sh in package gdb (by Tony Theodore)
author Volker Grabsch <vog@notjusthosting.com>
date Wed, 26 May 2010 02:33:59 +0200
parents 05fa138217e2
children 23cb889b794a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
953
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
1 # This file is part of mingw-cross-env.
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
2 # See doc/index.html for further information.
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
3
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
4 # gdb
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
5 PKG := gdb
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
6 $(PKG)_VERSION := 7.1
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
7 $(PKG)_CHECKSUM := 417e2e637a296ea0e1cdddf56233311b8708fa19
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := gdb-$($(PKG)_VERSION)
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(PKG)_FILE := gdb-$($(PKG)_VERSION).tar.bz2
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
10 $(PKG)_WEBSITE := http://www.gnu.org/software/gdb/
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
11 $(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/$(PKG)/$($(PKG)_FILE)
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12 $(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/$(PKG)/$($(PKG)_FILE)
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 $(PKG)_DEPS := gcc expat libiconv zlib
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
14
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
16 wget -q -O- 'http://ftp.gnu.org/gnu/gdb/?C=M;O=D' | \
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
17 $(SED) -n 's,.*<a href="gdb-\([0-9][^"]*\)\.tar.*,\1,p' | \
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
18 head -1
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
19 endef
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
20
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
21 define $(PKG)_BUILD
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
22 cd '$(1)' && ./configure \
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
23 --host='$(TARGET)' \
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
24 --disable-shared \
1001
4b94e4708014 forge gdb to use Bash instead of the potentially buggy /bin/sh in package gdb (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 953
diff changeset
25 --prefix='$(PREFIX)/$(TARGET)' \
4b94e4708014 forge gdb to use Bash instead of the potentially buggy /bin/sh in package gdb (by Tony Theodore)
Volker Grabsch <vog@notjusthosting.com>
parents: 953
diff changeset
26 CONFIG_SHELL=$(SHELL)
953
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
27 $(MAKE) -C '$(1)' -j '$(JOBS)'
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 $(MAKE) -C '$(1)/gdb' -j 1 install
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
29 endef