contrib/libevent/Pkgfile

31 lines
747 B
Plaintext
Raw Normal View History

2006-12-20 18:56:46 +11:00
# Description: Event notification library.
# URL: http://www.monkey.org/~provos/libevent/
2008-03-26 13:45:31 +11:00
# Maintainer: Danny Rawlins, monster dot romster at gmail dot com
2006-12-20 18:56:46 +11:00
# Packager: Robert McMeekin, rrm3 at rrm3 dot org
2007-04-01 18:36:41 +10:00
# Depends on:
2006-12-20 18:56:46 +11:00
name=libevent
2008-03-05 00:43:45 +11:00
version=1.4.2-rc
2007-08-17 05:39:32 +10:00
release=1
2007-02-17 04:04:16 +11:00
source=(http://www.monkey.org/~provos/libevent-$version.tar.gz)
2006-12-20 18:56:46 +11:00
build() {
2007-02-17 04:04:16 +11:00
cd libevent-$version
2006-12-20 18:56:46 +11:00
./configure \
--prefix=/usr \
2007-02-17 04:04:16 +11:00
--mandir=/usr/man \
2007-09-26 07:07:40 +10:00
--disable-static
2006-12-20 18:56:46 +11:00
2007-02-17 04:04:16 +11:00
make
make DESTDIR=$PKG install
2007-07-31 19:50:45 +10:00
# 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
2008-03-05 00:43:45 +11:00
sed -i $PKG/usr/bin/event_rpcgen -e '/_NAME = /s/"event_rpcgen.py"/"event_rpcgen"/'
2007-07-31 19:50:45 +10:00
fi
2006-12-20 18:56:46 +11:00
}