mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 20:20:06 +02:00
wxQt: Enable SDL, patch wx-config for Qt libs, fix missing headers.
Also fix copyright (3.1 was released in 2016).
This commit is contained in:
@@ -7,9 +7,9 @@ applications a truly native look and feel because it uses the platform's \
|
||||
native API rather than emulating the GUI. It's also extensive, free, \
|
||||
open-source and mature."
|
||||
HOMEPAGE="https://www.wxwidgets.org"
|
||||
COPYRIGHT="1998-2017 Julian Smart, Robert Roebling et al"
|
||||
COPYRIGHT="1998-2016 Julian Smart, Robert Roebling et al"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://github.com/wxWidgets/wxWidgets/releases/download/v$portVersion/wxWidgets-$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="e082460fb6bf14b7dd6e8ac142598d1d3d0b08a7b5ba402fdbf8711da7e66da8"
|
||||
SOURCE_DIR="wxWidgets-$portVersion"
|
||||
@@ -37,16 +37,17 @@ PROVIDES="
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
lib:libcairo$secondaryArchSuffix
|
||||
lib:libexpat$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libpng16$secondaryArchSuffix
|
||||
lib:libtiff$secondaryArchSuffix
|
||||
lib:libSDL$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Widgets$secondaryArchSuffix
|
||||
lib:libtiff$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
@@ -72,23 +73,30 @@ PROVIDES_devel="
|
||||
REQUIRES_devel="
|
||||
haiku$secondaryArchSuffix
|
||||
wxqt$secondaryArchSuffix == $portVersion base
|
||||
lib:libexpat$secondaryArchSuffix
|
||||
lib:libiconv$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
lib:libexpat$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libcairo$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libz$secondaryArchSuffix
|
||||
devel:libcairo$secondaryArchSuffix
|
||||
devel:libexpat$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
devel:libSDL$secondaryArchSuffix
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
devel:libQt5Gui$secondaryArchSuffix
|
||||
devel:libQt5Widgets$secondaryArchSuffix
|
||||
devel:libiconv$secondaryArchSuffix
|
||||
devel:libcairo$secondaryArchSuffix
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
devel:libexpat$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:grep
|
||||
@@ -112,7 +120,7 @@ PATCH()
|
||||
|
||||
BUILD()
|
||||
{
|
||||
runConfigure ./configure --with-qt --enable-shared
|
||||
runConfigure ./configure --with-qt --with-sdl --enable-shared
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
@@ -136,9 +144,28 @@ INSTALL()
|
||||
libwx_qtu_stc-3.1 \
|
||||
libwx_qtu_xrc-3.1
|
||||
|
||||
# Install some missing headers that the build system didn't install.
|
||||
cp include/wx/generic/caret.h \
|
||||
include/wx/generic/clrpickerg.h \
|
||||
include/wx/generic/imaglist.h \
|
||||
include/wx/generic/filepickerg.h \
|
||||
$includeDir/wx-3.1/wx/generic/
|
||||
|
||||
# Remove the symlinked wx-config and put the real one there instead.
|
||||
rm $binDir/wx-config
|
||||
mv $libDir/wx/config/qt-unicode-3.1 $binDir/wx-config
|
||||
|
||||
# Move setup.h to the main include directory.
|
||||
mv $libDir/wx/include/qt-unicode-3.1/wx/setup.h $includeDir/wx-3.1/wx/
|
||||
|
||||
rm -rf $libDir/wx/
|
||||
|
||||
# Patch wx-config to pass in the Qt libs & etc. as they're usually needed.
|
||||
sed -i 's/wx_libs="$_guildflags/wx_libs="$ldlibs_core $_guildflags/' \
|
||||
$binDir/wx-config
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$libDir/wx \
|
||||
$prefix/bin \
|
||||
$dataDir/aclocal
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user