opt/wvdial/Pkgfile

42 lines
1.3 KiB
Plaintext
Raw Normal View History

2006-02-23 18:13:51 +01:00
# Description: Weave Dial - PPP dialer
# URL: https://code.google.com/archive/p/wvstreams/
2011-02-02 13:44:37 +01:00
# Maintainer: Juergen Daubert, jue at crux dot nu
2009-09-30 10:28:20 +02:00
# Depends on: ppp
2006-02-23 18:13:51 +01:00
name=wvdial
2009-09-30 10:28:20 +02:00
version=1.61
2016-10-29 12:23:24 +02:00
release=7
source=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/wvstreams/$name-$version.tar.gz \
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/wvstreams/wvstreams-4.6.1.tar.gz \
2016-07-02 13:51:26 +02:00
$name-$version.patch \
wvstreams-4.6.1-openssl.patch \
wvstreams-4.6.1-include_stat.patch \
wvstreams-4.6.1-gcc47.patch \
wvstreams-4.6.1-use-explicit-cast.patch)
2006-02-23 18:13:51 +01:00
build() {
sed -i 's/-D_BSD_SOURCE/-D_DEFAULT_SOURCE/' */wvrules.mk
2009-09-30 10:28:20 +02:00
cd wvstreams-4.6.1
2016-07-02 13:51:26 +02:00
patch -p1 -i $SRC/wvstreams-4.6.1-use-explicit-cast.patch
patch -p1 -i $SRC/wvstreams-4.6.1-openssl.patch
patch -p1 -i $SRC/wvstreams-4.6.1-include_stat.patch
2012-07-31 20:10:21 +02:00
patch -p1 -i $SRC/wvstreams-4.6.1-gcc47.patch
2008-12-29 10:18:33 +01:00
./configure --prefix=/usr --without-{pam,tcl,qt,dbus}
2016-07-02 13:51:26 +02:00
CXXOPTS='-fno-tree-dce -fno-optimize-sibling-calls -fPIC -DPIC -w' \
COPTS='-O2 -fPIC -DPIC' \
make -j1
2006-02-23 18:13:51 +01:00
cd $SRC/$name-$version
2008-12-29 10:18:33 +01:00
patch -p1 -i $SRC/$name-$version.patch
2009-09-30 10:28:20 +02:00
./configure
make -j1 WVS=$SRC/wvstreams-4.6.1
2006-02-23 18:13:51 +01:00
make DESTDIR=$PKG install
}