diff options
author | davilla <davilla@4pi.com> | 2012-09-06 13:15:06 -0400 |
---|---|---|
committer | davilla <davilla@4pi.com> | 2012-09-06 13:15:06 -0400 |
commit | 3d91ac2e46fcf03a068aedaf1e84afb2c71923d9 (patch) | |
tree | 93104067c7fdea2f9b1faf70545bdab28070a096 /tools/darwin | |
parent | a7e5cbc9f5284edd5351084de3ee0c609de20937 (diff) |
[darwin] add temp helper file for pvr addon binary build
Diffstat (limited to 'tools/darwin')
-rw-r--r-- | tools/darwin/depends/xbmc-pvr-addons/Makefile | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tools/darwin/depends/xbmc-pvr-addons/Makefile b/tools/darwin/depends/xbmc-pvr-addons/Makefile new file mode 100644 index 0000000000..7f439b92d1 --- /dev/null +++ b/tools/darwin/depends/xbmc-pvr-addons/Makefile @@ -0,0 +1,49 @@ +include ../Makefile.include +include ../config.site.mk + +XBMC_ADDONSDIR=../../../../addons + +# lib name, version +LIBNAME=xbmc-pvr-addons +VERSION=fc2fa6f065b71484ebc5233d9ee3f51d9a353447 +SOURCE=$(LIBNAME)-$(VERSION) +ARCHIVE=$(SOURCE).tar.gz + +# configuration settings +CONFIGURE=./configure --prefix=$(PREFIX) + +LIBDYLIB=$(SOURCE)/$(LIBNAME)/.libs/libpvrdemo-addon.dylib + +all: $(LIBDYLIB) .installed + +$(TARBALLS_LOCATION)/$(ARCHIVE): + git clone git://github.com/opdenkamp/xbmc-pvr-addons.git $(SOURCE) + cd $(SOURCE); git archive --format=tar --prefix=$(SOURCE)/ $(VERSION) | gzip -9 > $(TARBALLS_LOCATION)/$(ARCHIVE) + +$(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE) + rm -rf $(SOURCE) + $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) + echo $(SOURCE) > .gitignore + cd $(SOURCE); ./bootstrap + cd $(SOURCE); $(CONFIGURE) + +$(LIBDYLIB): $(SOURCE) + make -C $(SOURCE) + +.installed: + for ADDON in `find $(SOURCE)/addons -type d -name "pvr.*"`; do \ + ADDON=`basename $$ADDON` ; \ + mkdir -p $(XBMC_ADDONSDIR)/$$ADDON ; \ + cp -PRf $(SOURCE)/addons/$$ADDON/addon/* $(XBMC_ADDONSDIR)/$$ADDON ; \ + cp -Pf $(SOURCE)/addons/$$ADDON/*.pvr $(XBMC_ADDONSDIR)/$$ADDON ; \ + done + touch .installed + +clean: + make -C $(SOURCE) clean + rm -f .installed + +distclean:: + rm -rf $(SOURCE) .installed + rm -f $(TARBALLS_LOCATION)/$(ARCHIVE) + |