wok-next view wvstreams/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents e9b3d0cd4c89
children 69bb65a67c90
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://code.google.com/archive/p/wvstreams/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/wvstreams/$TARBALL"
14 BUILD_DEPENDS="ppp-dev openssl10-dev xplc-dev readline-dev bash zlib-dev"
15 SPLIT="$PACKAGE-dev"
17 compile_rules() {
18 sed -i 's/wvuid.h"/&\n#include <unistd.h>/' utils/wvuid.cc
19 sed -i 's/ X509V3_EXT_METHOD/ const X509V3_EXT_METHOD/' crypto/wvx509.cc
20 sed -i 's/def MACOS/ 1/' streams/wvatomicfile.cc \
21 ipstreams/wvunixdgsocket.cc
23 CPPFLAGS=-I/usr/include/openssl-1.0 \
24 LDFLAGS=-L/usr/lib/openssl-1.0 \
25 ./configure \
26 --without-dbus \
27 --without-tcl \
28 --without-qt \
29 --without-pam \
30 --without-valgrind \
31 $CONFIGURE_ARGS &&
32 make \
33 -j1 \
34 COPTS="$CFLAGS -fPIC" \
35 CXXOPTS="$CXXFLAGS -fPIC -fpermissive -fno-tree-dce -fno-optimize-sibling-calls" \
36 VERBOSE=1 &&
37 make -j1 install || return 1
39 # --without-dbus still installs the .pc file
40 rm $install/usr/lib/pkgconfig/libwvdbus.pc
41 # --without-qt still installs the .pc file
42 rm $install/usr/lib/pkgconfig/libwvqt.pc
43 }
45 genpkg_rules() {
46 case $PACKAGE in
47 wvstreams)
48 copy @std
49 DEPENDS="openssl10 readline zlib ppp xplc"
50 TAGS="network 3G"
51 ;;
52 *-dev)
53 copy @dev
54 ;;
55 esac
56 }
58 post_remove_wvstreams() {
59 rm -rf "$1/etc/ppp/peers/wvdial"
60 }