aboutsummaryrefslogtreecommitdiff
path: root/tools/darwin
diff options
context:
space:
mode:
authordavilla <davilla@4pi.com>2011-10-11 00:27:18 -0400
committerdavilla <davilla@4pi.com>2011-10-11 00:27:57 -0400
commit4899f3a030bd041348bb5060b9e1bf93c2115b71 (patch)
tree0359af32e6a0813d9f83364dec4d6f0944993063 /tools/darwin
parentba8146c1d60ef3259ea4b48c010aa9fad92d7b6f (diff)
[osx] add libcec makefile for darwin depends
Diffstat (limited to 'tools/darwin')
-rw-r--r--tools/darwin/depends/libcec/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/tools/darwin/depends/libcec/Makefile b/tools/darwin/depends/libcec/Makefile
new file mode 100644
index 0000000000..7f6e12fd04
--- /dev/null
+++ b/tools/darwin/depends/libcec/Makefile
@@ -0,0 +1,38 @@
+include ../Makefile.include
+
+# lib name, version
+LIBNAME=libcec
+VERSION=0.6
+SOURCE=$(LIBNAME)-$(VERSION)
+ARCHIVE=$(SOURCE).tar.gz
+
+# configuration settings
+CONFIGURE=./configure --prefix=$(PREFIX)
+
+LIBDYLIB=$(SOURCE)/.libs/$(LIBNAME).dylib
+
+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 -j 1 -C $(SOURCE)
+
+.installed:
+ make -C $(SOURCE) install
+ touch $@
+
+clean:
+ rm -rf $(SOURCE) .installed
+
+distclean::
+ rm -rf $(SOURCE) .installed
+