wok-next diff wayland/receipt @ rev 20361

cream, kazehakase: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Nov 23 18:14:17 2017 +0100 (2017-11-23)
parents 351577bd7833
children 0e7893ac206d
line diff
     1.1 --- a/wayland/receipt	Wed Apr 23 17:30:56 2014 +0200
     1.2 +++ b/wayland/receipt	Thu Nov 23 18:14:17 2017 +0100
     1.3 @@ -1,41 +1,37 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="wayland"
     1.8 -VERSION="1.4.0"
     1.9 +VERSION="1.14.0"
    1.10  CATEGORY="x-window"
    1.11 -SHORT_DESC="Wayland simpler X display server protocol."
    1.12 +SHORT_DESC="Wayland simpler X display server protocol"
    1.13  MAINTAINER="pankso@slitaz.org"
    1.14  LICENSE="MIT"
    1.15 +WEB_SITE="https://wayland.freedesktop.org/"
    1.16 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/wayland.html"
    1.17 +
    1.18  TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.19 -WEB_SITE="http://www.slitaz.org/"
    1.20  WGET_URL="http://wayland.freedesktop.org/releases/$TARBALL"
    1.21 -HOST_ARCH="i486 arm"
    1.22  
    1.23 -# WARNING: wayland must be installed in chroot since build host 
    1.24 -# wayland-scanner is used for cross compilation to ARM
    1.25 -DEPENDS="libffi expat"
    1.26 -BUILD_DEPENDS="libffi-dev expat-dev"
    1.27 +BUILD_DEPENDS="libffi-dev expat-dev libxml2-dev"
    1.28 +SPLIT="wayland-dev"
    1.29  
    1.30 -# Handle cross compilation
    1.31 -case "$ARCH" in
    1.32 -	arm*) ARCH_ARGS="--disable-scanner" ;;
    1.33 -esac
    1.34 -
    1.35 -# Rules to configure and make the package.
    1.36 -compile_rules()
    1.37 -{
    1.38 +compile_rules() {
    1.39  	./configure \
    1.40  		--prefix=/usr \
    1.41  		--disable-documentation \
    1.42 -		${CONFIGURE_ARGS} ${ARCH_ARGS} &&
    1.43 +		$CONFIGURE_ARGS &&
    1.44  	make && make install
    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/lib $fs/usr/share
    1.51 -	[ -d "$install/usr/bin" ] && cp -a $install/usr/bin $fs/usr
    1.52 -	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.53 -	cp -a $install/usr/share/wayland $fs/usr/share
    1.54 +genpkg_rules() {
    1.55 +	case $PACKAGE in
    1.56 +		wayland)
    1.57 +			copy @std
    1.58 +			DEPENDS="expat libffi libxml2"
    1.59 +			;;
    1.60 +		*-dev)
    1.61 +			copy @dev
    1.62 +			DEPENDS="wayland libffi-dev"
    1.63 +			;;
    1.64 +	esac
    1.65  }