Mercurial > mxe-octave
annotate src/gdb.mk @ 2451:83aeb24292e3
update package gdb
author | Mark Brand <mabrand@mabrand.nl> |
---|---|
date | Thu, 26 Apr 2012 23:24:12 +0200 |
parents | b5321bdec505 |
children | 4d0f3a9da57e |
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 |
2451 | 5 $(PKG)_CHECKSUM := 1b0f8c3778d4b10c8d2be6922ac01a9900e8116c |
2043 | 6 $(PKG)_SUBDIR := gdb-$($(PKG)_VERSION) |
2101 | 7 $(PKG)_FILE := gdb-$($(PKG)_VERSION).tar.bz2 |
953
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
8 $(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
|
9 $(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
|
10 $(PKG)_DEPS := gcc expat libiconv zlib |
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
11 |
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
12 define $(PKG)_UPDATE |
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
13 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
|
14 $(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
|
15 grep -v '^7\.3a' | \ |
93adcb090294
package gdb: fix update macro
Mark Brand <mabrand@mabrand.nl>
parents:
2043
diff
changeset
|
16 sort -r | \ |
953
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
17 head -1 |
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 |
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
20 define $(PKG)_BUILD |
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
21 cd '$(1)' && ./configure \ |
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
22 --host='$(TARGET)' \ |
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
23 --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
|
24 --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
|
25 CONFIG_SHELL=$(SHELL) |
953
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
26 $(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
|
27 $(MAKE) -C '$(1)' -j 1 install |
953
05fa138217e2
new package: gdb (by Mark de Wever)
Volker Grabsch <vog@notjusthosting.com>
parents:
diff
changeset
|
28 endef |