wok-next view wxWidgets28/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents bce36a298f1e
children 4396aed7eb01
line source
1 # SliTaz package receipt.
3 PACKAGE="wxWidgets28"
4 VERSION="2.8.12.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Cross-platform GUI Library (oldstable version)"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL"
9 TARBALL="wxPython-src-$VERSION.tar.bz2"
10 WEB_SITE="http://www.wxwidgets.org/"
11 WGET_URL="$SF_MIRROR/wxwindows/$TARBALL"
13 DEPENDS="glib glibc-base gcc-lib-base pkg-config expat zlib atk \
14 gtk+ cairo fontconfig freetype jpeg libpng12 tiff pango xorg-pixman util-linux-uuid \
15 xorg-libSM xorg-libICE xorg-libX11 xorg-libXau xorg-libXcomposite \
16 xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext libglu-mesa \
17 xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXxf86vm mesa"
18 BUILD_DEPENDS="gtk+-dev expat-dev zlib-dev \
19 xorg-dev xorg-xineramaproto libglu-mesa mesa-dev libpng12-dev tiff-dev \
20 jpeg-dev xorg-libXpm-dev patch xorg-libxshmfence-dev libglu-mesa-dev"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i 's|/opt/wx/current/bin/||' wxPython/wx/build/build_options.py
26 export CXXFLAGS="-Wno-narrowing"
27 ./configure \
28 --enable-shared \
29 --enable-unicode \
30 --with-opengl \
31 --with-libpng=sys \
32 --with-libxpm=sys \
33 --with-libjpeg=sys \
34 --with-libtiff=sys \
35 --enable-graphics_ctx \
36 --enable-unicode \
37 $CONFIGURE_ARGS &&
38 make &&
39 make DESTDIR=$DESTDIR install &&
40 cd $src/contrib &&
41 {
42 make &&
43 make DESTDIR=$DESTDIR install
44 } 2>&1 | sed 's/h: No such/h: no such/'
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr
51 # Copy libs and contrib libs.
52 cp -a $install/usr/lib/ $fs/usr/
53 # Remove devel files.
54 rm -rf $fs/usr/lib/wx/include
55 }