Added flags to compile amule daemon and remote gui
svn path=/nixpkgs/trunk/; revision=22334
This commit is contained in:
parent
0f77615483
commit
4719a2ed3c
@ -1,7 +1,17 @@
|
|||||||
{ fetchurl, stdenv, zlib, wxGTK, perl, cryptopp, libupnp, gettext
|
{ monolithic ? true # build monolithic amule
|
||||||
|
, daemon ? false # build amule daemon
|
||||||
|
, httpServer ? false # build web interface for the daemon
|
||||||
|
, client ? false # build amule remote gui
|
||||||
|
, fetchurl, stdenv, zlib, wxGTK, perl, cryptopp, libupnp, gettext, libpng ? null
|
||||||
, pkgconfig, makeWrapper }:
|
, pkgconfig, makeWrapper }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
assert httpServer -> libpng != null;
|
||||||
|
with stdenv;
|
||||||
|
let
|
||||||
|
# Enable/Disable Feature
|
||||||
|
edf = enabled: flag: if enabled then "--enable-" + flag else "--disable-" + flag;
|
||||||
|
in
|
||||||
|
mkDerivation rec {
|
||||||
name = "aMule-2.2.6";
|
name = "aMule-2.2.6";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -10,9 +20,18 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ zlib wxGTK perl cryptopp libupnp gettext pkgconfig makeWrapper ];
|
[ zlib wxGTK perl cryptopp libupnp gettext pkgconfig makeWrapper ]
|
||||||
|
++ lib.optional httpServer libpng;
|
||||||
|
|
||||||
configureFlags = "--with-crypto-prefix=${cryptopp}";
|
configureFlags = ''
|
||||||
|
--with-crypto-prefix=${cryptopp}
|
||||||
|
--disable-debug
|
||||||
|
--enable-optimize
|
||||||
|
${edf monolithic "monolithic"}
|
||||||
|
${edf daemon "amule-daemon"}
|
||||||
|
${edf client "amule-gui"}
|
||||||
|
${edf httpServer "webserver"}
|
||||||
|
'';
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
sed -i "src/libs/ec/file_generator.pl" \
|
sed -i "src/libs/ec/file_generator.pl" \
|
||||||
@ -21,9 +40,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# aMule will try to `dlopen' libupnp and libixml, so help it
|
# aMule will try to `dlopen' libupnp and libixml, so help it
|
||||||
# find them.
|
# find them.
|
||||||
postInstall = ''
|
postInstall = lib.optionalString monolithic ''
|
||||||
wrapProgram "$out/bin/amule" \
|
wrapProgram "$out/bin/amule" --prefix LD_LIBRARY_PATH ":" "${libupnp}/lib"
|
||||||
--prefix LD_LIBRARY_PATH ":" "${libupnp}/lib"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
@ -44,6 +62,6 @@ stdenv.mkDerivation rec {
|
|||||||
license = "GPLv2+";
|
license = "GPLv2+";
|
||||||
|
|
||||||
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
platforms = stdenv.lib.platforms.gnu; # arbitrary choice
|
||||||
maintainers = [ stdenv.lib.maintainers.ludo ];
|
maintainers = [ stdenv.lib.maintainers.ludo stdenv.lib.maintainers.phreedom ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -375,7 +375,7 @@ let
|
|||||||
|
|
||||||
amule = import ../tools/networking/p2p/amule {
|
amule = import ../tools/networking/p2p/amule {
|
||||||
inherit fetchurl stdenv zlib perl cryptopp gettext libupnp makeWrapper
|
inherit fetchurl stdenv zlib perl cryptopp gettext libupnp makeWrapper
|
||||||
wxGTK pkgconfig;
|
wxGTK pkgconfig libpng;
|
||||||
};
|
};
|
||||||
|
|
||||||
aria = builderDefsPackage (import ../tools/networking/aria) {
|
aria = builderDefsPackage (import ../tools/networking/aria) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user