contrib/wxpython/Pkgfile

62 lines
1.2 KiB
Plaintext
Raw Normal View History

2008-01-12 22:46:02 +01:00
# Description: Python language bindings for the wxWindows toolkit.
# URL: http://www.wxpython.org/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2008-01-12 22:46:02 +01:00
# Packager: sten, nick dot steeves at shaw dot ca
2017-11-01 13:35:12 +01:00
# Depends on: wxgtk
2008-01-12 22:46:02 +01:00
name=wxpython
2016-04-01 07:51:51 +02:00
version=3.0.2.0
2017-03-10 06:11:41 +01:00
release=2
2014-09-18 14:53:12 +02:00
source=(http://downloads.sourceforge.net/wxpython/wxPython-src-$version.tar.bz2)
2008-01-12 22:46:02 +01:00
build() {
2014-09-18 14:53:12 +02:00
cd wxPython-src-$version
2008-01-12 22:46:02 +01:00
2017-03-10 06:11:41 +01:00
sed \
-e 's|GST_VERSION_MAJOR=0|GST_VERSION_MAJOR=1|' \
-e 's|GST_VERSION_MINOR=10|GST_VERSION_MINOR=0|' \
-i configure.in
./autogen.sh
2014-09-18 14:53:12 +02:00
./configure \
--prefix=/usr \
--libdir=/usr/lib \
--with-gtk=2 \
--with-opengl \
--enable-unicode \
--enable-graphics_ctx \
--enable-mediactrl \
--disable-precomp-headers \
--with-regex=sys \
--with-libpng=sys \
--with-libxpm=sys \
--with-libjpeg=sys \
--with-libtiff=sys
cd wxPython
/usr/bin/python setup.py \
WXPORT=gtk2 \
UNICODE=1 \
build
2008-01-12 22:46:02 +01:00
/usr/bin/python setup.py \
2008-01-12 22:46:02 +01:00
WXPORT=gtk2 \
UNICODE=1 \
2014-09-18 14:53:12 +02:00
install \
--root="$PKG"
2008-01-12 22:46:02 +01:00
find $PKG -type f \
\( \
-name 'AUTHORS' \
-o -name 'COPYING' \
-o -name 'INSTALL' \
-o -name 'NEWS' \
-o -name 'THANKS' \
-o -name 'TODO' \
-o -name 'TODO.txt' \
-o -name 'README' \
-o -name 'README.txt' \
\) -delete
}