wok-next view wxWidgets28/receipt @ rev 20888

Check Repology info from q* to x* packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jul 14 17:43:03 2018 +0300 (2018-07-14)
parents c0521c689857
children f99935f1778a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="wxWidgets28"
4 VERSION="2.8.12.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Cross-platform GUI Library (oldstable version)"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL"
9 WEB_SITE="http://www.wxwidgets.org/"
10 REPOLOGY="wxwidgets28"
12 TARBALL="wxPython-src-$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/wxwindows/$TARBALL"
15 BUILD_DEPENDS="gtk+-dev expat-dev zlib-dev \
16 xorg-dev xorg-xineramaproto glu mesa-dev libpng12-dev tiff-dev \
17 jpeg-dev xorg-libXpm-dev patch xorg-libxshmfence-dev glu-dev"
18 SPLIT="wxWidgets28-dev"
20 compile_rules() {
21 sed -i 's|/opt/wx/current/bin/||' wxPython/wx/build/build_options.py
22 export CXXFLAGS="-Wno-narrowing"
23 ./configure \
24 --enable-shared \
25 --enable-unicode \
26 --with-opengl \
27 --with-libpng=sys \
28 --with-libxpm=sys \
29 --with-libjpeg=sys \
30 --with-libtiff=sys \
31 --enable-graphics_ctx \
32 --enable-unicode \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install &&
36 cd $src/contrib &&
37 {
38 make &&
39 make DESTDIR=$DESTDIR install
40 } 2>&1 | sed 's/h: No such/h: no such/'
41 }
43 genpkg_rules() {
44 case $PACKAGE in
45 wxWidgets28)
46 mkdir -p $fs/usr
47 # Copy libs and contrib libs.
48 cp -a $install/usr/lib/ $fs/usr/
49 # Remove devel files.
50 rm -rf $fs/usr/lib/wx/include
51 DEPENDS="glib glibc-base gcc-lib-base expat zlib atk \
52 gtk+ cairo fontconfig freetype jpeg libpng12 tiff pango \
53 xorg-pixman util-linux-uuid xorg-libSM xorg-libICE xorg-libX11 \
54 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
55 xorg-libXdmcp xorg-libXext glu xorg-libXfixes \
56 xorg-libXinerama xorg-libXrender xorg-libXxf86vm mesa"
57 ;;
58 *-dev)
59 mkdir -p $fs/usr/lib/wx
60 cp -a $install/usr/bin $fs/usr
61 cp -a $install/usr/include $fs/usr
62 # Just copy setup.h and contrib include
63 cp -a $install/usr/lib/wx/include $fs/usr/lib/wx
65 cp -a $install/usr/share $fs/usr
66 rm -r $fs/usr/share/locale
67 DEPENDS="wxWidgets28 gtk+-dev xorg-libXinerama-dev xorg-libSM-dev \
68 xorg-libICE-dev expat zlib"
69 ;;
70 esac
71 }