1 { lib, stdenv, fetchurl, pkg-config, libtool, perl, bsdbuild, gettext, mandoc
2 , libpng, libjpeg, xlibsWrapper, libXinerama, freetype, SDL, libGLU, libGL
3 , libsndfile, portaudio, libmysqlclient, fontconfig
6 let srcs = import ./srcs.nix { inherit fetchurl; }; in
9 inherit (srcs) version src;
12 substituteInPlace configure.in \
13 --replace '_BSD_SOURCE' '_DEFAULT_SOURCE'
14 cat configure.in | ${bsdbuild}/bin/mkconfigure > configure
18 "--with-libtool=${libtool}/bin/libtool"
20 "--with-gettext=${gettext}"
21 "--with-jpeg=${libjpeg.dev}"
23 "--with-mysql=${libmysqlclient}"
27 outputs = [ "out" "devdoc" ];
29 nativeBuildInputs = [ pkg-config libtool gettext ];
32 bsdbuild perl xlibsWrapper libXinerama SDL libGL libmysqlclient mandoc
33 freetype.dev libpng libjpeg.dev fontconfig portaudio libsndfile
37 description = "Cross-platform GUI toolkit";
38 homepage = "http://libagar.org/index.html";
39 license = with licenses; bsd3;
40 maintainers = with maintainers; [ ramkromberg ];
41 platforms = with platforms; linux;