wok-next view wxWidgets28/receipt @ rev 21080

Update tiff (4.0.10): libs -> into libtiff, apps -> into tiff
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 24 02:07:02 2018 +0200 (2018-12-24)
parents 5669e8b3be70
children 82b613cfd1e0
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="devel@slitaz.org"
8 LICENSE="LGPL"
9 WEB_SITE="http://www.wxwidgets.org/"
10 REPOLOGY="wxwidgets28"
12 TARBALL="wxPython-src-$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 libpng12-dev tiff-dev \
17 jpeg-dev libxpm-dev patch libxshmfence-dev glu-dev"
18 SPLIT="$PACKAGE-dev"
20 compile_rules() {
21 sed -i 's|/opt/wx/current/bin/||' wxPython/wx/build/build_options.py
22 export CXXFLAGS="-Wno-narrowing"
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 cd $src/contrib &&
37 {
38 make &&
39 make DESTDIR=$install install
40 } 2>&1 | sed 's/h: No such/h: no such/'
41 }
43 genpkg_rules() {
44 case $PACKAGE in
45 wxWidgets28)
46 mkdir -p $fs/usr
47 # Copy libs and contrib libs.
48 cp -a $install/usr/lib/ $fs/usr/
49 # Remove devel files.
50 rm -rf $fs/usr/lib/wx/include
51 DEPENDS="glib glibc-base gcc-lib-base expat zlib atk \
52 gtk2 cairo fontconfig freetype jpeg libpng12 libtiff pango \
53 pixman util-linux-uuid libsm libice libx11 \
54 libxau libxcomposite libxcursor libxdamage \
55 libxdmcp libxext glu libxfixes \
56 libxinerama libxrender libxxf86vm mesa"
57 ;;
58 *-dev)
59 mkdir -p $fs/usr/lib/wx
60 cp -a $install/usr/bin $fs/usr
61 cp -a $install/usr/include $fs/usr
62 # Just copy setup.h and contrib include
63 cp -a $install/usr/lib/wx/include $fs/usr/lib/wx
65 cp -a $install/usr/share $fs/usr
66 rm -r $fs/usr/share/locale
67 DEPENDS="wxWidgets28 gtk2-dev libxinerama-dev libsm-dev \
68 libice-dev expat zlib"
69 ;;
70 esac
71 }