diff options
author | davilla <davilla@4pi.com> | 2011-10-13 14:53:01 -0400 |
---|---|---|
committer | davilla <davilla@4pi.com> | 2011-10-13 17:44:51 -0400 |
commit | 3a0c3c037de6d02eec47611e5213be815783bfb8 (patch) | |
tree | 9ebbf7ef6efefe31943315f3eea08104d4e61736 /lib/libcec | |
parent | 86683ca0c0ea6808022222b83897ee2b4fb35c55 (diff) |
changed libcec to be dyloaded like others, also change lib/libcec/Makefile to be pure convenence make and remove the internal/external bits, libcec is a system lib. treat it that way.
Diffstat (limited to 'lib/libcec')
-rw-r--r-- | lib/libcec/Makefile | 54 | ||||
-rw-r--r-- | lib/libcec/Makefile.in | 51 |
2 files changed, 54 insertions, 51 deletions
diff --git a/lib/libcec/Makefile b/lib/libcec/Makefile new file mode 100644 index 0000000000..971190bb55 --- /dev/null +++ b/lib/libcec/Makefile @@ -0,0 +1,54 @@ +# Download and build libCEC +# +# Usage: +# make +# sudo make install +# make clean + +# lib name, version +LIBNAME=libcec +VERSION=0.6 +SOURCE=$(LIBNAME)-$(VERSION) + +# download location and format +BASE_URL=http://mirrors.xbmc.org/build-deps/darwin-libs +ARCHIVE=$(SOURCE).tar.gz +TARBALLS_LOCATION=. +RETRIEVE_TOOL=/usr/bin/curl +RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(TARBALLS_LOCATION)/$(ARCHIVE) +ARCHIVE_TOOL=tar +ARCHIVE_TOOL_FLAGS=xf + +PREFIX ?= /usr/local +LIBCEC_CONFIGOPTS ?= --prefix=$(PREFIX) + +# configuration settings +CONFIGURE=./configure CFLAGS=-D_FILE_OFFSET_BITS=64 $(LIBCEC_CONFIGOPTS) + +SO_NAME=$(SOURCE)/.libs/$(LIBNAME).so + +all: $(SO_NAME) + +$(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) + +$(SO_NAME): $(SOURCE) + make -j 1 -C $(SOURCE) + +install: + make -C $(SOURCE) install + ldconfig + +clean: + rm -rf $(SOURCE) + +distclean:: + rm -rf $(SOURCE) + diff --git a/lib/libcec/Makefile.in b/lib/libcec/Makefile.in deleted file mode 100644 index 4343cfb4c0..0000000000 --- a/lib/libcec/Makefile.in +++ /dev/null @@ -1,51 +0,0 @@ -# Download and build libCEC -# -# Usage: -# make download -# make bootstrap -# make configure -# make - -# lib name, version -LIBNAME=libcec -VERSION=0.6 -ARCHIVE=$(LIBNAME)-$(VERSION) - -# download location and format -ARCHIVE_BASE_URL=http://github.com/Pulse-Eight/$(LIBNAME)/tarball/ -ARCHIVE_EXTRACTED_DIR=Pulse-Eight-libcec-d9ba5be -ARCHIVE_URL=$(ARCHIVE_BASE_URL)$(ARCHIVE) -ARCHIVE_TOOL=tar -ARCHIVE_TOOL_FLAGS=xf -ARCHIVE_ADD_EXTENSION=.tar.gz -RETRIEVE_TOOL=/usr/bin/curl -RETRIEVE_TOOL_FLAGS=-Ls --create-dirs --output $(ARCHIVE)$(ARCHIVE_ADD_EXTENSION) - -# configuration -PREFIX ?= @abs_top_srcdir@/lib/libcec -LIBCEC_CONFIGOPTS ?= --prefix=$(PREFIX) -CONFIGURE=./configure CFLAGS=-D_FILE_OFFSET_BITS=64 $(LIBCEC_CONFIGOPTS) - -all: libcec.a - -download: distclean - $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(ARCHIVE_URL) - $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(ARCHIVE)$(ARCHIVE_ADD_EXTENSION) - rm -f $(ARCHIVE)$(ARCHIVE_ADD_EXTENSION) - mv $(ARCHIVE_EXTRACTED_DIR) $(LIBNAME) - mkdir -p include/libcec - cp $(LIBNAME)/include/* include/libcec - -libcec.a: - make -C $(LIBNAME) - cp $(LIBNAME)/src/lib/.libs/libcec.a libcec.a - -clean: - rm -f libcec.a - make -C $(LIBNAME) clean - -distclean: - rm -f $(ARCHIVE) libcec.a Makefile - rm -rf include - rm -rf $(LIBNAME) - rm -rf $(ARCHIVE_DIR) |