wok-next view wvstreams/receipt @ rev 11380

Improvement: libwebkit doesn't need -j1 to compile anymore
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Dec 10 03:55:28 2011 +0100 (2011-12-10)
parents c0b6d67ccb7f
children 8d1645a116b7
line source
1 # SliTaz package receipt.
3 PACKAGE="wvstreams"
4 VERSION="4.6.1"
5 CATEGORY="network"
6 SHORT_DESC="makes modem-based connection to Internet"
7 MAINTAINER="jozee@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://wvstreams.googlecode.com"
10 WGET_URL="http://wvstreams.googlecode.com/files/$TARBALL"
11 TAGS="network 3g"
13 DEPENDS="ppp libssl xplc readline"
14 BUILD_DEPENDS="ppp-dev openssl-dev xplc-dev readline-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 sed -i 's/ X509V3_EXT_METHOD/ const X509V3_EXT_METHOD/' crypto/wvx509.cc
21 sed -i 's/def MACOS/ 1/' streams/wvatomicfile.cc \
22 ipstreams/wvunixdgsocket.cc
23 ./configure $CONFIGURE_ARGS \
24 --prefix=/usr \
25 --without-dbus \
26 --without-tcl \
27 --without-qt \
28 --without-pam \
29 --without-valgrind &&
30 make -j1 && make -j1 install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib $fs/etc $fs/var
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
39 cp -a $_pkg/usr/lib/valgrind $fs/usr/lib
40 cp -a $_pkg/usr/sbin $fs/usr
41 cp -a $_pkg/usr/etc/* $fs/etc
42 cp -a $_pkg/usr/var/* $fs/var
43 }
45 post_remove()
46 {
47 rm -rf $1/etc/ppp/peers/wvdial
48 }