changeset 1423:37a4c4febabd

new package: bfd
author Martin Gerhardy <martin.gerhardy@gmail.com>
date Fri, 26 Nov 2010 16:48:52 +0100
parents 063222328572
children 212aadc668c6
files src/bfd.mk
diffstat 1 files changed, 29 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/bfd.mk	Fri Nov 26 16:48:52 2010 +0100
@@ -0,0 +1,29 @@
+# This file is part of mingw-cross-env.
+# See doc/index.html for further information.
+
+# Binary file descriptor lib
+PKG             := libbfd
+$(PKG)_IGNORE   := $(binutils_IGNORE)
+$(PKG)_VERSION  := $(binutils_VERSION)
+$(PKG)_CHECKSUM := $(binutils_CHECKSUM)
+$(PKG)_SUBDIR   := $(binutils_SUBDIR)
+$(PKG)_FILE     := $(binutils_FILE)
+$(PKG)_WEBSITE  := $(binutils_WEBSITE)
+$(PKG)_URL      := $(binutils_URL)
+$(PKG)_URL_2    := $(binutils_URL2)
+$(PKG)_DEPS     := binutils
+
+define $(PKG)_UPDATE
+    echo $(binutils_VERSION)
+endef
+
+define $(PKG)_BUILD
+    cd '$(1)/bfd' && ./configure \
+        --host='$(TARGET)' \
+        --target='$(TARGET)' \
+        --prefix='$(PREFIX)/$(TARGET)' \
+        --enable-install-libbfd \
+        --disable-shared
+    $(MAKE) -C '$(1)/bfd' -j '$(JOBS)'
+    $(MAKE) -C '$(1)/bfd' -j 1 install
+endef