diff options
Diffstat (limited to 'tools/depends/target/libshairport/Makefile')
-rw-r--r-- | tools/depends/target/libshairport/Makefile | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/tools/depends/target/libshairport/Makefile b/tools/depends/target/libshairport/Makefile new file mode 100644 index 0000000000..bb553bf3a8 --- /dev/null +++ b/tools/depends/target/libshairport/Makefile @@ -0,0 +1,60 @@ +include ../../Makefile.include +DEPS= ../../Makefile.include 001_add_ao.patch 002_fix_install_header.patch 003_fix_deadlock.patch \ + 004_fix_bad_access.patch 005_fix_shutdown.patch 006_no_printf.patch \ + 007_fix_syslog_defines.patch 008-add-missing-libs.patch \ + 009_fix_ipv6.patch 010_handle_metadata.patch android.patch Makefile + +# lib name, version +LIBNAME=libshairport +VERSION=1.2.0.20310_lib +SOURCE=$(LIBNAME)-$(VERSION) +ARCHIVE=$(SOURCE).tar.gz + +# configuration settings +CONFIGURE=./configure --prefix=$(PREFIX) + + +LIBDYLIB=$(PLATFORM)/src/.libs/libshairport.so.0.0.0 + +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); patch -p0 < ../001_add_ao.patch + cd $(PLATFORM); patch -p0 < ../002_fix_install_header.patch + cd $(PLATFORM); patch -p0 < ../003_fix_deadlock.patch + cd $(PLATFORM); patch -p0 < ../004_fix_bad_access.patch + cd $(PLATFORM); patch -p0 < ../005_fix_shutdown.patch + cd $(PLATFORM); patch -p0 < ../006_no_printf.patch + cd $(PLATFORM); patch -p0 < ../007_fix_syslog_defines.patch + cd $(PLATFORM); patch -p0 < ../008-add-missing-libs.patch + cd $(PLATFORM); patch -p0 < ../009_fix_ipv6.patch + cd $(PLATFORM); patch -p0 < ../010_handle_metadata.patch + cd $(PLATFORM); patch -p0 < ../011_fix_ipv4_fallback.patch + cd $(PLATFORM); patch -p0 < ../android.patch + cd $(PLATFORM); $(AUTORECONF) -vif + cd $(PLATFORM); $(CONFIGURE) + +$(LIBDYLIB): $(PLATFORM) + $(MAKE) -j 1 -C $(PLATFORM) + +.installed-$(PLATFORM): $(LIBDYLIB) + $(MAKE) -C $(PLATFORM) install +ifeq ($(OS),android) + rm -f $(PREFIX)/lib/libshairport.la $(PREFIX)/lib/libshairport.so $(PREFIX)/lib/libshairport.so.0 + mv -f $(PREFIX)/lib/libshairport.so.0.0.0 $(PREFIX)/lib/libshairport.so + $(RPL) -e "libshairport.so.0" "libshairport.so\x00\x00" $(PREFIX)/lib/libshairport.so + -$(READELF) --dynamic $(PREFIX)/lib/libshairport.so | grep ibrary +endif + touch $@ + +clean: + rm -rf $(PLATFORM) .installed-$(PLATFORM) + +distclean:: + rm -rf $(PLATFORM) .installed-$(PLATFORM) + |