Clean up build process & update chdkptp to r962 #13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR cleans up the overall chdkptp.so build process and updates the included chdkptp revision to r962, which matches the latest official binaries from the project.
First, this removes the chdkptp git submodule (which is stuck on an ancient version due to the closure of svn2github) and replaces it with a python script that grabs and unarchives a Zip of the source code straight from the project's SVN repo. This removes the need for SVN or submodules entirely and should make the process of updating the chdkptp revision much easier in the future.
Next, this updates the bundled chdkptp to r962 and updates the patchfile accordingly. 962 was used instead of the latest release to minimize the likelihood of breaking things while still using a more modern version.
Finally, to simplify the build process and remove the build requirement of Lua 5.2 or 5.3 (not available on current versions of Fedora and likely other distros as well), this PR uses chdkptp's own
setup-ext-libs.bashscript to download, build, and link to a static version of Lua 5.2 when building chdkptp. Making this work also requires modifying the Lua build script to compile with-fPICenabled, since we're linking to it from a shared library instead of a standard binary like usual.