diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2010-05-12 17:22:38 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2010-05-12 17:22:38 (GMT) |
commit | dee66284ffcf20f5bdde4190640a78d876450fe3 (patch) | |
tree | ad7a5f948046cdc2b61c20c6744cd91da1c35171 /src/gdb.mk | |
parent | a89267efb69c74aefe2034f13be278b0062a7fc3 (diff) | |
download | mxe-dee66284ffcf20f5bdde4190640a78d876450fe3.zip mxe-dee66284ffcf20f5bdde4190640a78d876450fe3.tar.gz mxe-dee66284ffcf20f5bdde4190640a78d876450fe3.tar.bz2 |
new package: gdb (by Mark de Wever)
Diffstat (limited to 'src/gdb.mk')
-rw-r--r-- | src/gdb.mk | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/gdb.mk b/src/gdb.mk new file mode 100644 index 0000000..6bec2b3 --- /dev/null +++ b/src/gdb.mk @@ -0,0 +1,28 @@ +# This file is part of mingw-cross-env. +# See doc/index.html for further information. + +# gdb +PKG := gdb +$(PKG)_VERSION := 7.1 +$(PKG)_CHECKSUM := 417e2e637a296ea0e1cdddf56233311b8708fa19 +$(PKG)_SUBDIR := gdb-$($(PKG)_VERSION) +$(PKG)_FILE := gdb-$($(PKG)_VERSION).tar.bz2 +$(PKG)_WEBSITE := http://www.gnu.org/software/gdb/ +$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/$(PKG)/$($(PKG)_FILE) +$(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/$(PKG)/$($(PKG)_FILE) +$(PKG)_DEPS := gcc expat libiconv zlib + +define $(PKG)_UPDATE + wget -q -O- 'http://ftp.gnu.org/gnu/gdb/?C=M;O=D' | \ + $(SED) -n 's,.*<a href="gdb-\([0-9][^"]*\)\.tar.*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD + cd '$(1)' && ./configure \ + --host='$(TARGET)' \ + --disable-shared \ + --prefix='$(PREFIX)/$(TARGET)' + $(MAKE) -C '$(1)' -j '$(JOBS)' + $(MAKE) -C '$(1)/gdb' -j 1 install +endef |