Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request xbmc#3758 from jmarshallnz/xslt_scraper
XSLT support in scrapers
- Loading branch information
Showing
19 changed files
with
405 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@ECHO ON | ||
rem libxml2 is needed by libxslt | ||
|
||
SET LOC_PATH=%CD% | ||
SET FILES=%LOC_PATH%\libxml2_d.txt | ||
|
||
CALL dlextract.bat libxml2 %FILES% | ||
|
||
cd %TMP_PATH% | ||
|
||
echo readme.txt > libxml2_exclude.txt | ||
|
||
xcopy libxml2-2.7.8-win32\* "%XBMC_PATH%\" /E /Q /I /Y /EXCLUDE:libxml2_exclude.txt | ||
|
||
cd %LOC_PATH% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
; filename source of the file | ||
libxml2-2.7.8-win32.7z http://mirrors.xbmc.org/build-deps/win32/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@ECHO OFF | ||
rem libxslt depends on libxml2 | ||
|
||
SET LOC_PATH=%CD% | ||
SET FILES=%LOC_PATH%\libxslt_d.txt | ||
|
||
CALL dlextract.bat libxslt %FILES% | ||
|
||
cd %TMP_PATH% | ||
|
||
echo readme.txt > libxslt_exclude.txt | ||
|
||
xcopy libxslt-1.1.26-win32\* "%XBMC_PATH%\" /E /Q /I /Y /EXCLUDE:libxslt_exclude.txt | ||
|
||
cd %LOC_PATH% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
; filename mirror of the file | ||
libxslt-1.1.26-win32.7z http://mirrors.xbmc.org/build-deps/win32/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
include ../../Makefile.include | ||
DEPS= ../../Makefile.include Makefile | ||
|
||
# lib name, version | ||
LIBNAME=libxslt | ||
VERSION=1.1.28 | ||
SOURCE=$(LIBNAME)-$(VERSION) | ||
ARCHIVE=$(SOURCE).tar.gz | ||
|
||
# configuration settings | ||
CONFIGURE=cp -f $(CONFIG_SUB) $(CONFIG_GUESS) .; \ | ||
./configure --prefix=$(PREFIX) --without-python --disable-shared --with-debug --with-debugger --with-mem-debug --with-libxml-prefix=$(PREFIX) | ||
|
||
LIBDYLIB=$(PLATFORM)/.libs/$(LIBNAME).a | ||
|
||
CLEAN_FILES=$(ARCHIVE) $(PLATFORM) | ||
|
||
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) | ||
sed -ie "s|runtest$$(EXEEXT)||" "$(PLATFORM)/Makefile.in" | ||
sed -ie "s|testrecurse$$(EXEEXT)||" "$(PLATFORM)/Makefile.in" | ||
sed -ie "s|xsltproc||" "$(PLATFORM)/Makefile.in" | ||
cd $(PLATFORM); $(CONFIGURE) | ||
|
||
$(LIBDYLIB): $(PLATFORM) | ||
$(MAKE) -C $(PLATFORM) | ||
|
||
.installed-$(PLATFORM): $(LIBDYLIB) | ||
$(MAKE) -C $(PLATFORM) install | ||
touch $@ | ||
|
||
clean: | ||
$(MAKE) -C $(PLATFORM) clean | ||
rm -f .installed-$(PLATFORM) | ||
|
||
distclean:: | ||
rm -rf $(PLATFORM) .installed-$(PLATFORM) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.