1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/pkgs/development/libraries/libagar/default.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

2016-08-25 06:45:10 +01: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}"
"--with-mysql=yes"
"--with-manpages=yes"
];
outputs = [ "out" "devdoc" ];
nativeBuildInputs = [ pkgconfig libtool gettext ];
buildInputs = [
bsdbuild perl xlibsWrapper libXinerama SDL mesa mysql.client mandoc
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;
};
}