forked from ports/contrib
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
# Description: Event notification library.
|
|
# URL: http://www.monkey.org/~provos/libevent/
|
|
# Maintainer: Danny Rawlins, romster at shortcircuit dot net dot au
|
|
# Packager: Robert McMeekin, rrm3 at rrm3 dot org
|
|
# Depends on:
|
|
|
|
name=libevent
|
|
version=1.3c
|
|
release=2
|
|
source=(http://www.monkey.org/~provos/libevent-$version.tar.gz)
|
|
|
|
build() {
|
|
cd libevent-$version
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--mandir=/usr/man \
|
|
--disable-static \
|
|
--disable-dependency-tracking \
|
|
--with-gnu-ld
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
# no .py extensions in /usr/bin its declared on the first line of
|
|
# the file
|
|
if [ -f $PKG/usr/bin/event_rpcgen.py ]; then
|
|
mv $PKG/usr/bin/event_rpcgen.py $PKG/usr/bin/event_rpcgen
|
|
fi
|
|
|
|
# fix library names since version 1.3b
|
|
rm $PKG/usr/lib/libevent{,-1.3c.1}
|
|
mv $PKG/usr/lib/libevent-1.3c.1.0.3 $PKG/usr/lib/libevent-1.3c.so.1.0.3
|
|
ln -sf /usr/lib/libevent-1.3c.so.1.0.3 $PKG/usr/lib/libevent-1.3c.so.1
|
|
ln -sf /usr/lib/libevent-1.3c.so.1.0.3 $PKG/usr/lib/libevent.so
|
|
|
|
sed -i \
|
|
-e "/^dlname=/s/'libevent-1.3c.1'/'libevent-1.3c.so.1'/" \
|
|
-e "/^library_names=/s/'libevent-1.3c.1.0.3 libevent-1.3c.1 libevent'/'libevent-1.3c.so.1.0.3 libevent-1.3c.so.1 libevent.so'/" \
|
|
$PKG/usr/lib/libevent.la
|
|
}
|
|
|