wok-next annotate libpcap/receipt @ rev 16042
Add to ARM: sqlite ptunnel libpcap gdbm gc
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Mar 09 16:31:15 2014 +0100 (2014-03-09) |
parents | eda93f9881c4 |
children | c3ad9b49925b |
rev | line source |
---|---|
pankso@117 | 1 # SliTaz package receipt. |
pankso@117 | 2 |
pankso@117 | 3 PACKAGE="libpcap" |
pascal@15323 | 4 VERSION="1.4.0" |
pankso@200 | 5 CATEGORY="development" |
pankso@117 | 6 SHORT_DESC="library for tcpdump" |
pascal@1065 | 7 MAINTAINER="sdaigl@lacitec.on.ca" |
pascal@15323 | 8 LICENSE="BSD" |
pankso@117 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@2086 | 10 WEB_SITE="http://www.tcpdump.org/" |
pankso@117 | 11 WGET_URL="http://www.tcpdump.org/release/$TARBALL"; |
pankso@16042 | 12 HOST_ARCH="i468 arm" |
pankso@117 | 13 |
pascal@15323 | 14 DEPENDS="libnl" |
pascal@15323 | 15 BUILD_DEPENDS="flex bison" |
pascal@15323 | 16 |
pankso@16042 | 17 # Handle cross compilation |
pankso@16042 | 18 case "$ARCH" in |
pankso@16042 | 19 arm) |
pankso@16042 | 20 BUILD_DEPENDS="" |
pankso@16042 | 21 ARCH_ARGS="--with-pcap=linux" |
pankso@16042 | 22 export ac_cv_linux_vers=2 ;; |
pankso@16042 | 23 esac |
pankso@16042 | 24 |
pankso@117 | 25 # Rules to configure and make the package. |
pankso@117 | 26 compile_rules() |
pankso@117 | 27 { |
pankso@16042 | 28 ./configure \ |
pankso@16042 | 29 $CONFIGURE_ARGS $ARCH_ARGS && |
pankso@16042 | 30 make && make install |
pankso@117 | 31 } |
pankso@117 | 32 |
pankso@117 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@117 | 34 genpkg_rules() |
pankso@117 | 35 { |
slaxemulator@7170 | 36 mkdir -p $fs/usr/lib |
pascal@15323 | 37 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@117 | 38 } |
pankso@117 | 39 |