summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoribrokemypie2017-11-16 23:40:23 +1100
committeribrokemypie2017-11-16 23:40:23 +1100
commit0baf338406c6d5d6ba6adfed0c2300ff5d07f214 (patch)
treeb7bf47f310397d5a7072788ad8675498fc79441d
downloadaur-0baf338406c6d5d6ba6adfed0c2300ff5d07f214.tar.gz
initial commit
-rw-r--r--.SRCINFO59
-rw-r--r--PKGBUILD98
-rw-r--r--make-abicheck-non-fatal.patch15
3 files changed, 172 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a5dde6fb8eb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,59 @@
+pkgbase = wxgtk-dev
+ pkgver = 3.1.0
+ pkgrel = 1
+ url = https://wxwidgets.org
+ arch = x86_64
+ license = custom:wxWindows
+ makedepends = gst-plugins-base
+ makedepends = gconf
+ makedepends = glu
+ makedepends = webkit2gtk
+ makedepends = libnotify
+ makedepends = gtk2
+ options = !emptydirs
+ source = https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.0/wxWidgets-3.1.0.tar.bz2
+ source = make-abicheck-non-fatal.patch
+ source = wxgtk-webkit2gtk.patch::https://github.com/wxWidgets/wxWidgets/commit/ec6e54bc.patch
+ source = wxgtk2-fix-webview.patch::https://github.com/wxWidgets/wxWidgets/commit/fd247cca.patch
+ source = wxgtk-filezilla-assert.patch::https://github.com/wxWidgets/wxWidgets/commit/ce1dce11.patch
+ sha1sums = 2170839cfa9d9322e8ee8368b21a15a2497b4f11
+ sha1sums = dfe38650c655395b90bf082b5734c4093508bfa3
+ sha1sums = c9d013552b3078d7a9700df897333c2960207b0f
+ sha1sums = 550c368a68eec8b6c32c61da289df76e4dd5a798
+ sha1sums = 1da8af91ef6c590da9c43dd115f52d605730f16a
+
+pkgname = wxgtk2-dev
+ pkgdesc = GTK+2 implementation of wxWidgets API for GUI
+ depends = gtk2
+ depends = gst-plugins-base-libs
+ depends = libsm
+ depends = libxxf86vm
+ depends = wxgtk-common
+ depends = libnotify
+ provides = wxgtk
+ provides = wxgtk2
+ conflicts = wxgtk
+ conflicts = wxgtk2
+ replaces = wxgtk
+
+pkgname = wxgtk3-dev
+ pkgdesc = GTK+3 implementation of wxWidgets API for GUI
+ depends = gtk3
+ depends = gst-plugins-base-libs
+ depends = libsm
+ depends = libxxf86vm
+ depends = wxgtk-common
+ depends = libnotify
+ optdepends = webkit2gtk: for webview support
+ provides = wxgtk3
+ conflicts = wxgtk<3.0.3.1-2
+ conflicts = wxgtk3
+
+pkgname = wxgtk-common-dev
+ pkgdesc = Common libraries and headers for wxgtk2 and wxgtk3
+ depends = zlib
+ depends = gcc-libs
+ depends = expat
+ provides = wxgtk-common
+ conflicts = wxgtk-common
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2406b84f532
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,98 @@
+pkgbase=wxgtk-dev
+pkgname=(wxgtk2-dev wxgtk3-dev wxgtk-common-dev)
+pkgver=3.1.0
+pkgrel=1
+arch=('x86_64')
+url="https://wxwidgets.org"
+license=('custom:wxWindows')
+makedepends=('gst-plugins-base' 'gconf' 'glu' 'webkit2gtk' 'libnotify' 'gtk2')
+options=('!emptydirs')
+source=(https://github.com/wxWidgets/wxWidgets/releases/download/v$pkgver/wxWidgets-$pkgver.tar.bz2
+ make-abicheck-non-fatal.patch wxgtk-webkit2gtk.patch::"https://github.com/wxWidgets/wxWidgets/commit/ec6e54bc.patch"
+ wxgtk2-fix-webview.patch::"https://github.com/wxWidgets/wxWidgets/commit/fd247cca.patch"
+ wxgtk-filezilla-assert.patch::"https://github.com/wxWidgets/wxWidgets/commit/ce1dce11.patch")
+sha1sums=('2170839cfa9d9322e8ee8368b21a15a2497b4f11'
+ 'dfe38650c655395b90bf082b5734c4093508bfa3'
+ 'c9d013552b3078d7a9700df897333c2960207b0f'
+ '550c368a68eec8b6c32c61da289df76e4dd5a798'
+ '1da8af91ef6c590da9c43dd115f52d605730f16a')
+
+prepare() {
+ cd wxWidgets-${pkgver}
+
+ # C++ ABI check is too strict and breaks with GCC 5.1
+ # https://bugzilla.redhat.com/show_bug.cgi?id=1200611
+ patch -Np1 -i ../make-abicheck-non-fatal.patch
+
+ # Support webkit2gtk
+ sed -e 's|setup0.h|setup.h|g' -i ../wxgtk-webkit2gtk.patch
+ #patch -p1 -i ../wxgtk-webkit2gtk.patch
+ # fix webview after webkit2gtk port
+ #patch -p1 -i ../wxgtk2-fix-webview.patch
+ # fix assert in FileZilla
+ patch -p1 -i ../wxgtk-filezilla-assert.patch
+
+ cd ..
+ cp -r wxWidgets-${pkgver} wxWidgets-${pkgver}-gtk3
+}
+
+build() {
+ cd wxWidgets-${pkgver}
+ ./autogen.sh
+ ./configure --prefix=/usr --libdir=/usr/lib --with-gtk=2 --with-opengl --enable-unicode \
+ --enable-graphics_ctx --enable-mediactrl --with-regex=builtin \
+ --with-libpng=sys --with-libxpm=sys --with-libjpeg=sys --with-libtiff=sys \
+ --disable-precomp-headers
+ make
+ make -C locale allmo
+
+ cd ../wxWidgets-${pkgver}-gtk3
+ ./autogen.sh
+ ./configure --prefix=/usr --libdir=/usr/lib --with-gtk=3 --with-opengl --enable-unicode \
+ --enable-graphics_ctx --enable-mediactrl --enable-webview --with-regex=builtin \
+ --with-libpng=sys --with-libxpm=sys --with-libjpeg=sys --with-libtiff=sys \
+ --disable-precomp-headers
+ make
+}
+
+package_wxgtk-common-dev() {
+ pkgdesc='Common libraries and headers for wxgtk2 and wxgtk3'
+ depends=('zlib' 'gcc-libs' 'expat')
+ conflicts=('wxgtk-common')
+ provides=('wxgtk-common')
+
+ cd wxWidgets-${pkgver}
+ make DESTDIR="${pkgdir}" install
+ rm -r "$pkgdir"/usr/{bin/wx-config,lib/{wx,libwx_gtk*}}
+
+ install -D -m644 docs/licence.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_wxgtk2-dev() {
+ pkgdesc='GTK+2 implementation of wxWidgets API for GUI'
+ depends=('gtk2' 'gst-plugins-base-libs' 'libsm' 'libxxf86vm' 'wxgtk-common' 'libnotify')
+ conflicts=('wxgtk' 'wxgtk2')
+ provides=('wxgtk' 'wxgtk2')
+ replaces=('wxgtk')
+
+ cd wxWidgets-${pkgver}
+ make DESTDIR="${pkgdir}" install
+ rm -r "$pkgdir"/usr/{include,share,lib/libwx_base*,bin/wxrc*}
+
+ install -D -m644 docs/licence.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_wxgtk3-dev() {
+ pkgdesc='GTK+3 implementation of wxWidgets API for GUI'
+ depends=('gtk3' 'gst-plugins-base-libs' 'libsm' 'libxxf86vm' 'wxgtk-common' 'libnotify')
+ optdepends=('webkit2gtk: for webview support')
+ conflicts=('wxgtk<3.0.3.1-2' 'wxgtk3')
+ provides=('wxgtk3')
+
+ cd wxWidgets-${pkgver}-gtk3
+ make DESTDIR="${pkgdir}" install
+ rm -r "$pkgdir"/usr/{include,share,lib/libwx_base*,bin/wxrc*}
+ mv "$pkgdir"/usr/bin/wx-config{,-gtk3}
+
+ install -D -m644 docs/licence.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
diff --git a/make-abicheck-non-fatal.patch b/make-abicheck-non-fatal.patch
new file mode 100644
index 00000000000..97055ba46fa
--- /dev/null
+++ b/make-abicheck-non-fatal.patch
@@ -0,0 +1,15 @@
+diff -up wxGTK-2.8.12/src/common/appbase.cpp.abicheck wxGTK-2.8.12/src/common/appbase.cpp
+--- wxGTK-2.8.12/src/common/appbase.cpp.abicheck 2015-03-12 17:15:18.000000000 +0100
++++ wxGTK-2.8.12/src/common/appbase.cpp 2015-03-12 17:15:57.000000000 +0100
+@@ -424,10 +424,7 @@ bool wxAppConsole::CheckBuildOptions(con
+ msg.Printf(_T("Mismatch between the program and library build versions detected.\nThe library used %s,\nand %s used %s."),
+ lib.c_str(), progName.c_str(), prog.c_str());
+
+- wxLogFatalError(msg.c_str());
+-
+- // normally wxLogFatalError doesn't return
+- return false;
++ wxLogWarning(msg.c_str());
+ }
+ #undef wxCMP
+