wok view linux-arm-api-headers/receipt @ rev 12653

freeglut, matchbox-desktop-2: add LDFLAGS for Binutils 2.22
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Apr 30 10:01:30 2012 +0200 (2012-04-30)
parents
children 3f1efbe56db8
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-arm-api-headers"
4 VERSION="3.2.14"
5 KBASEVER="${VERSION:0:3}"
6 CATEGORY="development"
7 SHORT_DESC="Kernel headers sanitized for use in userspace."
8 MAINTAINER="devel@slitaz.org"
9 SOURCE="linux"
10 TARBALL="$SOURCE-$KBASEVER.tar.xz"
11 WEB_SITE="http://www.kernel.org/"
12 WGET_URL="http://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL"
14 BUILD_DEPENDS="bash"
16 [ "$KBASEVER" != "$VERSION" ] && PATCH="http://www.kernel.org/pub/linux/kernel/v3.0/patch-$VERSION.xz"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
23 if [ "$KBASEVER" != "$VERSION" ]; then
24 if [ -f $SOURCES_REPOSITORY/$(basename $PATCH) ]; then
25 xzcat $SOURCES_REPOSITORY/$(basename $PATCH) | patch -Np1
26 else
27 wget $PATCH -O $SRC/$(basename $PATCH)
28 xzcat $SRC/$(basename $PATCH) | patch -Np1
29 fi
30 fi
32 make mrproper &&
33 make ARCH=arm headers_check &&
34 make ARCH=arm INSTALL_HDR_PATH=$DESTDIR/usr headers_install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr
41 cp -a $_pkg/usr/include $fs/usr
42 rm -f $(find ${fs} -name .install -or -name ..install.cmd)
43 }
45 # Post install commands for Tazpkg.
46 post_install()
47 {
48 # Removed old linux-headers
49 rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null
50 }