2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, libtool, perl, bsdbuild, gettext, mandoc
|
2019-11-10 17:44:34 +01:00
|
|
|
, libpng, libjpeg, xlibsWrapper, libXinerama, freetype, SDL, libGLU, libGL
|
2019-08-17 20:24:29 +02:00
|
|
|
, libsndfile, portaudio, libmysqlclient, fontconfig
|
2016-08-25 07:45:10 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
let srcs = import ./srcs.nix { inherit fetchurl; }; in
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "libagar";
|
2016-08-25 07:45:10 +02:00
|
|
|
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}"
|
2019-11-10 17:44:34 +01:00
|
|
|
"--with-gl=${libGL}"
|
2019-08-17 20:24:29 +02:00
|
|
|
"--with-mysql=${libmysqlclient}"
|
2016-08-25 07:45:10 +02:00
|
|
|
"--with-manpages=yes"
|
|
|
|
];
|
|
|
|
|
|
|
|
outputs = [ "out" "devdoc" ];
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config libtool gettext ];
|
2017-12-25 15:21:31 +01:00
|
|
|
|
2016-08-25 07:45:10 +02:00
|
|
|
buildInputs = [
|
2019-11-10 17:44:34 +01:00
|
|
|
bsdbuild perl xlibsWrapper libXinerama SDL libGL libmysqlclient mandoc
|
2016-08-25 07:45:10 +02:00
|
|
|
freetype.dev libpng libjpeg.dev fontconfig portaudio libsndfile
|
|
|
|
];
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2016-08-25 07:45:10 +02:00
|
|
|
description = "Cross-platform GUI toolkit";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://libagar.org/index.html";
|
2016-08-25 07:45:10 +02:00
|
|
|
license = with licenses; bsd3;
|
|
|
|
maintainers = with maintainers; [ ramkromberg ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|