wok-next view wxWidgets28/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | 4396aed7eb01 |
children | cd7906120828 |
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/"
11 TARBALL="wxPython-src-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/wxwindows/$TARBALL"
14 BUILD_DEPENDS="gtk+-dev expat-dev zlib-dev \
15 xorg-dev xorg-xineramaproto glu mesa-dev libpng12-dev tiff-dev \
16 jpeg-dev xorg-libXpm-dev patch xorg-libxshmfence-dev glu-dev"
17 SPLIT="wxWidgets28-dev"
19 compile_rules() {
20 sed -i 's|/opt/wx/current/bin/||' wxPython/wx/build/build_options.py
21 export CXXFLAGS="-Wno-narrowing"
22 ./configure \
23 --enable-shared \
24 --enable-unicode \
25 --with-opengl \
26 --with-libpng=sys \
27 --with-libxpm=sys \
28 --with-libjpeg=sys \
29 --with-libtiff=sys \
30 --enable-graphics_ctx \
31 --enable-unicode \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install &&
35 cd $src/contrib &&
36 {
37 make &&
38 make DESTDIR=$DESTDIR install
39 } 2>&1 | sed 's/h: No such/h: no such/'
40 }
42 genpkg_rules() {
43 case $PACKAGE in
44 wxWidgets28)
45 mkdir -p $fs/usr
46 # Copy libs and contrib libs.
47 cp -a $install/usr/lib/ $fs/usr/
48 # Remove devel files.
49 rm -rf $fs/usr/lib/wx/include
50 DEPENDS="glib glibc-base gcc-lib-base expat zlib atk \
51 gtk+ cairo fontconfig freetype jpeg libpng12 tiff pango \
52 xorg-pixman util-linux-uuid xorg-libSM xorg-libICE xorg-libX11 \
53 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
54 xorg-libXdmcp xorg-libXext glu xorg-libXfixes \
55 xorg-libXinerama xorg-libXrender xorg-libXxf86vm mesa"
56 ;;
57 *-dev)
58 mkdir -p $fs/usr/lib/wx
59 cp -a $install/usr/bin $fs/usr
60 cp -a $install/usr/include $fs/usr
61 # Just copy setup.h and contrib include
62 cp -a $install/usr/lib/wx/include $fs/usr/lib/wx
64 cp -a $install/usr/share $fs/usr
65 rm -r $fs/usr/share/locale
66 DEPENDS="wxWidgets28 gtk+-dev xorg-libXinerama-dev xorg-libSM-dev \
67 xorg-libICE-dev expat zlib"
68 ;;
69 esac
70 }