aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target
diff options
context:
space:
mode:
authormontellese <montellese@xbmc.org>2015-08-07 19:07:19 +0200
committermontellese <montellese@xbmc.org>2015-08-10 08:21:31 +0200
commitfe837c4eab8f2776ac3980a243ae419fef5b1119 (patch)
treef22f53f7c219aac33e085792f3b057124f09a6fd /tools/depends/target
parent6b6b39667081973d4498efb1f741f67113d7a8aa (diff)
[depends] integrate building libuuid for Linux/RBPi
fix libuuid
Diffstat (limited to 'tools/depends/target')
-rw-r--r--tools/depends/target/Makefile4
-rw-r--r--tools/depends/target/libuuid/Makefile42
2 files changed, 46 insertions, 0 deletions
diff --git a/tools/depends/target/Makefile b/tools/depends/target/Makefile
index 45adf25ca8..f05c68c895 100644
--- a/tools/depends/target/Makefile
+++ b/tools/depends/target/Makefile
@@ -56,6 +56,7 @@ endif
ALSA_LIB=
LINUX_SYSTEM_LIBS=
ifeq ($(OS),linux)
+ DEPENDS += libuuid
#not for raspberry pi
ifneq ($(TARGET_PLATFORM),raspberry-pi)
DEPENDS += libsdl2 linux-system-libs
@@ -98,6 +99,9 @@ libsdl2: $(LINUX_SYSTEM_LIBS)
libxslt: libgcrypt
ffmpeg: $(ICONV) $(ZLIB) bzip2 libvorbis $(FFMPEG_DEPENDS)
libcec: platform
+ifeq ($(OS),linux)
+crossguid: libuuid
+endif
.installed-$(PLATFORM): $(DEPENDS)
touch $@
diff --git a/tools/depends/target/libuuid/Makefile b/tools/depends/target/libuuid/Makefile
new file mode 100644
index 0000000000..5dd6747b1f
--- /dev/null
+++ b/tools/depends/target/libuuid/Makefile
@@ -0,0 +1,42 @@
+include ../../Makefile.include
+DEPS= ../../Makefile.include Makefile
+
+# lib name, version
+LIBNAME=libuuid
+VERSION=2.20.0
+SOURCE=util-linux-2.20.1
+ARCHIVE=$(SOURCE).tar.gz
+
+# configuration settings
+CONFIGURE=echo "scanf_cv_type_modifier=as" > config.cache; \
+ ./configure --prefix=$(PREFIX) --cache-file=config.cache \
+ --disable-shared --disable-mount --disable-fsck --disable-partx --disable-libblkid \
+ --disable-libmount --disable-mountpoint --disable-nls --disable-rpath --disable-agetty \
+ --disable-cramfs --disable-switch_root --disable-pivot_root --disable-fallocate \
+ --disable-unshare --disable-rename --disable-schedutils --disable-wall --without-ncurses
+
+LIBDYLIB=$(PLATFORM)/libuuid/src/.libs/$(LIBNAME).a
+
+all: .installed-$(PLATFORM)
+
+$(TARBALLS_LOCATION)/$(ARCHIVE):
+ cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
+
+$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
+ rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
+ cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
+ cd $(PLATFORM); $(CONFIGURE)
+
+$(LIBDYLIB): $(PLATFORM)
+ $(MAKE) -C $(PLATFORM)/libuuid
+
+.installed-$(PLATFORM): $(LIBDYLIB)
+ $(MAKE) -C $(PLATFORM)/libuuid install
+ touch $@
+
+clean:
+ $(MAKE) -C $(PLATFORM)/libuuid clean
+ rm -f .installed-$(PLATFORM)
+
+distclean::
+ rm -rf $(PLATFORM) .installed-$(PLATFORM)