2016-08-25 05:45:10 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libtool, perl, bsdbuild, gettext, mandoc
|
|
|
|
, libpng, libjpeg, xlibsWrapper, libXinerama, freetype, SDL, mesa
|
|
|
|
, libsndfile, portaudio, mysql, fontconfig
|
|
|
|
}:
|
|
|
|
|
|
|
|
let srcs = import ./srcs.nix { inherit fetchurl; }; in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libagar-${version}";
|
|
|
|
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=${mesa}"
|
2017-12-25 14:21:31 +00:00
|
|
|
"--with-mysql=${mysql.connector-c}"
|
2016-08-25 05:45:10 +00:00
|
|
|
"--with-manpages=yes"
|
|
|
|
];
|
|
|
|
|
|
|
|
outputs = [ "out" "devdoc" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig libtool gettext ];
|
2017-12-25 14:21:31 +00:00
|
|
|
|
2016-08-25 05:45:10 +00:00
|
|
|
buildInputs = [
|
2017-12-25 14:21:31 +00:00
|
|
|
bsdbuild perl xlibsWrapper libXinerama SDL mesa mysql.connector-c mandoc
|
2016-08-25 05:45:10 +00:00
|
|
|
freetype.dev libpng libjpeg.dev fontconfig portaudio libsndfile
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Cross-platform GUI toolkit";
|
|
|
|
homepage = http://libagar.org/index.html;
|
|
|
|
license = with licenses; bsd3;
|
|
|
|
maintainers = with maintainers; [ ramkromberg ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|