wok-6.x diff wbar2/receipt @ rev 16172
Add mesa-wayland
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 30 16:38:04 2014 +0200 (2014-03-30) |
parents | 55f7cc28d25f |
children | 6dd5b7ae0e11 |
line diff
1.1 --- a/wbar2/receipt Sat Dec 21 22:48:29 2013 +0100 1.2 +++ b/wbar2/receipt Sun Mar 30 16:38:04 2014 +0200 1.3 @@ -12,16 +12,24 @@ 1.4 WGET_URL="http://wbar.googlecode.com/files/$TARBALL" 1.5 CONFIG_FILES="/etc/default/wbar/wbar.cfg" 1.6 TAGS="desktop launchbar" 1.7 +HOST_ARCH="i486 arm" 1.8 1.9 -DEPENDS="ttf-dejavu imlib2 libglade gtk+" 1.10 -BUILD_DEPENDS="intltool imlib2-dev libglade-dev" 1.11 +DEPENDS="ttf-dejavu imlib2 gtk+ libglade" 1.12 +BUILD_DEPENDS="imlib2-dev" 1.13 + 1.14 +# Handle cross compilation 1.15 +case "$ARCH" in 1.16 + i?86) BUILD_DEPENDS="$BUILD_DEPENDS gtk+-dev libglade-dev intltool" ;; 1.17 + arm*) ARCH_ARGS="--disable-wbar-config" ;; 1.18 +esac 1.19 1.20 # Rules to configure and make the package. 1.21 compile_rules() 1.22 { 1.23 - cd $src 1.24 - ./configure --exec-prefix=/usr \ 1.25 - --sysconfdir=/etc && 1.26 + ./configure \ 1.27 + --exec-prefix=/usr \ 1.28 + --sysconfdir=/etc \ 1.29 + $CONFIGURE_ARGS ${ARCH_ARGS} && 1.30 make && make install 1.31 } 1.32 1.33 @@ -29,12 +37,13 @@ 1.34 genpkg_rules() 1.35 { 1.36 mkdir -p $fs/usr/share $fs/usr/share/applications 1.37 - 1.38 cp -a $install/usr/bin $fs/usr 1.39 - cp -a $install/etc $fs/ 1.40 - cp -a $stuff/wbar.cfg $fs/etc/wbar.d 1.41 + cp -a $install/etc $fs 1.42 cp -a $install/usr/share/pixmaps $fs/usr/share 1.43 cp -a $install/usr/share/wbar $fs/usr/share 1.44 - 1.45 mv $fs/etc/wbar.d/wbar.desktop $fs/usr/share/applications 1.46 + case "$ARCH" in 1.47 + i?86) cp -a $stuff/wbar.cfg $fs/etc/wbar.d ;; 1.48 + arm*) cp -a $stuff/wbar-arm.cfg $fs/etc/wbar.d/wbar.cfg ;; 1.49 + esac 1.50 }