talimat 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Tanım: Python için bir wxWidgets GUI araç seti
  2. # URL: https://www.wxpython.org
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler: wxgtk libnotify python xorg-mesa xorg-glu gtk3
  5. # Gruplar: kütüphane
  6. isim=wxpython
  7. surum=3.0.2.0
  8. devir=2
  9. kaynak=(https://downloads.sourceforge.net/wxpython/wxPython-src-${surum}.tar.bz2)
  10. derle() {
  11. cd wxPython-src-${surum}
  12. #patch -Np1 -i ../fix-plot.patch
  13. CFLAGS="$CFLAGS `wx-config --cflags --libs`" \
  14. LDFLAGS="`wx-config --libs` $LDFLAGS" \
  15. ./configure \
  16. --prefix=/usr \
  17. --libdir=/usr/lib \
  18. --includedir=/usr/include \
  19. --with-gtk=3 \
  20. --with-opengl \
  21. --enable-unicode \
  22. --enable-graphics_ctx \
  23. --disable-precomp-headers \
  24. --with-regex=sys \
  25. --with-libpng=sys \
  26. --with-libxpm=sys \
  27. --with-libjpeg=sys \
  28. --with-libtiff=sys \
  29. --with-wx-config=/usr/bin/wx-config
  30. cd wxPython
  31. python2 setup.py WX_CONFIG=/usr/bin/wx-config WXPORT=gtk3 UNICODE=1 build
  32. python2 setup.py WX_CONFIG=/usr/bin/wx-config WXPORT=gtk3 UNICODE=1 install --root="${PKG}" --optimize=1
  33. for file in "${PKG}"/usr/bin/*; do mv "${file}" "${file}2"; done
  34. install -Dm644 ../docs/licence.txt "${PKG}"/usr/share/licenses/${isim}/LICENSE
  35. }