wok-next view wxWidgets/receipt @ rev 21111

gdbm: split to "libpkg - pkg - pkg-dev"; fix some symlinks
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jan 11 14:45:46 2019 +0200 (2019-01-11)
parents 75632eca5b07
children
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 xorgproto glu mesa-dev libpng-dev tiff-dev \
17 jpeg-dev libxpm-dev patch 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 libcairo fontconfig freetype jpeg libpng libtiff pango \
48 pixman util-linux-uuid libsm libice libx11 \
49 libxau libxcomposite libxcursor libxdamage \
50 libxdmcp libxext glu libxfixes \
51 libxinerama libxrender 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 libxinerama-dev libsm-dev \
63 libice-dev expat zlib"
64 ;;
65 esac
66 }