2007-01-29 23:11:29 +01:00
|
|
|
# Description: Multi-platform multi-network peer-to-peer client.
|
|
|
|
# URL: http://mldonkey.sourceforge.net/
|
2009-05-16 01:44:26 +02:00
|
|
|
# Maintainer: Jose V Beneyto, sepen at crux dot nu
|
|
|
|
# Packager: Jose V Beneyto, sepen at crux dot nu
|
2017-04-11 19:41:49 +02:00
|
|
|
# Depends on: bzip2
|
2009-05-16 01:44:26 +02:00
|
|
|
# Nice to have: libgd
|
2006-11-22 02:40:25 +01:00
|
|
|
|
|
|
|
name=mldonkey
|
2017-04-11 19:41:49 +02:00
|
|
|
version=3.1.5
|
2008-08-18 19:48:19 +02:00
|
|
|
release=1
|
2010-11-12 12:03:50 +01:00
|
|
|
source=(http://download.sourceforge.net/$name/$name-$version.tar.bz2 \
|
2007-05-15 02:09:31 +02:00
|
|
|
mlnetd)
|
2006-11-22 02:40:25 +01:00
|
|
|
|
|
|
|
build() {
|
2017-04-11 19:41:49 +02:00
|
|
|
local ocamlsrc="$PKGMK_SOURCE_DIR/ocaml-3.12.0.tar.gz"
|
|
|
|
if [ ! -f "$ocamlsrc" ]; then
|
|
|
|
wget -c -O "$ocamlsrc".partial http://caml.inria.fr/distrib/ocaml-3.12/ocaml-3.12.0.tar.gz
|
|
|
|
mv "$ocamlsrc".partial "$ocamlsrc"
|
|
|
|
fi
|
|
|
|
|
2008-08-18 19:48:19 +02:00
|
|
|
cd $name-$version
|
2017-04-11 19:41:49 +02:00
|
|
|
ln -s "$ocamlsrc" patches/
|
2007-05-15 02:09:31 +02:00
|
|
|
./configure --prefix=/usr \
|
2007-06-22 17:00:12 +02:00
|
|
|
--disable-gui \
|
2010-09-27 07:14:32 +00:00
|
|
|
--disable-bittorrent \
|
2017-04-11 19:41:49 +02:00
|
|
|
--enable-batch \
|
2007-06-22 17:00:12 +02:00
|
|
|
--disable-debug
|
2007-05-15 02:09:31 +02:00
|
|
|
make
|
2008-08-18 19:48:19 +02:00
|
|
|
make DESTDIR=$PKG install
|
|
|
|
install -d $PKG/var/mlnet
|
|
|
|
install -D -m 0755 $SRC/mlnetd $PKG/etc/rc.d/mlnetd
|
2006-11-22 02:40:25 +01:00
|
|
|
}
|