wok-next view wvstreams/receipt @ rev 20441

linux, linux-dev: fix mess with i386|i486, update 32bit config
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 24 05:41:11 2018 +0200 (2018-02-24)
parents 4f615ac29298
children e6615350078d
line source
1 # SliTaz package receipt v2.
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://wvstreams.googlecode.com"
11 WGET_URL="http://wvstreams.googlecode.com/files/$TARBALL"
13 BUILD_DEPENDS="ppp-dev openssl-dev xplc-dev readline-dev bash zlib-dev"
14 SPLIT="wvstreams wvstreams-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i 's/wvuid.h"/&\n#include <unistd.h>/' utils/wvuid.cc
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 case $PACKAGE in
37 wvstreams)
38 TAGS="network 3G"
39 DEPENDS="ppp libssl xplc readline"
40 mkdir -p $fs/usr/lib $fs/etc $fs/var
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 cp -a $install/usr/lib/valgrind $fs/usr/lib
44 cp -a $install/usr/sbin $fs/usr
45 cp -a $install/usr/etc/* $fs/etc
46 cp -a $install/usr/var/* $fs/var
47 ;;
48 wvstreams-dev)
49 CAT="development|wvstreams devel files."
50 DEPENDS="pkg-config"
51 mkdir -p $fs/usr/lib
52 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
53 cp -a $install/usr/lib/*.*a $fs/usr/lib
54 cp -a $install/usr/include/ $fs/usr
55 ;;
56 esac
57 }
59 post_remove_wvstreams()
60 {
61 rm -rf "$1/etc/ppp/peers/wvdial"
62 }