wok-next annotate wxWidgets28/receipt @ rev 20502
Swap: current mesa (which is developing and change it's version) is just mesa, while old mesa is mesa12 now (will be removed if no one old package require it).
Also, change long names to its origins: libglu-mesa -> glu, libglw-mesa -> glw, all variations with libegl -> mesa-libegl (because it is part of mesa package).
Also, change long names to its origins: libglu-mesa -> glu, libglw-mesa -> glw, all variations with libegl -> mesa-libegl (because it is part of mesa package).
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 16 00:27:34 2018 +0200 (2018-03-16) |
parents | 4396aed7eb01 |
children | cd7906120828 |
rev | line source |
---|---|
al@20464 | 1 # SliTaz package receipt v2. |
al@18521 | 2 |
al@18521 | 3 PACKAGE="wxWidgets28" |
al@18521 | 4 VERSION="2.8.12.1" |
al@18521 | 5 CATEGORY="x-window" |
al@18521 | 6 SHORT_DESC="Cross-platform GUI Library (oldstable version)" |
al@18521 | 7 MAINTAINER="pankso@slitaz.org" |
al@18521 | 8 LICENSE="LGPL" |
al@20464 | 9 WEB_SITE="http://www.wxwidgets.org/" |
al@20464 | 10 |
al@18521 | 11 TARBALL="wxPython-src-$VERSION.tar.bz2" |
al@18521 | 12 WGET_URL="$SF_MIRROR/wxwindows/$TARBALL" |
al@18521 | 13 |
al@18521 | 14 BUILD_DEPENDS="gtk+-dev expat-dev zlib-dev \ |
al@20502 | 15 xorg-dev xorg-xineramaproto glu mesa-dev libpng12-dev tiff-dev \ |
al@20502 | 16 jpeg-dev xorg-libXpm-dev patch xorg-libxshmfence-dev glu-dev" |
al@20464 | 17 SPLIT="wxWidgets28-dev" |
al@18521 | 18 |
al@20464 | 19 compile_rules() { |
al@18521 | 20 sed -i 's|/opt/wx/current/bin/||' wxPython/wx/build/build_options.py |
pascal@19942 | 21 export CXXFLAGS="-Wno-narrowing" |
al@18521 | 22 ./configure \ |
al@18521 | 23 --enable-shared \ |
al@18521 | 24 --enable-unicode \ |
al@18521 | 25 --with-opengl \ |
al@18521 | 26 --with-libpng=sys \ |
al@18521 | 27 --with-libxpm=sys \ |
al@18521 | 28 --with-libjpeg=sys \ |
al@18521 | 29 --with-libtiff=sys \ |
al@18521 | 30 --enable-graphics_ctx \ |
al@18521 | 31 --enable-unicode \ |
al@18521 | 32 $CONFIGURE_ARGS && |
al@18521 | 33 make && |
al@18521 | 34 make DESTDIR=$DESTDIR install && |
al@18521 | 35 cd $src/contrib && |
al@18521 | 36 { |
al@20464 | 37 make && |
al@20464 | 38 make DESTDIR=$DESTDIR install |
al@18521 | 39 } 2>&1 | sed 's/h: No such/h: no such/' |
al@18521 | 40 } |
al@18521 | 41 |
al@20464 | 42 genpkg_rules() { |
al@20464 | 43 case $PACKAGE in |
al@20464 | 44 wxWidgets28) |
al@20464 | 45 mkdir -p $fs/usr |
al@20464 | 46 # Copy libs and contrib libs. |
al@20464 | 47 cp -a $install/usr/lib/ $fs/usr/ |
al@20464 | 48 # Remove devel files. |
al@20464 | 49 rm -rf $fs/usr/lib/wx/include |
al@20464 | 50 DEPENDS="glib glibc-base gcc-lib-base expat zlib atk \ |
al@20464 | 51 gtk+ cairo fontconfig freetype jpeg libpng12 tiff pango \ |
al@20464 | 52 xorg-pixman util-linux-uuid xorg-libSM xorg-libICE xorg-libX11 \ |
al@20464 | 53 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \ |
al@20502 | 54 xorg-libXdmcp xorg-libXext glu xorg-libXfixes \ |
al@20464 | 55 xorg-libXinerama xorg-libXrender xorg-libXxf86vm mesa" |
al@20464 | 56 ;; |
al@20464 | 57 *-dev) |
al@20464 | 58 mkdir -p $fs/usr/lib/wx |
al@20464 | 59 cp -a $install/usr/bin $fs/usr |
al@20464 | 60 cp -a $install/usr/include $fs/usr |
al@20464 | 61 # Just copy setup.h and contrib include |
al@20464 | 62 cp -a $install/usr/lib/wx/include $fs/usr/lib/wx |
al@20464 | 63 |
al@20464 | 64 cp -a $install/usr/share $fs/usr |
al@20464 | 65 rm -r $fs/usr/share/locale |
al@20464 | 66 DEPENDS="wxWidgets28 gtk+-dev xorg-libXinerama-dev xorg-libSM-dev \ |
al@20464 | 67 xorg-libICE-dev expat zlib" |
al@20464 | 68 ;; |
al@20464 | 69 esac |
al@18521 | 70 } |