libagar: init at 1.5

This commit is contained in:
Ram Kromberg 2016-08-25 08:45:10 +03:00
parent 4677ad04c9
commit afa4138a60
4 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{ 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;
};
}

View File

@ -0,0 +1,27 @@
{ stdenv, fetchurl, bsdbuild, libagar, perl, libjpeg, libpng, openssl }:
let srcs = import ./srcs.nix { inherit fetchurl; }; in
stdenv.mkDerivation rec {
name = "libagar-test-${version}";
inherit (srcs) version src;
sourceRoot = "agar-1.5.0/tests";
preConfigure = ''
substituteInPlace configure.in \
--replace '_BSD_SOURCE' '_DEFAULT_SOURCE'
cat configure.in | ${bsdbuild}/bin/mkconfigure > configure
'';
configureFlags = "--with-agar=${libagar}";
buildInputs = [ perl bsdbuild libagar libjpeg libpng openssl ];
meta = with stdenv.lib; {
description = "Tests for libagar";
homepage = http://libagar.org/index.html;
license = with licenses; bsd3;
maintainers = with maintainers; [ ramkromberg ];
platforms = with platforms; linux;
};
}

View File

@ -0,0 +1,10 @@
{ fetchurl }:
rec {
version = "1.5.0";
src = fetchurl {
url = "http://stable.hypertriton.com/agar/agar-${version}.tar.gz";
sha256 = "001wcqk5z67qg0raw9zlwmv62drxiwqykvsbk10q2mrc6knjsd42";
};
}

View File

@ -7904,6 +7904,9 @@ in
libaccounts-glib = callPackage ../development/libraries/libaccounts-glib { };
libagar = callPackage ../development/libraries/libagar { };
libagar_test = callPackage ../development/libraries/libagar/libagar_test.nix { };
libao = callPackage ../development/libraries/libao {
usePulseAudio = config.pulseaudio or true;
inherit (darwin.apple_sdk.frameworks) CoreAudio CoreServices AudioUnit;