blob: e048c2b42e673dcc2b223142258457ad6ca968bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
include ../../Makefile.include
DEPS= ../../Makefile.include Makefile 01-fix_fpermissive.patch 02-fixandroid.patch 03-fixtvos.patch
#hint for building a fat lib - "lipo -arch i386 libboblight-i386.dylib -arch x86_64 libboblight-x86_64.dylib -output libboblight-fat.dylib"
# lib name, version
LIBNAME=libboblight
VERSION=r478
SOURCE=$(LIBNAME)-$(VERSION)
ARCHIVE=$(SOURCE).tar.gz
# configuration settings
CONFIGURE=./configure --prefix=$(PREFIX) \
--without-opengl \
--without-portaudio \
--without-x11 \
--without-libusb
LIBDYLIB=$(PLATFORM)/src/.libs/$(LIBNAME).a
all: $(LIBDYLIB) .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); patch -p1 -i ../01-fix_fpermissive.patch
cd $(PLATFORM); patch -p1 -i ../02-fixandroid.patch
cd $(PLATFORM); autoreconf -vif
cd $(PLATFORM); $(CONFIGURE)
ifeq ($(CPU),arm64)
cd $(PLATFORM); patch -p1 -i ../03-fixtvos.patch
cd $(PLATFORM); sed -ie "s|-bind_at_load||" ./libtool
cd $(PLATFORM); sed -ie "s|-bind_at_load||" ./ltmain.sh
endif
$(LIBDYLIB): $(PLATFORM)
$(MAKE) -C $(PLATFORM)
.installed-$(PLATFORM): $(LIBDYLIB)
ifeq ($(OS),darwin_embedded)
ifeq ($(TARGET_PLATFORM),appletvos)
#deploy into source tree for tvos - we distribute libboblight with the bundle...
cp $(PLATFORM)/src/.libs/libboblight.0.dylib $(CMAKE_SOURCE_DIR)/system/libboblight-tvos.0.dylib
endif
else
echo "libboblight isn't a dependency of XBMC and won't be installed"
endif
touch $@
clean:
$(MAKE) -C $(PLATFORM) clean
rm -r .installed-$(PLATFORM)
distclean::
rm -rf $(PLATFORM) .installed-$(PLATFORM)
|