wok-next view wxWidgets/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | f48456621a9d |
children | 5669e8b3be70 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="wxWidgets"
4 VERSION="3.0.2"
5 CATEGORY="x-window"
6 SHORT_DESC="Cross-platform GUI Library"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="LGPL"
9 WEB_SITE="http://www.wxwidgets.org/"
10 REPOLOGY="wxwidgets"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/wxwindows/$TARBALL"
15 BUILD_DEPENDS="gtk2-dev expat-dev zlib-dev \
16 xorg-dev xorg-xorgproto glu mesa-dev libpng16-dev tiff-dev \
17 jpeg-dev xorg-libXpm-dev patch xorg-libxshmfence-dev glu-dev"
18 SPLIT="$PACKAGE-dev"
20 compile_rules() {
21 sed -i 's/.*<string>/#include <cmath>\n&/;s/(abs(/(std::abs(/' \
22 src/stc/scintilla/src/Editor.cxx
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=$install install
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 wxWidgets)
41 mkdir -p $fs/usr
42 # Copy libs and contrib libs.
43 cp -a $install/usr/lib/ $fs/usr/
44 # Remove devel files.
45 rm -rf $fs/usr/lib/wx/include
46 DEPENDS="glib glibc-base gcc-lib-base expat zlib atk \
47 gtk2 cairo fontconfig freetype jpeg libpng16 tiff pango \
48 xorg-pixman util-linux-uuid xorg-libSM xorg-libICE xorg-libX11 \
49 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
50 xorg-libXdmcp xorg-libXext glu xorg-libXfixes \
51 xorg-libXinerama xorg-libXrender xorg-libXxf86vm mesa"
52 ;;
53 *-dev)
54 mkdir -p $fs/usr/lib/wx
55 cp -a $install/usr/bin $fs/usr
56 cp -a $install/usr/include $fs/usr
57 # Just copy setup.h and contrib include
58 cp -a $install/usr/lib/wx/include $fs/usr/lib/wx
60 cp -a $install/usr/share $fs/usr
61 rm -r $fs/usr/share/locale
62 DEPENDS="wxWidgets gtk2-dev xorg-libXinerama-dev xorg-libSM-dev \
63 xorg-libICE-dev expat zlib"
64 ;;
65 esac
66 }