Skip to content

Commit

Permalink
tools/MINGW-packages: update
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Oct 16, 2021
1 parent f144b2a commit 10cbaa6
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 40 deletions.
2 changes: 1 addition & 1 deletion tools/MINGW-packages/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ First you need to download a MSYS2 snapshot, only **``20180531``** is supported.
Start ``C:\msys64-20180531\mingw64.exe``, then run the following commands:

$ sed -i 's/SigLevel = Required DatabaseOptional/SigLevel = Never/' /etc/pacman.conf
$ sed -i 's|#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u|XferCommand = /usr/bin/wget --no-check-certificate --passive-ftp -c -O %o %u|' /etc/pacman.conf
$ echo "Server = https://downloads.sourceforge.net/project/natron/MINGW-packages/mingw64" > /etc/pacman.d/mirrorlist.mingw64
$ echo "Server = https://downloads.sourceforge.net/project/natron/MINGW-packages/msys" > /etc/pacman.d/mirrorlist.msys
$ echo insecure > ~/.curlrc
$ pacman -Syu natron-sdk

This will install everything required to build/package Natron and the plug-ins. If some packages fail to download re-run the last command.
Expand Down
60 changes: 40 additions & 20 deletions tools/MINGW-packages/mingw-w64-aom/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,42 +1,62 @@
# Maintainer: wirx6 <wirx654@gmail.com>

_realname=aom
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.0.0
pkgrel=2
pkgdesc='AV1 codec library(mingw-w64)'
pkgver=3.2.0
pkgrel=1
pkgdesc='AV1 codec library (mingw-w64)'
arch=('any')
url="https://aomedia.org/"
license=('BSD')
license=('BSD-2-Clause')
replaces=("${MINGW_PACKAGE_PREFIX}-${_realname}-git")
conflicts=("${MINGW_PACKAGE_PREFIX}-${_realname}-git")
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs")
makedepends=("perl" "git"
makedepends=("perl"
"${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-yasm"
"${MINGW_PACKAGE_PREFIX}-ninja"
"${MINGW_PACKAGE_PREFIX}-python3")
source=("git+https://aomedia.googlesource.com/aom#tag=v${pkgver}")
sha256sums=('SKIP')
source=("https://storage.googleapis.com/aom-releases/libaom-${pkgver}.tar.gz")
sha256sums=('8fa7418bf4ea12ef6dcf0eeb21cba932b71c6079ffdf7b9d13cf907fa46c0568')
noextract=("libaom-${pkgver}.tar.gz")

prepare() {
# Extract into a subdirectory
(mkdir "${srcdir}/${_realname}" && cd "${srcdir}/${_realname}" && bsdtar -xf "${srcdir}/libaom-${pkgver}.tar.gz")

cd "${srcdir}/${_realname}"
}

build() {
[[ -d ${srcdir}/build-${CARCH} ]] && rm -rf ${srcdir}/build-${CARCH}
mkdir -p ${srcdir}/build-${CARCH} && cd ${srcdir}/build-${CARCH}
cd "${srcdir}"/${_realname}
[[ -d "${srcdir}"/build-${CARCH} ]] && rm -rf "${srcdir}"/build-${CARCH}
mkdir -p "${srcdir}"/build-${CARCH} && cd "${srcdir}"/build-${CARCH}

declare -a extra_config
if check_option "debug" "n"; then
extra_config+=("-DCMAKE_BUILD_TYPE=Release")
else
extra_config+=("-DCMAKE_BUILD_TYPE=Debug")
fi

MSYS2_ARG_CONV_EXCL="-DCMAKE_INSTALL_PREFIX=" \
${MINGW_PREFIX}/bin/cmake \
-G"MSYS Makefiles" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
-DENABLE_TESTS=OFF \
../${_realname}

make
${MINGW_PREFIX}/bin/cmake \
-GNinja \
-DCMAKE_INSTALL_PREFIX=${MINGW_PREFIX} \
"${extra_config[@]}" \
-DBUILD_SHARED_LIBS=ON \
-DENABLE_TESTS=OFF \
../${_realname}

${MINGW_PREFIX}/bin/cmake --build .
}

package() {
cd ${srcdir}/build-${CARCH}
make DESTDIR="${pkgdir}" install
cd "${srcdir}"/build-${CARCH}

DESTDIR="${pkgdir}" ${MINGW_PREFIX}/bin/cmake --build . --target install

install -Dm644 ${srcdir}/${_realname}/LICENSE ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE
install -Dm644 ${srcdir}/${_realname}/PATENTS ${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/PATENTS
}
6 changes: 3 additions & 3 deletions tools/MINGW-packages/mingw-w64-ffmpeg-gpl2/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ _realname=ffmpeg
pkgbase="mingw-w64-${_realname}-gpl2"
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}-gpl2"
pkgver=4.4
pkgrel=3
pkgrel=4
pkgdesc="Complete and free Internet live audio and video broadcasting solution (mingw-w64)"
arch=('any')
url="https://ffmpeg.org/"
Expand Down Expand Up @@ -42,11 +42,11 @@ depends=("${MINGW_PACKAGE_PREFIX}-bzip2"
"${MINGW_PACKAGE_PREFIX}-x265"
"${MINGW_PACKAGE_PREFIX}-xvidcore"
"${MINGW_PACKAGE_PREFIX}-dav1d"
"${MINGW_PACKAGE_PREFIX}-aom"
"${MINGW_PACKAGE_PREFIX}-zlib")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-pkg-config"
"${MINGW_PACKAGE_PREFIX}-nasm"
"${MINGW_PACKAGE_PREFIX}-aom")
"${MINGW_PACKAGE_PREFIX}-nasm")
source=(https://ffmpeg.org/releases/${_realname}-${pkgver}.tar.xz)
sha256sums=('06b10a183ce5371f915c6bb15b7b1fffbe046e8275099c96affc29e17645d909')

Expand Down
5 changes: 2 additions & 3 deletions tools/MINGW-packages/mingw-w64-gdk-pixbuf2/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@ _realname=gdk-pixbuf2
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=2.42.6
pkgrel=1
pkgrel=2
pkgdesc="An image loading library (mingw-w64)"
arch=('any')
#mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64' 'clang32')
url="https://gitlab.gnome.org/GNOME/gdk-pixbuf"
license=(LGPL2.1)
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-pkg-config"
"${MINGW_PACKAGE_PREFIX}-gobject-introspection"
"${MINGW_PACKAGE_PREFIX}-meson"
"${MINGW_PACKAGE_PREFIX}-gi-docgen")
depends=("${MINGW_PACKAGE_PREFIX}-gcc-libs"
Expand All @@ -34,7 +33,7 @@ sha256sums=('c4a6b75b7ed8f58ca48da830b9fa00ed96d668d3ab4b1f723dcf902f78bde77f'
'21bd9b2ba1447267c84f1b445cbcf50c62299254856c1c227cc7ba4babc9f27e'
'7f0732b26fbb76a1b33f54fac5e9fbd7258025aa1c9d086e97691724ea6ff545'
'3d3350dbb437a675e1bdfbc45ad7701634516cd95508411dfb33005b28c01044'
'6277c30e763c7889a3446e2ce8c7b8dbe7212678497b2905582de8159831e3fb')
'bba857d148ec06ef70448c1f13f82dacf42790591b592be610d2aa2c9e96c752')

prepare() {
cd ${srcdir}/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[Trigger]
Type = Path
Type = File
Operation = Install
Operation = Upgrade
Operation = Remove
Expand Down
20 changes: 9 additions & 11 deletions tools/MINGW-packages/mingw-w64-libvpx/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,23 @@
_realname=libvpx
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.8.1
pkgrel=2
pkgdesc="The VP8 Codec SDK (mingw-w64)"
pkgver=1.10.0
pkgrel=1
pkgdesc="The VP8/VP9 Codec SDK (mingw-w64)"
arch=('any')
license=('BSD')
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" "${MINGW_PACKAGE_PREFIX}-yasm")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-yasm")
url="https://www.webmproject.org/"
source=(${_realname}-${pkgver}.tar.gz::https://github.com/webmproject/libvpx/archive/v${pkgver}.tar.gz
0001-enable-shared-on.mingw.patch
0002-no-pthreads.mingw.patch
0003-cross-with-native-binutils.mingw.patch
0005-fix-exports.mingw.patch)
0005-fix-exports.mingw.patch)
options=('strip' 'staticlibs')
sha256sums=('df19b8f24758e90640e1ab228ab4a4676ec3df19d23e4593375e6f3847dee03e'
sha256sums=('85803ccbdbdd7a3b03d930187cb055f1353596969c1f92ebec2db839fa4f834a'
'f37a24525725cad215d73c538c0b06343b043f2b07553e7dc25835bd68af0695'
'3153cac1db87628de36d71e6638677a08c52afd6ada94b4d64ea00364bf20e4a'
'fabe7d4a756b33016947f741b1b5d8cbbf9aefd8862240645d0ed7bf7b4a3739'
'7c511b5df935278da2cba32b03b90582f360ab6786a5e32028bc82025193fabd')
'7c511b5df935278da2cba32b03b90582f360ab6786a5e32028bc82025193fabd')

# Helper macros to help make tasks easier #
apply_patch_with_msg() {
Expand All @@ -43,7 +42,6 @@ prepare() {
cd ${srcdir}/${_realname}-${pkgver}

apply_patch_with_msg 0001-enable-shared-on.mingw.patch
apply_patch_with_msg 0002-no-pthreads.mingw.patch
apply_patch_with_msg 0003-cross-with-native-binutils.mingw.patch
apply_patch_with_msg 0005-fix-exports.mingw.patch
}
Expand All @@ -69,7 +67,7 @@ build() {
--enable-postproc \
--enable-pic \
--enable-shared \
--enable-static \
--disable-static \
--enable-experimental \
--disable-examples \
--disable-docs \
Expand Down
3 changes: 2 additions & 1 deletion tools/MINGW-packages/mingw-w64-natron-sdk/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
pkgname=natron-sdk
pkgver=2021
pkgrel=2
pkgrel=3
pkgdesc='Meta package for the Natron Windows SDK'
url='https://github.com/NatronGitHub'
arch=('any')
license=('GPL')
depends=(
automake-wrapper
autoconf-archive
wget
tar
dos2unix
Expand Down

0 comments on commit 10cbaa6

Please sign in to comment.