wok-next rev 12822

expat: cross-compile for ARM
author Christophe Lincoln <pankso@slitaz.org>
date Tue May 22 00:07:04 2012 +0200 (2012-05-22)
parents 5c1c1e5a76c6
children 0e6f6c60f891
files expat-dev/receipt expat/receipt
line diff
     1.1 --- a/expat-dev/receipt	Mon May 21 23:58:06 2012 +0200
     1.2 +++ b/expat-dev/receipt	Tue May 22 00:07:04 2012 +0200
     1.3 @@ -6,13 +6,15 @@
     1.4  SHORT_DESC="XML parsing library devel files."
     1.5  MAINTAINER="pankso@slitaz.org"
     1.6  WEB_SITE="http://expat.sourceforge.net/"
     1.7 +WANTED="expat"
     1.8 +HOST_ARCH="i486 arm"
     1.9 +
    1.10  DEPENDS="expat"
    1.11 -WANTED="expat"
    1.12  
    1.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.14  genpkg_rules()
    1.15  {
    1.16  	mkdir -p $fs/usr/lib
    1.17 -    cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
    1.18 -    cp -a $_pkg/usr/include $fs/usr
    1.19 +    cp -a $install/usr/lib/*.*a $fs/usr/lib
    1.20 +    cp -a $install/usr/include $fs/usr
    1.21  }
     2.1 --- a/expat/receipt	Mon May 21 23:58:06 2012 +0200
     2.2 +++ b/expat/receipt	Tue May 22 00:07:04 2012 +0200
     2.3 @@ -8,23 +8,22 @@
     2.4  TARBALL="$PACKAGE-$VERSION.tar.gz"
     2.5  WEB_SITE="http://expat.sourceforge.net/"
     2.6  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
     2.7 +HOST_ARCH="i486 arm"
     2.8  
     2.9  # Rules to configure and make the package.
    2.10  compile_rules()
    2.11  {
    2.12 -    cd $src
    2.13 -    ./configure --sysconfdir=/etc --prefix=/usr \
    2.14 -    --mandir=/usr/share/man $CONFIGURE_ARGS
    2.15 -    make
    2.16 -    make DESTDIR=$PWD/_pkg install
    2.17 +	cd $src
    2.18 +	./configure $CONFIGURE_ARGS &&
    2.19 +	make && make DESTDIR=$DESTDIR install
    2.20  }
    2.21  
    2.22  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.23  genpkg_rules()
    2.24  {
    2.25  	mkdir -p $fs/usr/lib $fs/usr/bin
    2.26 -    cp -a $_pkg/usr/bin/* $fs/usr/bin
    2.27 -    cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    2.28 +    cp -a $install/usr/bin/* $fs/usr/bin
    2.29 +    cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.30      # expat so.0 symbolic link.
    2.31      cd $fs/usr/lib
    2.32      ln -s libexpat.so.1.5.2 libexpat.so.0