2020-05-10 10:51:33 +02:00
|
|
|
# Description: GTK+2 implementation of wxWidgets API for GUI
|
2011-09-21 11:21:22 +02:00
|
|
|
# URL: http://www.wxwidgets.org/
|
2014-11-10 13:28:07 +01:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-05-10 10:51:33 +02:00
|
|
|
# Depends on: wxgtk-common
|
2011-09-21 11:21:22 +02:00
|
|
|
|
|
|
|
name=wxgtk
|
2022-09-17 08:50:17 +02:00
|
|
|
version=3.2.1
|
2017-08-01 00:29:33 +02:00
|
|
|
release=1
|
2022-09-17 08:50:17 +02:00
|
|
|
source=(https://github.com/wxWidgets/wxWidgets/releases/download/v$version/wxWidgets-$version.tar.bz2)
|
2011-09-21 11:21:22 +02:00
|
|
|
|
|
|
|
build() {
|
2022-09-17 08:50:17 +02:00
|
|
|
cmake -S wxWidgets-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D wxBUILD_TOOLKIT=gtk2 \
|
|
|
|
-D wxUSE_OPENGL=ON \
|
|
|
|
-D wxUSE_REGEX=sys\
|
|
|
|
-D wxUSE_ZLIB=sys \
|
|
|
|
-D wxUSE_EXPAT=sys \
|
|
|
|
-D wxUSE_LIBJPEG=sys \
|
|
|
|
-D wxUSE_LIBPNG=sys \
|
|
|
|
-D wxUSE_LIBTIFF=sys \
|
|
|
|
-D wxUSE_LIBLZMA=sys \
|
|
|
|
-D wxUSE_LIBMSPACK=ON \
|
|
|
|
-D wxUSE_PRIVATE_FONTS=ON \
|
|
|
|
-Wno-dev
|
2014-09-18 13:33:22 +02:00
|
|
|
|
2022-09-17 08:50:17 +02:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2011-09-21 11:21:22 +02:00
|
|
|
|
2022-09-17 08:50:17 +02:00
|
|
|
rm -r $PKG/usr/{include,lib/libwx_base*,bin/wxrc*}
|
2011-09-21 11:21:22 +02:00
|
|
|
}
|