2021-01-21 17:00:13 +00:00
|
|
|
{lib, stdenv, fetchurl, ncurses, automake}:
|
2005-08-24 14:26:32 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2013-12-18 11:30:58 +00:00
|
|
|
name = "aalib-1.4rc5";
|
2013-12-18 11:33:12 +00:00
|
|
|
|
2005-08-24 14:26:32 +00:00
|
|
|
src = fetchurl {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "mirror://sourceforge/aa-project/aalib-1.4rc5.tar.gz";
|
2013-12-18 11:30:58 +00:00
|
|
|
sha256 = "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv";
|
2005-08-24 14:26:32 +00:00
|
|
|
};
|
2010-09-01 08:34:53 +00:00
|
|
|
|
2017-07-11 09:14:14 +00:00
|
|
|
outputs = [ "bin" "dev" "out" "man" "info" ];
|
2015-10-20 22:20:52 +00:00
|
|
|
setOutputFlags = false; # Doesn't support all the flags
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
patches = lib.optionals stdenv.isDarwin [ ./darwin.patch ];
|
2015-10-20 22:20:52 +00:00
|
|
|
|
2010-09-01 08:34:53 +00:00
|
|
|
# The fuloong2f is not supported by aalib still
|
|
|
|
preConfigure = ''
|
|
|
|
cp ${automake}/share/automake*/config.{sub,guess} .
|
2015-10-20 22:20:52 +00:00
|
|
|
configureFlagsArray+=(
|
|
|
|
"--bindir=$bin/bin"
|
|
|
|
"--includedir=$dev/include"
|
|
|
|
"--libdir=$out/lib"
|
|
|
|
)
|
2010-09-01 08:34:53 +00:00
|
|
|
'';
|
|
|
|
|
2013-12-18 11:33:12 +00:00
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--without-x" "--with-ncurses=${ncurses.dev}" ];
|
2013-10-05 14:22:46 +00:00
|
|
|
|
2015-10-20 22:20:52 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $dev/bin
|
|
|
|
mv $bin/bin/aalib-config $dev/bin/aalib-config
|
2016-02-01 17:16:50 +00:00
|
|
|
substituteInPlace $out/lib/libaa.la --replace "${ncurses.dev}/lib" "${ncurses.out}/lib"
|
2015-10-20 22:20:52 +00:00
|
|
|
'';
|
2015-04-01 20:29:38 +00:00
|
|
|
|
2013-10-05 14:22:46 +00:00
|
|
|
meta = {
|
|
|
|
description = "ASCII art graphics library";
|
2021-01-21 17:00:13 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.lgpl2;
|
2013-10-05 14:22:46 +00:00
|
|
|
};
|
2005-08-24 14:26:32 +00:00
|
|
|
}
|