2006-02-23 15:26:10 +00:00
|
|
|
# Description: University of Washington's IMAP/mail c-client library
|
|
|
|
# URL: http://www.washington.edu/imap/
|
2008-07-11 09:29:19 +02:00
|
|
|
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
|
2006-02-23 15:26:10 +00:00
|
|
|
# Depends on: openssl
|
|
|
|
|
|
|
|
name=libc-client
|
2008-06-23 09:58:06 +02:00
|
|
|
version=2007b
|
2006-02-23 15:26:10 +00:00
|
|
|
release=1
|
2007-11-18 09:42:57 +01:00
|
|
|
source=(ftp://ftp.cac.washington.edu/imap/imap-$version.tar.Z)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
2008-03-16 11:23:29 +01:00
|
|
|
cd imap-${version::5}
|
2007-11-18 09:42:57 +01:00
|
|
|
sed -i 's/read x/x=y/' Makefile
|
2006-02-23 15:26:10 +00:00
|
|
|
echo y | make slx EXTRACFLAGS="$CFLAGS" \
|
|
|
|
SSLTYPE=unix \
|
|
|
|
SSLDIR=/usr \
|
|
|
|
SSLCERTS=/etc/ssl/certs \
|
|
|
|
IP=6
|
|
|
|
cd c-client
|
|
|
|
gcc -Wl,-soname,$name.so.1 -shared -fPIC -o $name.so.1.0.0 *.o
|
2007-11-18 09:42:57 +01:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
install -d $PKG/usr/{lib,include/c-client}
|
2007-11-18 09:42:57 +01:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
install -m 644 c-client.a $PKG/usr/lib/$name.a
|
|
|
|
install -m 755 $name.so.1.0.0 $PKG/usr/lib
|
|
|
|
ln -s $name.so.1.0.0 $PKG/usr/lib/$name.so.1
|
|
|
|
ln -s $name.so.1.0.0 $PKG/usr/lib/$name.so
|
2007-11-18 09:42:57 +01:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
install -m 644 *.h $PKG/usr/include/c-client
|
|
|
|
install -m 644 linkage.c $PKG/usr/include/c-client
|
|
|
|
rm $PKG/usr/include/c-client/os_*.h
|
|
|
|
}
|