Mercurial > mxe-octave
annotate src/gdb.mk @ 4733:1ecb1e67eaa1
* src/src-msys-dos2unix.mk: update checksum
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sat, 09 Jun 2018 10:13:46 -0400 |
parents | d49157ddd78f |
children | d9a0488f792d |
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 |
4642
4a54e62e7ea3
* src/gdb.mk: update version/checksum for v8.1
John Donoghue <john.donoghue@ieee.org>
parents:
4537
diff
changeset
|
5 $(PKG)_VERSION := 8.1 |
4a54e62e7ea3
* src/gdb.mk: update version/checksum for v8.1
John Donoghue <john.donoghue@ieee.org>
parents:
4537
diff
changeset
|
6 $(PKG)_CHECKSUM := 641861f7d3f22b6a23bc3e801f0ff29a78375490 |
2043 | 7 $(PKG)_SUBDIR := gdb-$($(PKG)_VERSION) |
3819 | 8 $(PKG)_FILE := gdb-$($(PKG)_VERSION).tar.xz |
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' | \ |
4384 | 16 $(SORT) -V | \ |
17 tail -1 | |
953
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
18 endef |
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
19 |
4682
d49157ddd78f
gdb: don't use $(ENABLE_SHARED_OR_STATIC) in configure options
John W. Eaton <jwe@octave.org>
parents:
4642
diff
changeset
|
20 ## Don't use --disable-static when configuring gdb as that will |
d49157ddd78f
gdb: don't use $(ENABLE_SHARED_OR_STATIC) in configure options
John W. Eaton <jwe@octave.org>
parents:
4642
diff
changeset
|
21 ## disable building the required libbfd.a library. |
d49157ddd78f
gdb: don't use $(ENABLE_SHARED_OR_STATIC) in configure options
John W. Eaton <jwe@octave.org>
parents:
4642
diff
changeset
|
22 |
953
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 define $(PKG)_BUILD |
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
24 cd '$(1)' && ./configure \ |
3013
bcc26ffe9a0f
use variable for --host and --build configure arguments
John W. Eaton <jwe@octave.org>
parents:
3012
diff
changeset
|
25 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ |
3012
100e618349f7
Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents:
2855
diff
changeset
|
26 --prefix='$(HOST_PREFIX)' \ |
3494
fb7ca379f593
gdb.mk: use system readline
John W. Eaton <jwe@octave.org>
parents:
3480
diff
changeset
|
27 --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
|
28 CONFIG_SHELL=$(SHELL) |
953
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
29 $(MAKE) -C '$(1)' -j '$(JOBS)' |
3995 | 30 $(MAKE) -C '$(1)' -j 1 install MAKEINFO=true |
953
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
31 endef |