diff options
author | Rasmus Thomsen <oss@cogitri.dev> | 2019-05-28 14:53:44 +0200 |
---|---|---|
committer | Milan P. Stanić <mps@arvanta.net> | 2019-05-28 21:17:23 +0200 |
commit | 8b7f9fa88e76aa1e5e331ff65641df3057b897ae (patch) | |
tree | 67bd19cc04d67ef2e2f69cfed076c1db484fa713 /community/wxgtk | |
parent | ce4e9eead4af510829c3251536a7012d0fc44edb (diff) | |
download | aports-8b7f9fa88e76aa1e5e331ff65641df3057b897ae.tar.bz2 aports-8b7f9fa88e76aa1e5e331ff65641df3057b897ae.tar.xz |
community/wxgtk: add gtk3 version
Diffstat (limited to 'community/wxgtk')
-rw-r--r-- | community/wxgtk/APKBUILD | 76 |
1 files changed, 53 insertions, 23 deletions
diff --git a/community/wxgtk/APKBUILD b/community/wxgtk/APKBUILD index b71e6ebbef..94a3d1ac09 100644 --- a/community/wxgtk/APKBUILD +++ b/community/wxgtk/APKBUILD @@ -1,17 +1,20 @@ +# Contributor: Rasmus Thonsen <oss@cogitri.dev> # Contributor: Pavel Kalian <pavel@kalian.cz> # Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to> pkgname=wxgtk pkgver=3.0.4 -pkgrel=2 +pkgrel=3 pkgdesc="GTK2 port of wxWidgets GUI library" url="https://www.wxwidgets.org/" arch="all" license="wxWidgets" depends_dev="gtk+2.0-dev mesa-dev zlib-dev tiff-dev libjpeg-turbo-dev expat-dev - libsm-dev" -makedepends="$depends_dev glu-dev sdl-dev gst-plugins-base0.10-dev - gstreamer0.10-dev" -subpackages="$pkgname-dev $pkgname-lang $pkgname-media $pkgname-base" + libsm-dev gtk+3.0-dev" +makedepends="$depends_dev glu-dev sdl-dev gst-plugins-base-dev + gstreamer-dev" +options="!check" # doesn't have any checks +subpackages="$pkgname-dev $pkgname-lang $pkgname-base $pkgname-media:_media2 + ${pkgname}3-media:_media3 ${pkgname}3:_gtk3" source="https://github.com/wxWidgets/wxWidgets/releases/download/v${pkgver}/wxWidgets-${pkgver}.tar.bz2" builddir="$srcdir/wxWidgets-$pkgver" @@ -21,41 +24,62 @@ prepare() { } build() { - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --with-sdl \ - --with-opengl \ - --enable-unicode \ - --enable-aui \ - --enable-no_deps \ - --enable-shared \ - --enable-sound \ - --enable-mediactrl \ - --disable-rpath \ - --disable-optimise - make + for gtk_version in 2 3; do + cd "$builddir" + mkdir gtk${gtk_version} + cd gtk${gtk_version} + "$builddir"/configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --with-sdl \ + --with-opengl \ + --enable-unicode \ + --enable-aui \ + --enable-no_deps \ + --enable-shared \ + --enable-sound \ + --enable-mediactrl \ + --disable-rpath \ + --disable-optimise \ + --with-gtk=${gtk_version} + + make + done } package() { + cd "$builddir"/gtk2 + make DESTDIR="$pkgdir" install + + cd "$builddir"/gtk3 make DESTDIR="$pkgdir" install } dev() { default_dev - mv "$pkgdir"/usr/lib/wx/config "$subpkgdir"/usr/lib/wx/ + cd "$subpkgdir"/usr/bin/ + ln -s /usr/lib/wx/config/gtk2-unicode-3.0 wx-config-gtk2 + ln -sf /usr/bin/wx-config-gtk2 wx-config + ln -s /usr/lib/wx/config/gtk3-unicode-3.0 wx-config-gtk3 mv "$pkgdir"/usr/bin/wxrc* "$subpkgdir"/usr/bin/ mv "$pkgdir"/usr/share/bakefile "$subpkgdir"/usr/share/ } -media() { - pkgdesc="Multimedia add-on for the wxWidgets library" +_media2() { + pkgdesc="Multimedia add-on for the wxWidgets library (GTK2)" mkdir -p "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libwx_gtk2u_media-*.so.* "$subpkgdir"/usr/lib/ } +_media3() { + pkgdesc="Multimedia add-on for the wxWidgets library (GTK3)" + + mkdir -p "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/lib/libwx_gtk3u_media-*.so.* "$subpkgdir"/usr/lib/ +} + base() { pkgdesc="Non-GUI support classes from the wxWidgets library" mkdir -p "$subpkgdir"/usr/lib/ @@ -65,4 +89,10 @@ base() { "$subpkgdir"/usr/lib/ } +_gtk3() { + pkgdesc="${pkgdesc/GTK2/GTK3}" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libwx_gtk3* "$subpkgdir"/usr/lib/ +} + sha512sums="c9e6b35d541a99921c54cfdac260843f574f146b27f924a7a0fca5007344fa99865a96ded95e6802329ad9221b4880d62b92277a1b4c1ce71420acb672ad9158 wxWidgets-3.0.4.tar.bz2" |