tenacity & wxwidgets3.1
This commit is contained in:
parent
d7fa9b9867
commit
05eda6f924
3 changed files with 178 additions and 0 deletions
65
tenacity/APKBUILD
Normal file
65
tenacity/APKBUILD
Normal file
|
@ -0,0 +1,65 @@
|
|||
# Thanks to: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=tenacity-git
|
||||
pkgname=tenacity
|
||||
pkgver=0_git20211022
|
||||
_commit=697c0e764ccb19c1e2f3073ae08ecdac7aa710e4
|
||||
pkgrel=0
|
||||
pkgdesc="Multitrack audio editor"
|
||||
url="https://www.tenacityteam.org/"
|
||||
arch="all"
|
||||
license="GPL-2.0-or-later"
|
||||
makedepends="
|
||||
cmake
|
||||
samurai
|
||||
lame-dev
|
||||
libsndfile-dev
|
||||
soxr-dev
|
||||
sqlite-dev
|
||||
portaudio-dev
|
||||
portmidi-dev
|
||||
libid3tag-dev
|
||||
soundtouch-dev
|
||||
libmad-dev
|
||||
ffmpeg-dev
|
||||
wxwidgets3.1-dev
|
||||
chrpath
|
||||
"
|
||||
subpackages="$pkgname-doc $pkgname-lang"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://git.sr.ht/~tenacity/tenacity/archive/$_commit.tar.gz
|
||||
remove-git-dependency.patch
|
||||
"
|
||||
|
||||
builddir="$srcdir/tenacity-$_commit"
|
||||
|
||||
build() {
|
||||
local _arch
|
||||
case "$CARCH" in
|
||||
x86) _arch="-DHAVE_SSE=OFF -DHAVE_SSE2=OFF";;
|
||||
esac
|
||||
|
||||
if [ "$CBUILD" != "$CHOST" ]; then
|
||||
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
|
||||
fi
|
||||
cmake -B build \
|
||||
-DCMAKE_BUILD_TYPE=None \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_INSTALL_REMOVE_ENVIRONMENT_RPATH=true \
|
||||
$CMAKE_CROSSOPTS \
|
||||
$_arch
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
package() {
|
||||
make -C build DESTDIR="$pkgdir" install
|
||||
|
||||
chrpath --replace /usr/lib/tenacity:/usr/lib/tenacity/modules "${pkgdir}/usr/bin/tenacity"
|
||||
chrpath --delete "${pkgdir}/usr/lib/tenacity/lib-strings.so"
|
||||
chrpath --delete "${pkgdir}/usr/lib/tenacity/lib-string-utils.so"
|
||||
chrpath --delete "${pkgdir}/usr/lib/tenacity/lib-utility.so"
|
||||
chrpath --delete "${pkgdir}/usr/lib/tenacity/modules/mod-script-pipe.so"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
13c6571dcc0102e0dfb2e300873563e0a36063376fe9b4d3ce2f08c6b8013621a12b04f6ea2d44aa99aa52bf14877719c4d0dd09422c529ef0ca124b55ea8290 tenacity-697c0e764ccb19c1e2f3073ae08ecdac7aa710e4.tar.gz
|
||||
f748ef7e008c76fd4a6c6e89012f302b45b9f7e42db2cc9fed2f871009e3aaed24974f9f282d27ed85d94d150c2272182acc5a03e8b41ad5b980ce92ce14ecfd remove-git-dependency.patch
|
||||
"
|
49
tenacity/remove-git-dependency.patch
Normal file
49
tenacity/remove-git-dependency.patch
Normal file
|
@ -0,0 +1,49 @@
|
|||
--- tenacity-697c0e764ccb19c1e2f3073ae08ecdac7aa710e4/CMakeLists.txt
|
||||
+++ tenacity-697c0e764ccb19c1e2f3073ae08ecdac7aa710e4-patched/CMakeLists.txt
|
||||
@@ -67,46 +67,6 @@
|
||||
set( TENACITY_MODLEVEL 0 ) # Additional version detail
|
||||
set( GIT_DESCRIBE "unknown" )
|
||||
|
||||
-if( GIT_FOUND )
|
||||
- # Attempt to first get "Tenacity-" tags
|
||||
- execute_process(
|
||||
- COMMAND ${GIT_EXECUTABLE} describe --tags --abbrev=7 --exclude="Audacity-*" --exclude="DarkAudacity-*"
|
||||
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
- OUTPUT_VARIABLE GIT_DESCRIBE
|
||||
- OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET
|
||||
- )
|
||||
-
|
||||
- if( DEFINED GIT_DESCRIBE AND GIT_DESCRIBE STREQUAL "" )
|
||||
- # Retry, this time accepting "Audacity-" tags
|
||||
- execute_process(
|
||||
- COMMAND ${GIT_EXECUTABLE} describe --tags --abbrev=7 --exclude="DarkAudacity-*"
|
||||
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
||||
- OUTPUT_VARIABLE GIT_DESCRIBE
|
||||
- OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET
|
||||
- )
|
||||
- endif()
|
||||
-
|
||||
- if( DEFINED GIT_DESCRIBE AND NOT GIT_DESCRIBE STREQUAL "" )
|
||||
-
|
||||
- # Copy to new variable for string manipulation
|
||||
- set( git_output ${GIT_DESCRIBE} )
|
||||
-
|
||||
- string( REPLACE "Audacity-" "" git_output "${git_output}" )
|
||||
- string( REPLACE "DarkAudacity-" "" git_output "${git_output}" )
|
||||
-
|
||||
- string( REGEX REPLACE "-.*" "" git_output "${git_output}" )
|
||||
- string( REPLACE "." ";" git_output "${git_output}" )
|
||||
-
|
||||
- list( LENGTH git_output GIT_OUTPUT_LIST_LENGTH )
|
||||
-
|
||||
- if( GIT_OUTPUT_LIST_LENGTH GREATER_EQUAL 3 )
|
||||
- list( GET git_output 0 AUDACITY_VERSION )
|
||||
- list( GET git_output 1 AUDACITY_RELEASE )
|
||||
- list( GET git_output 2 AUDACITY_REVISION )
|
||||
- endif()
|
||||
- endif()
|
||||
-endif()
|
||||
-
|
||||
# ~~~~~~~
|
||||
# Vcpkg
|
||||
# ~~~~~~~
|
64
wxwidgets3.1/APKBUILD
Normal file
64
wxwidgets3.1/APKBUILD
Normal file
|
@ -0,0 +1,64 @@
|
|||
pkgname=wxwidgets3.1
|
||||
pkgver=3.1.5
|
||||
pkgrel=0
|
||||
pkgdesc="GTK3 port of wxWidgets GUI library"
|
||||
url="https://www.wxwidgets.org/"
|
||||
arch="all"
|
||||
license="wxWidgets"
|
||||
makedepends="
|
||||
mesa-dev
|
||||
glu-dev
|
||||
|
||||
sdl-dev
|
||||
|
||||
zlib-dev
|
||||
tiff-dev
|
||||
libjpeg-turbo-dev
|
||||
libpng-dev
|
||||
expat-dev
|
||||
libsm-dev
|
||||
|
||||
libnotify-dev
|
||||
|
||||
gtk+3.0-dev
|
||||
|
||||
gst-plugins-base-dev
|
||||
gstreamer-dev
|
||||
"
|
||||
options="!check" # doesn't have any checks
|
||||
subpackages="
|
||||
$pkgname-dev
|
||||
"
|
||||
source="https://github.com/wxWidgets/wxWidgets/releases/download/v${pkgver}/wxWidgets-${pkgver}.tar.bz2"
|
||||
builddir="$srcdir/wxWidgets-$pkgver"
|
||||
|
||||
build() {
|
||||
"$builddir"/configure \
|
||||
--build=$CBUILD \
|
||||
--host=$CHOST \
|
||||
--prefix=/usr \
|
||||
--with-sdl \
|
||||
--with-opengl \
|
||||
--enable-unicode \
|
||||
--enable-graphics_ctx \
|
||||
--enable-mediactrl \
|
||||
--enable-webview \
|
||||
--enable-xlocale \
|
||||
--with-regex=sys \
|
||||
--with-gtk=3 \
|
||||
--enable-aui \
|
||||
--enable-shared \
|
||||
--enable-sound \
|
||||
--disable-rpath \
|
||||
--disable-optimise \
|
||||
--disable-xlocale
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
ce9c31f0c502135839330150ec08724d69b64910d3e1d3dc11eb587b079bb8bdedd515ff980e7992c68ff1ba59d962353a079ee72a19a03923fc4755826714c9 wxWidgets-3.1.5.tar.bz2
|
||||
"
|
Loading…
Reference in a new issue