2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libtool, perl, bsdbuild, gettext, mandoc
|
2022-11-21 17:40:18 +00:00
|
|
|
, libpng, libjpeg, libXinerama, freetype, SDL, libGLU, libGL
|
2020-04-24 23:36:52 +00:00
|
|
|
, libsndfile, portaudio, libmysqlclient, fontconfig
|
|
|
|
}:
|
|
|
|
|
|
|
|
let srcs = import ./srcs.nix { inherit fetchurl; }; in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "libagar";
|
|
|
|
inherit (srcs) version src;
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace configure.in \
|
|
|
|
--replace '_BSD_SOURCE' '_DEFAULT_SOURCE'
|
|
|
|
cat configure.in | ${bsdbuild}/bin/mkconfigure > configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-libtool=${libtool}/bin/libtool"
|
|
|
|
"--enable-nls=yes"
|
|
|
|
"--with-gettext=${gettext}"
|
|
|
|
"--with-jpeg=${libjpeg.dev}"
|
|
|
|
"--with-gl=${libGL}"
|
|
|
|
"--with-mysql=${libmysqlclient}"
|
|
|
|
"--with-manpages=yes"
|
|
|
|
];
|
|
|
|
|
|
|
|
outputs = [ "out" "devdoc" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config libtool gettext ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2022-11-21 17:40:18 +00:00
|
|
|
bsdbuild perl libXinerama SDL libGL libmysqlclient mandoc
|
2020-04-24 23:36:52 +00:00
|
|
|
freetype.dev libpng libjpeg.dev fontconfig portaudio libsndfile
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Cross-platform GUI toolkit";
|
|
|
|
homepage = "http://libagar.org/index.html";
|
|
|
|
license = with licenses; bsd3;
|
|
|
|
maintainers = with maintainers; [ ramkromberg ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|