Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alpine
aports
Merge requests
!38949
The source project of this merge request has been removed.
community/wxwidgets: upgrade to 3.2.1
Merged
community/wxwidgets: upgrade to 3.2.1
(removed):wxwidgets-3.2
into
master
Overview
0
Commits
20
Pipelines
0
Changes
7
Merged
Ghost User
requested to merge
(removed):wxwidgets-3.2
into
master
2 years ago
Overview
0
Pipelines
0
Changes
7
Expand
0
0
1
Merge request reports
Viewing commit
cc5b7b05
Prev
Next
Show latest version
7 files
+
322
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
Unverified
cc5b7b05
community/wxwidgets: upgrade to 3.2.1, rename from wxgtk
· cc5b7b05
alice
authored
2 years ago
community/wxwidgets/APKBUILD
0 → 100644
+
154
−
0
Options
# Contributor: Rasmus Thonsen <oss@cogitri.dev>
# Contributor: Pavel Kalian <pavel@kalian.cz>
# Contributor: ScrumpyJack <scrumpyjack@st.ilet.to>
# Maintainer: psykose <alice@ayaya.dev>
pkgname
=
wxwidgets
pkgver
=
3.2.1
pkgrel
=
0
pkgdesc
=
"wxWidgets GUI library"
url
=
"https://www.wxwidgets.org/"
arch
=
"all"
license
=
"custom:wxWidgets"
depends_dev
=
"
expat-dev
libjpeg-turbo-dev
libsecret-dev
libsm-dev
curl-dev
glu-dev
gst-plugins-base-dev
gstreamer-dev
libnotify-dev
pcre2-dev
gtk+3.0-dev
mesa-dev
sdl2-dev
webkit2gtk-dev
tiff-dev
qt5-qtbase-dev
xz-dev
zlib-dev
"
makedepends
=
"
$depends_dev
cmake
samurai
"
subpackages
=
"
$pkgname
-dbg
$pkgname
-dev
$pkgname
-webview:_webview
$pkgname
-gtk3:_gtk3
$pkgname
-qt5:_qt5
"
source
=
"https://github.com/wxWidgets/wxWidgets/releases/download/v
$pkgver
/wxWidgets-
$pkgver
.tar.bz2
invalid-header-syntax.patch
largefile.patch
musl-locale-l.patch
no-glvnd.patch
no-langinfo-h.patch
"
builddir
=
"
$srcdir
/wxWidgets-
$pkgver
"
# tests test meaningless locale stuff that fails on musl
options
=
"!check !spdx"
build
()
{
export
CFLAGS
=
"
$CFLAGS
-g1 -O2 -flto=auto"
export
CXXFLAGS
=
"
$CXXFLAGS
-g1 -O2 -flto=auto"
cmake
-B
build-gtk3
-G
Ninja
-Wno-dev
\
-DCMAKE_INSTALL_PREFIX
=
/usr
\
-DCMAKE_BUILD_TYPE
=
None
\
-DwxBUILD_PRECOMP
=
OFF
\
-DwxBUILD_TESTS
=
"
$(
want_check
&&
echo
CONSOLE_ONLY
||
echo
OFF
)
"
\
-DwxBUILD_TOOLKIT
=
gtk3
\
-DwxUSE_EXPAT
=
sys
\
-DwxUSE_GLCANVAS_EGL
=
ON
\
-DwxUSE_GTKPRINT
=
ON
\
-DwxUSE_LIBJPEG
=
sys
\
-DwxUSE_LIBLZMA
=
sys
\
-DwxUSE_LIBPNG
=
sys
\
-DwxUSE_LIBTIFF
=
sys
\
-DwxUSE_OPENGL
=
ON
\
-DwxUSE_PRIVATE_FONTS
=
ON
\
-DwxUSE_REGEX
=
sys
\
-DwxUSE_ZLIB
=
sys
cmake
--build
build-gtk3
cmake
-B
build-qt5
-G
Ninja
-Wno-dev
\
-DCMAKE_INSTALL_PREFIX
=
/usr
\
-DCMAKE_BUILD_TYPE
=
None
\
-DwxBUILD_PRECOMP
=
OFF
\
-DwxBUILD_TOOLKIT
=
qt
\
-DwxUSE_EXPAT
=
sys
\
-DwxUSE_GLCANVAS_EGL
=
ON
\
-DwxUSE_LIBJPEG
=
sys
\
-DwxUSE_LIBLZMA
=
sys
\
-DwxUSE_LIBPNG
=
sys
\
-DwxUSE_LIBTIFF
=
sys
\
-DwxUSE_OPENGL
=
ON
\
-DwxUSE_PRIVATE_FONTS
=
ON
\
-DwxUSE_REGEX
=
sys
\
-DwxUSE_ZLIB
=
sys
cmake
--build
build-qt5
}
check
()
{
ctest
--test-dir
build-gtk3
--output-on-failure
}
package
()
{
DESTDIR
=
"
$pkgdir
"
cmake
--install
build-qt5
# Rename qt5 cmake files to allow dual use
mv
"
$pkgdir
"
/usr/lib/cmake/wxWidgets
"
$pkgdir
"
/usr/lib/cmake/wxWidgetsQt
local
f
for
f
in
"
$pkgdir
"
/usr/lib/cmake/wxWidgetsQt/
*
;
do
local
target
=
"
$(
dirname
$f
)
/
$(
basename
$f
|
sed
-e
's/wxWidgets/wxWidgetsQt/'
)
"
mv
"
$f
"
"
$target
"
done
mv
"
$pkgdir
"
/usr/bin/wx-config
"
$pkgdir
"
/usr/bin/wx-config-qt
DESTDIR
=
"
$pkgdir
"
cmake
--install
build-gtk3
install
-Dm644
wxwin.m4
-t
"
$pkgdir
"
/usr/share/aclocal
install
-Dm644
docs/licence.txt
-t
"
$pkgdir
"
/usr/share/licenses/
$pkgname
}
dev
()
{
replaces
=
"wxgtk-base-dev"
amove usr/bin
default_dev
amove usr/lib/wx/config
}
_webview
()
{
pkgdesc
=
"
$pkgdesc
(WebView component)"
depends
=
"
$pkgname
=
$pkgver
-r
$pkgrel
$pkgname
-gtk3=
$pkgver
-r
$pkgrel
"
amove usr/lib/wx/3.2/web-extensions
amove usr/lib/libwx_gtk3u_webview
*
}
_gtk3
()
{
pkgdesc
=
"
$pkgdesc
(GTK3 components)"
amove usr/lib/libwx_gtk3u
*
}
_qt5
()
{
pkgdesc
=
"
$pkgdesc
(Qt5 components)"
amove usr/lib/libwx_qtu
*
}
sha512sums
=
"
d0294788891014672d8eb4501ae257598972407b53f38471e4f11dd20f517d0145d510c5bce006b09c5d63113fed844bdf6124b3c80453c1d37b402abc89202b wxWidgets-3.2.1.tar.bz2
90efa1007b6f4aa7a80a8e78a767ba953cd3f260f36111e507fc4b1ce7ef702682bda0c92dcd4e07d54aaf719f9b1ff380f5a4a2d7532a8cf79bf25eb257c7ab invalid-header-syntax.patch
f41162f574ddce14c64b0c052c181dd490d0e5464e03e800d08e04ca0699392820ce7e01c70d59c9eb2ffdc75af9abf0c75e59b680abee7d06571840480321e7 largefile.patch
07f40cbeefdc19aa6bd8e71826409a8e2ea04f19e70e895623d887eaf1b6f2a9ddce9a804d8c66de138431131f8c4e5b910dd4c71a38cd84587ff4cf53804339 musl-locale-l.patch
242b61fbbccffa2aa1ee471d957d2284ca8e52d26596063f37292a9f4206a27a133d4d96fb470ac6418eab1b2627e93e132416950b13c712577ddf7062f66b3f no-glvnd.patch
2a6f6e51d973039a58510ca52466c680b2c7f68dc4893b64534cabc5d16363994fa5322e350b5e06b8ec09f974f437813f92ed0ac26e7f5d156325029c2e4d5f no-langinfo-h.patch
"
Loading