2020-08-05 03:53:02 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#
|
|
|
|
# 1. library name
|
|
|
|
# 2. source type 1/2/3
|
|
|
|
#
|
|
|
|
get_library_source() {
|
|
|
|
case $1 in
|
2020-11-23 00:51:45 +02:00
|
|
|
config)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/gnu-config"
|
|
|
|
SOURCE_ID="v20201222"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
chromaprint)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/chromaprint"
|
|
|
|
SOURCE_ID="v1.5.0"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
2020-08-05 03:53:02 +03:00
|
|
|
cpu-features)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/cpu_features"
|
2021-01-10 19:46:01 +02:00
|
|
|
SOURCE_ID="v0.6.0"
|
2020-10-28 23:03:24 +02:00
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
2021-01-30 01:35:05 +02:00
|
|
|
dav1d)
|
2021-03-05 23:58:29 +02:00
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/dav1d"
|
|
|
|
SOURCE_ID="0.8.2"
|
2021-01-30 01:35:05 +02:00
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
2020-10-28 23:03:24 +02:00
|
|
|
expat)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/libexpat"
|
|
|
|
SOURCE_ID="R_2_2_10"
|
2020-08-05 03:53:02 +03:00
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
ffmpeg)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/FFmpeg"
|
2021-02-15 03:16:02 +02:00
|
|
|
SOURCE_ID="c0d0b1c4f6f804796488adf3e552be88c0cee1a4"
|
2020-08-05 03:53:02 +03:00
|
|
|
SOURCE_TYPE="COMMIT"
|
2021-02-15 03:16:02 +02:00
|
|
|
SOURCE_GIT_DESCRIBE="n4.4-dev-3015-gc0d0b1c4f6" # git describe --tags
|
2020-08-05 03:53:02 +03:00
|
|
|
;;
|
2020-10-28 23:03:24 +02:00
|
|
|
fontconfig)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/fontconfig"
|
2021-01-10 19:46:01 +02:00
|
|
|
SOURCE_ID="2.13.93"
|
2020-10-28 23:03:24 +02:00
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
freetype)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/freetype2"
|
|
|
|
SOURCE_ID="VER-2-10-2"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
fribidi)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/fribidi"
|
|
|
|
SOURCE_ID="v1.0.10"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
2020-11-23 00:51:45 +02:00
|
|
|
giflib)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/giflib"
|
|
|
|
SOURCE_ID="5.1.4"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
gmp)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/gmp"
|
|
|
|
SOURCE_ID="v6.2.0"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
gnutls)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/gnutls"
|
|
|
|
SOURCE_ID="3.6.15.1"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
harfbuzz)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/harfbuzz"
|
2021-01-10 19:46:01 +02:00
|
|
|
SOURCE_ID="2.7.4"
|
2020-11-23 00:51:45 +02:00
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
2020-10-28 23:03:24 +02:00
|
|
|
jpeg)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/libjpeg-turbo"
|
2021-01-10 19:46:01 +02:00
|
|
|
SOURCE_ID="2.0.6"
|
2020-10-28 23:03:24 +02:00
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
2020-11-23 00:51:45 +02:00
|
|
|
kvazaar)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/kvazaar"
|
|
|
|
SOURCE_ID="v2.0.0"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
lame)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/lame"
|
|
|
|
SOURCE_ID="RELEASE__3_100"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
leptonica)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/leptonica"
|
|
|
|
SOURCE_ID="1.78.0"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
libaom)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/libaom"
|
2021-01-10 19:46:01 +02:00
|
|
|
SOURCE_ID="v2.0.1"
|
2020-11-23 00:51:45 +02:00
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
2020-10-28 23:03:24 +02:00
|
|
|
libass)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/libass"
|
|
|
|
SOURCE_ID="0.15.0"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
libiconv)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/libiconv"
|
2020-11-23 00:51:45 +02:00
|
|
|
SOURCE_ID="v1.16.2"
|
2020-10-28 23:03:24 +02:00
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
libilbc)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/libilbc"
|
|
|
|
SOURCE_ID="v2.0.2"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
2020-11-23 00:51:45 +02:00
|
|
|
libogg)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/ogg"
|
|
|
|
SOURCE_ID="v1.3.4"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
libpng)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/libpng"
|
|
|
|
SOURCE_ID="v1.6.37"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
libsamplerate)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/libsamplerate"
|
|
|
|
SOURCE_ID="v0.1.9"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
libsndfile)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/libsndfile"
|
|
|
|
SOURCE_ID="v1.0.30"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
libtheora)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/theora"
|
|
|
|
SOURCE_ID="v1.1.1"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
libuuid)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/libuuid"
|
|
|
|
SOURCE_ID="libuuid-1.0.3"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
libvidstab)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/vid.stab"
|
|
|
|
SOURCE_ID="v1.1.0"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
libvorbis)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/vorbis"
|
|
|
|
SOURCE_ID="v1.3.7"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
libvpx)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/libvpx"
|
|
|
|
SOURCE_ID="v1.9.0"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
libwebp)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/libwebp"
|
|
|
|
SOURCE_ID="v1.1.0"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
libxml2)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/libxml2"
|
|
|
|
SOURCE_ID="v2.9.10"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
nettle)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/nettle"
|
2021-01-10 19:46:01 +02:00
|
|
|
SOURCE_ID="nettle_3.7_release_20210104"
|
2020-11-23 00:51:45 +02:00
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
opencore-amr)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/opencore-amr"
|
|
|
|
SOURCE_ID="v0.1.5"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
2020-10-28 23:03:24 +02:00
|
|
|
openh264)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/openh264"
|
|
|
|
SOURCE_ID="v2.1.1"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
2020-11-23 00:51:45 +02:00
|
|
|
opus)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/opus"
|
|
|
|
SOURCE_ID="v1.3.1"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
rubberband)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/rubberband"
|
|
|
|
SOURCE_ID="v1.8.2"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
sdl)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/SDL"
|
|
|
|
SOURCE_ID="release-2.0.8"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
shine)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/shine"
|
|
|
|
SOURCE_ID="3.1.1"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
snappy)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/snappy"
|
|
|
|
SOURCE_ID="1.1.8"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
soxr)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/soxr"
|
|
|
|
SOURCE_ID="0.1.3"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
speex)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/speex"
|
|
|
|
SOURCE_ID="Speex-1.2.0"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
tesseract)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/tesseract"
|
|
|
|
SOURCE_ID="3.05.02"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
tiff)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/libtiff"
|
|
|
|
SOURCE_ID="v4.1.0"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
twolame)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/twolame"
|
|
|
|
SOURCE_ID="0.4.0"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
vo-amrwbenc)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/vo-amrwbenc"
|
|
|
|
SOURCE_ID="v0.1.3"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
x264)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/x264"
|
|
|
|
SOURCE_ID="d198931a63049db1f2c92d96c34904c69fde8117"
|
|
|
|
SOURCE_TYPE="COMMIT" # COMMIT -> r3027
|
|
|
|
;;
|
|
|
|
x265)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/x265"
|
|
|
|
SOURCE_ID="3.4"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
|
|
|
xvidcore)
|
|
|
|
SOURCE_REPO_URL="https://github.com/tanersener/xvidcore"
|
|
|
|
SOURCE_ID="release-1_3_7"
|
|
|
|
SOURCE_TYPE="TAG"
|
|
|
|
;;
|
2020-08-05 03:53:02 +03:00
|
|
|
esac
|
|
|
|
|
|
|
|
case $2 in
|
|
|
|
1)
|
|
|
|
echo "${SOURCE_REPO_URL}"
|
|
|
|
;;
|
|
|
|
2)
|
|
|
|
echo "${SOURCE_ID}"
|
|
|
|
;;
|
|
|
|
3)
|
|
|
|
echo "${SOURCE_TYPE}"
|
|
|
|
;;
|
2021-01-28 01:52:32 +02:00
|
|
|
4)
|
|
|
|
echo "${SOURCE_GIT_DESCRIBE}"
|
|
|
|
;;
|
2020-08-05 03:53:02 +03:00
|
|
|
esac
|
|
|
|
}
|