aboutsummaryrefslogtreecommitdiffstats
path: root/main/wxgtk2.8
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-07-14 11:35:25 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-07-14 11:41:38 +0000
commitebec9e39e75e3f84bfd4bb0a62c35288d5b47372 (patch)
treec11af7335873e659f1fe143c330395b803a2862c /main/wxgtk2.8
parent12f59500076a9e6cb9bce23888c124f2467f7aee (diff)
downloadaports-ebec9e39e75e3f84bfd4bb0a62c35288d5b47372.tar.bz2
aports-ebec9e39e75e3f84bfd4bb0a62c35288d5b47372.tar.xz
main/wxgtk: rename to wxgtk2.8
So we can upgrade to wxgtk 3
Diffstat (limited to 'main/wxgtk2.8')
-rw-r--r--main/wxgtk2.8/APKBUILD79
1 files changed, 79 insertions, 0 deletions
diff --git a/main/wxgtk2.8/APKBUILD b/main/wxgtk2.8/APKBUILD
new file mode 100644
index 0000000000..ea4150e1eb
--- /dev/null
+++ b/main/wxgtk2.8/APKBUILD
@@ -0,0 +1,79 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=wxgtk2.8
+pkgver=2.8.12.1
+pkgrel=0
+pkgdesc="GTK2 port of the wxWidgets GUI library"
+url="http://www.wxwidgets.org/"
+arch="all"
+license="wxWidgets"
+depends=""
+depends_dev="gtk+2.0-dev zlib-dev tiff-dev libpng-dev libjpeg-turbo-dev
+ expat-dev libsm-dev"
+makedepends="$depends_dev sdl-dev gst-plugins-base-dev gstreamer-dev gconf-dev"
+install=""
+replaces="wxgtk"
+subpackages="$pkgname-dev $pkgname-lang $pkgname-media $pkgname-base"
+source="http://downloads.sourceforge.net/wxpython/wxPython-src-${pkgver}.tar.bz2"
+
+_builddir="$srcdir"/wxPython-src-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ update_config_sub || return 1
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --with-sdl \
+ --enable-unicode \
+ --enable-no_deps \
+ --enable-shared \
+ --enable-sound \
+ --enable-mediactrl \
+ --disable-rpath \
+ --disable-optimise \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+dev() {
+ default_dev
+ mv "$pkgdir"/usr/lib/wx/config "$subpkgdir"/usr/lib/wx/ || return 1
+ mv "$pkgdir"/usr/bin/wxrc* "$subpkgdir"/usr/bin/ || return 1
+ mv "$pkgdir"/usr/share/bakefile "$subpkgdir"/usr/share/ || return 1
+}
+
+media() {
+ pkgdesc="Multimedia add-on for the wxWidgets library"
+ replaces="wxgtk-media"
+ mkdir -p "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/lib/libwx_gtk2u_media-*.so.* "$subpkgdir"/usr/lib/
+}
+
+base() {
+ pkgdesc="Non-GUI support classes from the wxWidgets library"
+ replaces="wxbase"
+ mkdir -p "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/lib/libwx_baseu-*.so.* \
+ "$pkgdir"/usr/lib/libwx_baseu_net-*.so.* \
+ "$pkgdir"/usr/lib/libwx_baseu_xml-*.so.* \
+ "$subpkgdir"/usr/lib/
+}
+
+md5sums="8c06c5941477beee213b4f2fa78be620 wxPython-src-2.8.12.1.tar.bz2"