Permalink
Browse files

[darwin-deps] - added build for libboblight (not hooked up to be auto…

… built - only for using our nice buildsys when bumps are needed for boblight addon)
  • Loading branch information...
1 parent ddb0d83 commit f608bcca0ef71154bd9e97cbad3e573add7c4095 @Memphiz Memphiz committed May 16, 2012
Showing with 46 additions and 0 deletions.
  1. +46 −0 tools/darwin/depends/libboblight/Makefile
View
46 tools/darwin/depends/libboblight/Makefile
@@ -0,0 +1,46 @@
+include ../Makefile.include
+include ../config.site.mk
+
+#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=r429
+SOURCE=$(LIBNAME)-$(VERSION)
+ARCHIVE=$(SOURCE).tar.gz
+
+# configuration settings
+CONFIGURE=./configure --prefix=$(PREFIX) \
+ --without-opengl \
+ --without-portaudio \
+ --without-x11
+
+LIBDYLIB=$(SOURCE)/src/.libs/$(LIBNAME).dylib
+
+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); autoreconf -vif
+ cd $(SOURCE); $(CONFIGURE)
+
+$(LIBDYLIB): $(SOURCE)
+ make -C $(SOURCE)
+
+.installed:
+ echo "libboblight isn't a dependency of XBMC and won't be installed"
+ touch $@
+clean:
+ make -C $(SOURCE) clean
+ rm -r .installed
+ rm -rf $(SOURCE)
+
+distclean::
+ rm -rf $(SOURCE) .installed

0 comments on commit f608bcc

Please sign in to comment.