annotate src/gdb.mk @ 3662:2313df3c9689

update gdb package
author John W. Eaton <jwe@octave.org>
date Fri, 11 Jul 2014 15:57:24 -0400
parents fb7ca379f593
children 5a00da34fd24
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2333
f653602a0500 Rebrand to new project name MXE
Volker Grabsch <vog@notjusthosting.com>
parents: 2218
diff changeset
1 # This file is part of MXE.
2353
99516e73b368 Move doc/index.html -> index.html
Volker Grabsch <vog@notjusthosting.com>
parents: 2349
diff changeset
2 # See index.html for further information.
953
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 PKG := gdb
3662
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents: 3494
diff changeset
5 $(PKG)_VERSION := 7.7.1
2313df3c9689 update gdb package
John W. Eaton <jwe@octave.org>
parents: 3494
diff changeset
6 $(PKG)_CHECKSUM := 35228319f7c715074a80be42fff64c7645227a80
2043
f0ff142d8cd3 update package gdb
Mark Brand <mabrand@mabrand.nl>
parents: 1976
diff changeset
7 $(PKG)_SUBDIR := gdb-$($(PKG)_VERSION)
2101
39ea61783eda package gdb: fix filename
Mark Brand <mabrand@mabrand.nl>
parents: 2053
diff changeset
8 $(PKG)_FILE := gdb-$($(PKG)_VERSION).tar.bz2
953
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
9 $(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
10 $(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/$(PKG)/$($(PKG)_FILE)
3494
fb7ca379f593 gdb.mk: use system readline
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
11 $(PKG)_DEPS := expat libiconv readline zlib
953
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
12
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
13 define $(PKG)_UPDATE
2525
4d0f3a9da57e all packages: use $(WGET) portability variable
Tony Theodore <tonyt@logyst.com>
parents: 2451
diff changeset
14 $(WGET) -q -O- 'http://ftp.gnu.org/gnu/gdb/?C=M;O=D' | \
953
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
15 $(SED) -n 's,.*<a href="gdb-\([0-9][^"]*\)\.tar.*,\1,p' | \
2049
93adcb090294 package gdb: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents: 2043
diff changeset
16 grep -v '^7\.3a' | \
93adcb090294 package gdb: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents: 2043
diff changeset
17 sort -r | \
953
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 \
3013
bcc26ffe9a0f use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents: 3012
diff changeset
23 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
2855
47558e958113 Allow static/shared libraries to be configured in top-level Makefile.
John W. Eaton <jwe@octave.org>
parents: 2700
diff changeset
24 $(ENABLE_SHARED_OR_STATIC) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2855
diff changeset
25 --prefix='$(HOST_PREFIX)' \
3494
fb7ca379f593 gdb.mk: use system readline
John W. Eaton <jwe@octave.org>
parents: 3480
diff changeset
26 --with-system-readline \
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
27 CONFIG_SHELL=$(SHELL)
953
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
28 $(MAKE) -C '$(1)' -j '$(JOBS)'
1976
16bfe2f3adfc bugfix for packages gdb, avoids build failure on systems that don't have makeinfo
Volker Grabsch <vog@notjusthosting.com>
parents: 1962
diff changeset
29 $(MAKE) -C '$(1)' -j 1 install
953
05fa138217e2 new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff changeset
30 endef