forked from mirrors/nixpkgs
Add fresh (unstable) Allegro 5, too
This commit is contained in:
parent
d7ee7709ff
commit
91623b8472
57
pkgs/development/libraries/allegro/5-unstable.nix
Normal file
57
pkgs/development/libraries/allegro/5-unstable.nix
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
|
||||||
|
x@{builderDefsPackage
|
||||||
|
, texinfo, libXext, xextproto, libX11, xproto, libXpm, libXt, libXcursor
|
||||||
|
, alsaLib, cmake, zlib, libpng, libvorbis, libXxf86dga, libXxf86misc
|
||||||
|
, xf86dgaproto, xf86miscproto, xf86vidmodeproto, libXxf86vm, openal, mesa
|
||||||
|
, kbproto, libjpeg, flac
|
||||||
|
, ...}:
|
||||||
|
builderDefsPackage
|
||||||
|
(a :
|
||||||
|
let
|
||||||
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||||
|
[];
|
||||||
|
|
||||||
|
buildInputs = map (n: builtins.getAttr n x)
|
||||||
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
||||||
|
sourceInfo = rec {
|
||||||
|
baseName="allegro";
|
||||||
|
version = "5.1.8";
|
||||||
|
name="${baseName}-${version}";
|
||||||
|
project="alleg";
|
||||||
|
url="mirror://sourceforge/project/${project}/${baseName}/${version}/${name}.tar.gz";
|
||||||
|
hash="18fdppaqaf3g3rcqwhyvsmkzk3y14clz4l8cvmg4hvjgyf011f3i";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
rec {
|
||||||
|
src = a.fetchurl {
|
||||||
|
url = sourceInfo.url;
|
||||||
|
sha256 = "180mhlhgxqh3ynazf9bssnd3riw77fazjw65yr64w0av53y0h1lz";
|
||||||
|
};
|
||||||
|
|
||||||
|
inherit (sourceInfo) name version;
|
||||||
|
inherit buildInputs;
|
||||||
|
|
||||||
|
/* doConfigure should be removed if not needed */
|
||||||
|
phaseNames = ["doCmake" "doMakeInstall"];
|
||||||
|
|
||||||
|
doCmake = a.fullDepEntry (''
|
||||||
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lXext -lX11 -lXpm -lXcursor -lXxf86vm"
|
||||||
|
cmake -D CMAKE_INSTALL_PREFIX=$out -D CMAKE_SKIP_RPATH=ON .
|
||||||
|
'') ["minInit" "doUnpack" "addInputs"];
|
||||||
|
|
||||||
|
makeFlags = [
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "A game programming library";
|
||||||
|
license = "free-noncopyleft"; # giftware
|
||||||
|
maintainers = with a.lib.maintainers;
|
||||||
|
[
|
||||||
|
raskin
|
||||||
|
];
|
||||||
|
platforms = with a.lib.platforms;
|
||||||
|
linux;
|
||||||
|
inherit version;
|
||||||
|
};
|
||||||
|
}) x
|
||||||
|
|
7
pkgs/development/libraries/allegro/5-unstable.upstream
Normal file
7
pkgs/development/libraries/allegro/5-unstable.upstream
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
attribute_name allegro5
|
||||||
|
url http://alleg.sourceforge.net/download.html
|
||||||
|
version_link '/allegro-unstable/.*[.]tar[.].*/download$'
|
||||||
|
SF_redirect
|
||||||
|
do_overwrite () {
|
||||||
|
do_overwrite_just_version
|
||||||
|
}
|
|
@ -6,9 +6,9 @@ x@{builderDefsPackage
|
||||||
, kbproto, libjpeg, flac
|
, kbproto, libjpeg, flac
|
||||||
, ...}:
|
, ...}:
|
||||||
builderDefsPackage
|
builderDefsPackage
|
||||||
(a :
|
(a :
|
||||||
let
|
let
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||||
[];
|
[];
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
buildInputs = map (n: builtins.getAttr n x)
|
||||||
|
@ -38,7 +38,7 @@ rec {
|
||||||
export NIX_LDFLAGS="$NIX_LDFLAGS -lXext -lX11 -lXpm -lXcursor -lXxf86vm"
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lXext -lX11 -lXpm -lXcursor -lXxf86vm"
|
||||||
cmake -D CMAKE_INSTALL_PREFIX=$out -D CMAKE_SKIP_RPATH=ON .
|
cmake -D CMAKE_INSTALL_PREFIX=$out -D CMAKE_SKIP_RPATH=ON .
|
||||||
'') ["minInit" "doUnpack" "addInputs"];
|
'') ["minInit" "doUnpack" "addInputs"];
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -51,11 +51,7 @@ rec {
|
||||||
];
|
];
|
||||||
platforms = with a.lib.platforms;
|
platforms = with a.lib.platforms;
|
||||||
linux;
|
linux;
|
||||||
};
|
inherit version;
|
||||||
passthru = {
|
|
||||||
updateInfo = {
|
|
||||||
downloadPage = "http://sourceforge.net/projects/alleg/files/";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}) x
|
}) x
|
||||||
|
|
||||||
|
|
7
pkgs/development/libraries/allegro/5.upstream
Normal file
7
pkgs/development/libraries/allegro/5.upstream
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
attribute_name allegro5
|
||||||
|
url http://alleg.sourceforge.net/download.html
|
||||||
|
version_link '[.]tar[.].*/download$'
|
||||||
|
SF_redirect
|
||||||
|
do_overwrite () {
|
||||||
|
do_overwrite_just_version
|
||||||
|
}
|
|
@ -4,9 +4,9 @@ x@{builderDefsPackage
|
||||||
, xf86dgaproto, xf86miscproto, xf86vidmodeproto, libXxf86vm, openal, mesa
|
, xf86dgaproto, xf86miscproto, xf86vidmodeproto, libXxf86vm, openal, mesa
|
||||||
, ...}:
|
, ...}:
|
||||||
builderDefsPackage
|
builderDefsPackage
|
||||||
(a :
|
(a :
|
||||||
let
|
let
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
||||||
[];
|
[];
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
buildInputs = map (n: builtins.getAttr n x)
|
||||||
|
@ -36,7 +36,7 @@ rec {
|
||||||
export NIX_LDFLAGS="$NIX_LDFLAGS -lXext -lX11 -lXpm -lXcursor -lXxf86vm"
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lXext -lX11 -lXpm -lXcursor -lXxf86vm"
|
||||||
cmake -D CMAKE_INSTALL_PREFIX=$out -D CMAKE_SKIP_RPATH=ON .
|
cmake -D CMAKE_INSTALL_PREFIX=$out -D CMAKE_SKIP_RPATH=ON .
|
||||||
'') ["minInit" "doUnpack" "addInputs"];
|
'') ["minInit" "doUnpack" "addInputs"];
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -4204,6 +4204,8 @@ let
|
||||||
|
|
||||||
allegro = callPackage ../development/libraries/allegro {};
|
allegro = callPackage ../development/libraries/allegro {};
|
||||||
allegro5 = callPackage ../development/libraries/allegro/5.nix {};
|
allegro5 = callPackage ../development/libraries/allegro/5.nix {};
|
||||||
|
allegro5unstable = callPackage
|
||||||
|
../development/libraries/allegro/5-unstable.nix {};
|
||||||
|
|
||||||
amrnb = callPackage ../development/libraries/amrnb { };
|
amrnb = callPackage ../development/libraries/amrnb { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue