wok view kmod/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 127a849d861d
children b981e20f2719
line source
1 # SliTaz package receipt.
3 PACKAGE="kmod"
4 VERSION="8"
5 CATEGORY="base-system"
6 SHORT_DESC="GNU traditional Unix macro processor."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.xz"
9 WEB_SITE="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/"
10 WGET_URL="http://ftp.kernel.org/pub/linux/utils/kernel/kmod/$TARBALL"
11 PROVIDES="modules-init-tools"
13 DEPENDS="zlib liblzma"
14 BUILD_DEPENDS="zlib-dev liblzma-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --bindir=/sbin \
22 --libdir=/lib \
23 --sysconfdir=/etc \
24 --with-zlib \
25 --with-xz \
26 $CONFIGURE_ARGS &&
27 make && make pkgconfigdir=/usr/lib/pkgconfig install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/lib $fs/bin
34 cp -a $install/lib/*.so* $fs/lib
35 cp -a $install/sbin $fs
36 cd $fs/sbin
37 # The kmod tools symlinks
38 for tool in rmmod insmod modinfo modprobe depmod
39 do
40 ln -s kmod $tool
41 done
42 cd ../bin && ln -s /sbin/kmod lsmod
43 }