milis/talimatname/genel/w/wxpython/talimat

39 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# Tanım: Python için bir wxWidgets GUI araç seti
# URL: https://www.wxpython.org
# Paketçi: Cihan_Alkan
# Gerekler: wxgtk libnotify python xorg-mesa xorg-glu gtk3
# Gruplar: kütüphane
isim=wxpython
surum=3.0.2.0
devir=2
kaynak=(https://downloads.sourceforge.net/wxpython/wxPython-src-${surum}.tar.bz2)
derle() {
cd wxPython-src-${surum}
#patch -Np1 -i ../fix-plot.patch
CFLAGS="$CFLAGS `wx-config --cflags --libs`" \
LDFLAGS="`wx-config --libs` $LDFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib \
--includedir=/usr/include \
--with-gtk=3 \
--with-opengl \
--enable-unicode \
--enable-graphics_ctx \
--disable-precomp-headers \
--with-regex=sys \
--with-libpng=sys \
--with-libxpm=sys \
--with-libjpeg=sys \
--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
}