aboutsummaryrefslogtreecommitdiff
path: root/tools/rbp/depends/patchelf
diff options
context:
space:
mode:
authorgimli <ebsi4711@gmail.com>2012-08-10 15:32:43 +0200
committergimli <ebsi4711@gmail.com>2012-08-10 15:32:43 +0200
commit3cbb14ac8b23c4de76d6595463b02b9ba8c6ee7d (patch)
treec7b1ebb4582fb9ebe7784da100f3ea2ed42a575a /tools/rbp/depends/patchelf
parent5431ae1c475636ef133b6ec489a6447f550e72f3 (diff)
[rbp] added raspberrypi toolchain support files
Diffstat (limited to 'tools/rbp/depends/patchelf')
-rw-r--r--tools/rbp/depends/patchelf/.gitignore1
-rw-r--r--tools/rbp/depends/patchelf/Makefile41
2 files changed, 42 insertions, 0 deletions
diff --git a/tools/rbp/depends/patchelf/.gitignore b/tools/rbp/depends/patchelf/.gitignore
new file mode 100644
index 0000000000..28b53ff265
--- /dev/null
+++ b/tools/rbp/depends/patchelf/.gitignore
@@ -0,0 +1 @@
+patchelf-0.6pre25969
diff --git a/tools/rbp/depends/patchelf/Makefile b/tools/rbp/depends/patchelf/Makefile
new file mode 100644
index 0000000000..7846462a03
--- /dev/null
+++ b/tools/rbp/depends/patchelf/Makefile
@@ -0,0 +1,41 @@
+include ../../Makefile.include
+
+# lib name, version
+LIBNAME=patchelf
+VERSION=0.6pre25969
+SOURCE=$(LIBNAME)-$(VERSION)
+ARCHIVE=$(SOURCE).tar.gz
+
+# configuration settings
+export PREFIX=$(XBMCPREFIX)
+export PATH:=$(PREFIX)/bin:$(PATH)
+CONFIGURE=./configure --prefix=$(PREFIX)
+
+LIBDYLIB=$(SOURCE)/src/patchelf
+
+CLEAN_FILES=$(ARCHIVE) $(SOURCE)
+
+all: $(LIBDYLIB) .installed
+
+$(TARBALLS_LOCATION)/$(ARCHIVE):
+ $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
+
+$(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
+ -rm -rf $(SOURCE)
+ $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
+ echo $(SOURCE) > .gitignore
+ cd $(SOURCE); $(CONFIGURE)
+
+$(LIBDYLIB): $(SOURCE)
+ make -j $(JOBS) -C $(SOURCE)
+
+.installed:
+ make -C $(SOURCE) install
+ touch $@
+
+clean:
+ make -C $(SOURCE) clean
+ rm -f .installed
+
+distclean::
+ rm -rf $(SOURCE) .installed