2018-01-03 19:44:10 +01:00
|
|
|
|
# Tanım: Python için bir wxWidgets GUI araç seti
|
|
|
|
|
# URL: https://www.wxpython.org
|
|
|
|
|
# Paketçi: Cihan_Alkan
|
2018-05-06 19:10:42 +02:00
|
|
|
|
# Gerekler: wxgtk libnotify python xorg-mesa xorg-glu gtk3
|
2018-01-03 19:44:10 +01:00
|
|
|
|
# Gruplar: kütüphane
|
|
|
|
|
|
|
|
|
|
isim=wxpython
|
|
|
|
|
surum=3.0.2.0
|
2018-01-28 08:10:54 +01:00
|
|
|
|
devir=2
|
2018-01-03 19:44:10 +01:00
|
|
|
|
|
|
|
|
|
kaynak=(https://downloads.sourceforge.net/wxpython/wxPython-src-${surum}.tar.bz2)
|
|
|
|
|
|
|
|
|
|
derle() {
|
2018-01-03 21:30:44 +01:00
|
|
|
|
cd wxPython-src-${surum}
|
2018-05-06 19:10:42 +02:00
|
|
|
|
#patch -Np1 -i ../fix-plot.patch
|
2018-01-03 21:30:44 +01:00
|
|
|
|
CFLAGS="$CFLAGS `wx-config --cflags --libs`" \
|
|
|
|
|
LDFLAGS="`wx-config --libs` $LDFLAGS" \
|
|
|
|
|
./configure \
|
2018-05-06 19:10:42 +02:00
|
|
|
|
--prefix=/usr \
|
2018-01-03 21:30:44 +01:00
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
|
--includedir=/usr/include \
|
2018-05-06 19:10:42 +02:00
|
|
|
|
--with-gtk=3 \
|
2018-01-03 21:30:44 +01:00
|
|
|
|
--with-opengl \
|
|
|
|
|
--enable-unicode \
|
|
|
|
|
--enable-graphics_ctx \
|
|
|
|
|
--disable-precomp-headers \
|
|
|
|
|
--with-regex=sys \
|
|
|
|
|
--with-libpng=sys \
|
|
|
|
|
--with-libxpm=sys \
|
|
|
|
|
--with-libjpeg=sys \
|
2018-05-06 19:10:42 +02:00
|
|
|
|
--with-libtiff=sys \
|
|
|
|
|
--with-wx-config=/usr/bin/wx-config
|
|
|
|
|
cd wxPython
|
|
|
|
|
python2 setup.py WX_CONFIG=/usr/bin/wx-config WXPORT=gtk3 UNICODE=1 build
|
|
|
|
|
python2 setup.py WX_CONFIG=/usr/bin/wx-config WXPORT=gtk3 UNICODE=1 install --root="${PKG}" --optimize=1
|
|
|
|
|
for file in "${PKG}"/usr/bin/*; do mv "${file}" "${file}2"; done
|
|
|
|
|
install -Dm644 ../docs/licence.txt "${PKG}"/usr/share/licenses/${isim}/LICENSE
|
2018-01-03 19:44:10 +01:00
|
|
|
|
}
|