blob: 90feb9775135d0d6f82a6a185e53e5a4bea4002c (
plain)
1 # Description: GTK+3 implementation of wxWidgets API for GUI
2 # URL: http://www.wxwidgets.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: wxgtk-common
5
6 name=wxgtk3
7 version=3.2.1
8 release=1
9 source=(https://github.com/wxWidgets/wxWidgets/releases/download/v$version/wxWidgets-$version.tar.bz2)
10
11 build() {
12 cmake -S wxWidgets-$version -B build -G Ninja \
13 -D CMAKE_INSTALL_PREFIX=/usr \
14 -D CMAKE_INSTALL_LIBDIR=lib \
15 -D CMAKE_BUILD_TYPE=Release \
16 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
17 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
18 -D wxBUILD_TOOLKIT=gtk3 \
19 -D wxUSE_OPENGL=ON \
20 -D wxUSE_REGEX=sys\
21 -D wxUSE_ZLIB=sys \
22 -D wxUSE_EXPAT=sys \
23 -D wxUSE_LIBJPEG=sys \
24 -D wxUSE_LIBPNG=sys \
25 -D wxUSE_LIBTIFF=sys \
26 -D wxUSE_LIBLZMA=sys \
27 -D wxUSE_LIBMSPACK=ON \
28 -D wxUSE_PRIVATE_FONTS=ON \
29 -D wxUSE_GTKPRINT=ON \
30 -Wno-dev
31
32 cmake --build build
33 DESTDIR=$PKG cmake --install build
34
35 rm -r $PKG/usr/{include,lib/{libwx_base*,cmake},bin/wxrc*}
36 mv $PKG/usr/bin/wx-config{,-gtk3}
37 }
|