wok-next view wxWidgets/receipt @ rev 20464

Combine receipts (final)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 07 19:43:44 2018 +0200 (2018-03-07)
parents dd145c435e4b
children 4645f1c0184f
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 libglu-mesa mesa-dev libpng16-dev tiff-dev \
16 jpeg-dev xorg-libXpm-dev patch xorg-libxshmfence-dev libglu-mesa-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 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 wxWidgets)
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 pkg-config expat zlib atk \
51 gtk+ cairo fontconfig freetype jpeg libpng16 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 libglu-mesa 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="wxWidgets gtk+-dev xorg-libXinerama-dev xorg-libSM-dev \
67 xorg-libICE-dev expat zlib"
68 ;;
69 esac
70 }