-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
323 changed files
with
24,322 additions
and
11,563 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,19 @@ | ||
# Try to find libvpx | ||
# | ||
# This will define | ||
# LIBVPX_FOUND | ||
# LIBVPX_INCLUDE_DIRS | ||
# LIBVPX_LIBRARIES | ||
|
||
find_path(LIBVPX_INCLUDE_DIR vpx_encoder.h | ||
PATH_SUFFIXES vpx) | ||
find_library(LIBVPX_LIBRARY NAMES vpx) | ||
|
||
set(LIBVPX_INCLUDE_DIRS ${LIBVPX_INCLUDE_DIR}) | ||
set(LIBVPX_LIBRARIES ${LIBVPX_LIBRARY}) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(libvpx DEFAULT_MSG LIBVPX_LIBRARY LIBVPX_INCLUDE_DIR) | ||
|
||
mark_as_advanced(LIBVPX_INCLUDE_DIR LIBVPX_LIBRARY) | ||
|
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
deps/ | ||
build/ | ||
|
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,6 @@ | ||
91b7a9359f1bfe6f667a5a9c23f6b2178555df26ca2e4dd1bb5c38dc36c77144 *extra-cmake-modules.tar.xz | ||
34a7377ba834397db019e8eb122e551a49c98f49df75ec3fcc92b9a794a4f6d1 *giflib.tar.gz | ||
8f28ab8a8f7236ae5e9e6cf35263dbbb87a52ec938d35515f073bc33dbc33d90 *karchive.tar.xz | ||
677ed3d572706cc896c1e05bb2f1fb1a6c50ffaa13d1c62de13e35eca1e85803 *kdnssd.tar.xz | ||
e8577a6acf5a168b13fc6f64d829e8ea86e917bcddf75f452bd46c69d2a6445f *libvpx.zip | ||
e19fb5e01ea5a707e2a8cb96f537fbd9f3a913d53d804a3265e3aeab3d2064c6 *miniupnpc.tar.gz |
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,120 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
### VERSIONS TO DOWNLOAD | ||
GIFLIB_URL=https://sourceforge.net/projects/giflib/files/giflib-5.1.4.tar.gz/download | ||
MINIUPNPC_URL=http://miniupnp.free.fr/files/download.php?file=miniupnpc-2.1.tar.gz | ||
LIBVPX_URL=https://github.com/webmproject/libvpx/archive/v1.8.0.zip | ||
ECM_URL=https://download.kde.org/stable/frameworks/5.54/extra-cmake-modules-5.54.0.tar.xz | ||
KARCHIVE_URL=https://download.kde.org/stable/frameworks/5.54/karchive-5.54.0.tar.xz | ||
KDNSSD_URL=https://download.kde.org/stable/frameworks/5.54/kdnssd-5.54.0.tar.xz | ||
|
||
### Build flags | ||
export CFLAGS=-mmacosx-version-min=10.7 | ||
export CXXFLAGS=-mmacosx-version-min=10.7 | ||
|
||
### GENERIC FUNCTIONS | ||
function download_package() { | ||
URL="$1" | ||
OUT="$2" | ||
|
||
if [ -f "$OUT" ] | ||
then | ||
echo "$OUT already downloaded. Skipping..." | ||
else | ||
curl -L "$URL" -o "$OUT" | ||
fi | ||
} | ||
|
||
function install_package() { | ||
if [ -d $1-* ]; then | ||
echo "Build directory for $1 already exists. Skipping..." | ||
return | ||
fi | ||
if [ -f "$1.zip" ]; then | ||
unzip -q "$1.zip" | ||
elif [ -f "$1.tar.gz" ]; then | ||
tar xfz "$1.tar.gz" | ||
elif [ -f "$1.tar.xz" ]; then | ||
tar xfJ "$1.tar.xz" | ||
else | ||
echo "BUG: Unhandled package archive format $1" | ||
exit 1 | ||
fi | ||
pushd $1-* | ||
build_$2 | ||
popd | ||
} | ||
|
||
### PACKAGE SPECIFIC BUILD SCRIPTS | ||
function build_autoconf() { | ||
./configure "--prefix=$QTPATH" | ||
make | ||
make install | ||
} | ||
|
||
function build_autoconf_libvpx() { | ||
./configure "--prefix=$QTPATH" --disable-vp8 --disable-vp9-decoder | ||
make | ||
make install | ||
} | ||
|
||
function build_justmakeinstall() { | ||
INSTALLPREFIX="$QTPATH" make install | ||
} | ||
|
||
function build_cmake() { | ||
mkdir build | ||
cd build | ||
cmake .. "-DCMAKE_PREFIX_PATH=$QTPATH" "-DCMAKE_INSTALL_PREFIX=$QTPATH" | ||
make | ||
make install | ||
} | ||
|
||
### MAIN SCRIPT STARTS HERE | ||
if [ -z "$QTPATH" ] | ||
then | ||
echo "QTPATH environment variable not set" | ||
exit 1 | ||
fi | ||
|
||
if [ ! -d "$QTPATH" ] | ||
then | ||
echo "$QTPATH is not a directory!" | ||
exit 1 | ||
fi | ||
|
||
echo "Dependencies will be downloaded to $(pwd)/deps and installed to $QTPATH." | ||
echo "Write 'ok' to continue" | ||
|
||
read confirmation | ||
|
||
if [ "$confirmation" != "ok" ] | ||
then | ||
echo "Cancelled." | ||
exit 0 | ||
fi | ||
|
||
mkdir -p deps | ||
cd deps | ||
|
||
# Download dependencies | ||
download_package "$GIFLIB_URL" giflib.tar.gz | ||
download_package "$MINIUPNPC_URL" miniupnpc.tar.gz | ||
download_package "$LIBVPX_URL" libvpx.zip | ||
download_package "$ECM_URL" extra-cmake-modules.tar.xz | ||
download_package "$KARCHIVE_URL" karchive.tar.xz | ||
download_package "$KDNSSD_URL" kdnssd.tar.xz | ||
|
||
# Make sure we have the right versions (and they haven't been tampered with) | ||
shasum -a 256 -c ../deps.sha256 | ||
|
||
# Build and install | ||
install_package giflib autoconf | ||
install_package miniupnpc justmakeinstall | ||
install_package libvpx autoconf_libvpx | ||
install_package extra-cmake-modules cmake | ||
install_package karchive cmake | ||
install_package kdnssd cmake | ||
|
Oops, something went wrong.