wok-next view wxWidgets/receipt @ rev 20518
wordwarvi:typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 23 09:21:17 2018 +0100 (2018-03-23) |
parents | c0521c689857 |
children | cd7906120828 |
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="pankso@slitaz.org"
8 LICENSE="LGPL"
9 WEB_SITE="http://www.wxwidgets.org/"
11 TARBALL="$PACKAGE-$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 libpng16-dev tiff-dev \
16 jpeg-dev xorg-libXpm-dev patch xorg-libxshmfence-dev glu-dev"
17 SPLIT="wxWidgets-dev"
19 compile_rules() {
20 sed -i 's/.*<string>/#include <cmath>\n&/;s/(abs(/(std::abs(/' \
21 src/stc/scintilla/src/Editor.cxx
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 }
37 genpkg_rules() {
38 case $PACKAGE in
39 wxWidgets)
40 mkdir -p $fs/usr
41 # Copy libs and contrib libs.
42 cp -a $install/usr/lib/ $fs/usr/
43 # Remove devel files.
44 rm -rf $fs/usr/lib/wx/include
45 DEPENDS="glib glibc-base gcc-lib-base expat zlib atk \
46 gtk+ cairo fontconfig freetype jpeg libpng16 tiff pango \
47 xorg-pixman util-linux-uuid xorg-libSM xorg-libICE xorg-libX11 \
48 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
49 xorg-libXdmcp xorg-libXext glu xorg-libXfixes \
50 xorg-libXinerama xorg-libXrender xorg-libXxf86vm mesa"
51 ;;
52 *-dev)
53 mkdir -p $fs/usr/lib/wx
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/include $fs/usr
56 # Just copy setup.h and contrib include
57 cp -a $install/usr/lib/wx/include $fs/usr/lib/wx
59 cp -a $install/usr/share $fs/usr
60 rm -r $fs/usr/share/locale
61 DEPENDS="wxWidgets gtk+-dev xorg-libXinerama-dev xorg-libSM-dev \
62 xorg-libICE-dev expat zlib"
63 ;;
64 esac
65 }