diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-11-04 14:29:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-11-04 14:40:07 +0000 |
commit | 556138a22a851dfb6177d22c508a4842a7c82877 (patch) | |
tree | b5dbbee0b77af1b2a08f9093b199f58d59b662ee /testing | |
parent | cd8c2f7bd213af7a0dd845cf6caef44e9293f34e (diff) | |
download | aports-556138a22a851dfb6177d22c508a4842a7c82877.tar.bz2 aports-556138a22a851dfb6177d22c508a4842a7c82877.tar.xz |
testing/wxgtk: new aport
GTK2 port of the wxWidgets GUI library
http://www.wxwidgets.org/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/wxgtk/APKBUILD | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/testing/wxgtk/APKBUILD b/testing/wxgtk/APKBUILD new file mode 100644 index 0000000000..62dbbbde02 --- /dev/null +++ b/testing/wxgtk/APKBUILD @@ -0,0 +1,72 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=wxgtk +pkgver=2.8.12 +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 jpeg-dev expat-dev + libsm-dev" +makedepends="$depends_dev sdl-dev gst-plugins-base-dev gstreamer-dev gconf-dev" +install="" +subpackages="$pkgname-dev $pkgname-lang $pkgname-media wxbase" +source="http://downloads.sourceforge.net/wxwindows/wxGTK-$pkgver.tar.bz2" + +_builddir="$srcdir"/wxGTK-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --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" + mkdir -p "$subpkgdir"/usr/lib/ + mv "$pkgdir"/usr/lib/libwx_gtk2u_media-*.so.* "$subpkgdir"/usr/lib/ +} + +wxbase() { + pkgdesc="Non-GUI support classes from the wxWidgets library" + 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="08f81ab60647308058f6ce99712b14f8 wxGTK-2.8.12.tar.bz2" |