wok-next diff 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 diff
1.1 --- a/wxWidgets/receipt Wed Feb 28 17:32:31 2018 +0200 1.2 +++ b/wxWidgets/receipt Wed Mar 07 19:43:44 2018 +0200 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="wxWidgets" 1.8 VERSION="3.0.2" 1.9 @@ -6,22 +6,17 @@ 1.10 SHORT_DESC="Cross-platform GUI Library" 1.11 MAINTAINER="pankso@slitaz.org" 1.12 LICENSE="LGPL" 1.13 +WEB_SITE="http://www.wxwidgets.org/" 1.14 + 1.15 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.16 -WEB_SITE="http://www.wxwidgets.org/" 1.17 WGET_URL="$SF_MIRROR/wxwindows/$TARBALL" 1.18 1.19 -DEPENDS="glib glibc-base gcc-lib-base pkg-config expat zlib atk \ 1.20 -gtk+ cairo fontconfig freetype jpeg libpng16 tiff pango xorg-pixman util-linux-uuid \ 1.21 -xorg-libSM xorg-libICE xorg-libX11 xorg-libXau xorg-libXcomposite \ 1.22 -xorg-libXcursor xorg-libXdamage xorg-libXdmcp xorg-libXext libglu-mesa \ 1.23 -xorg-libXfixes xorg-libXinerama xorg-libXrender xorg-libXxf86vm mesa" 1.24 BUILD_DEPENDS="gtk+-dev expat-dev zlib-dev \ 1.25 xorg-dev xorg-xineramaproto libglu-mesa mesa-dev libpng16-dev tiff-dev \ 1.26 jpeg-dev xorg-libXpm-dev patch xorg-libxshmfence-dev libglu-mesa-dev" 1.27 +SPLIT="wxWidgets-dev" 1.28 1.29 -# Rules to configure and make the package. 1.30 -compile_rules() 1.31 -{ 1.32 +compile_rules() { 1.33 sed -i 's/.*<string>/#include <cmath>\n&/;s/(abs(/(std::abs(/' \ 1.34 src/stc/scintilla/src/Editor.cxx 1.35 ./configure \ 1.36 @@ -39,17 +34,37 @@ 1.37 make DESTDIR=$DESTDIR install && 1.38 cd $src/contrib && 1.39 { 1.40 - make && 1.41 - make DESTDIR=$DESTDIR install 1.42 + make && 1.43 + make DESTDIR=$DESTDIR install 1.44 } 2>&1 | sed 's/h: No such/h: no such/' 1.45 } 1.46 1.47 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.48 -genpkg_rules() 1.49 -{ 1.50 - mkdir -p $fs/usr 1.51 - # Copy libs and contrib libs. 1.52 - cp -a $install/usr/lib/ $fs/usr/ 1.53 - # Remove devel files. 1.54 - rm -rf $fs/usr/lib/wx/include 1.55 +genpkg_rules() { 1.56 + case $PACKAGE in 1.57 + wxWidgets) 1.58 + mkdir -p $fs/usr 1.59 + # Copy libs and contrib libs. 1.60 + cp -a $install/usr/lib/ $fs/usr/ 1.61 + # Remove devel files. 1.62 + rm -rf $fs/usr/lib/wx/include 1.63 + DEPENDS="glib glibc-base gcc-lib-base pkg-config expat zlib atk \ 1.64 + gtk+ cairo fontconfig freetype jpeg libpng16 tiff pango \ 1.65 + xorg-pixman util-linux-uuid xorg-libSM xorg-libICE xorg-libX11 \ 1.66 + xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage \ 1.67 + xorg-libXdmcp xorg-libXext libglu-mesa xorg-libXfixes \ 1.68 + xorg-libXinerama xorg-libXrender xorg-libXxf86vm mesa" 1.69 + ;; 1.70 + *-dev) 1.71 + mkdir -p $fs/usr/lib/wx 1.72 + cp -a $install/usr/bin $fs/usr 1.73 + cp -a $install/usr/include $fs/usr 1.74 + # Just copy setup.h and contrib include 1.75 + cp -a $install/usr/lib/wx/include $fs/usr/lib/wx 1.76 + 1.77 + cp -a $install/usr/share $fs/usr 1.78 + rm -r $fs/usr/share/locale 1.79 + DEPENDS="wxWidgets gtk+-dev xorg-libXinerama-dev xorg-libSM-dev \ 1.80 + xorg-libICE-dev expat zlib" 1.81 + ;; 1.82 + esac 1.83 }