forked from mirrors/nixpkgs
Merge pull request #4630 from abbradar/onscripter
add "onscripter-en" package
This commit is contained in:
commit
8904b2b4e3
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, SDL, libogg, libvorbis, enableNativeMidi ? false, fluidsynth ? null }:
|
||||
{ stdenv, fetchurl, SDL, libogg, libvorbis, smpeg, enableNativeMidi ? false, fluidsynth ? null }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "SDL_mixer";
|
||||
|
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "0alrhqgm40p4c92s26mimg9cm1y7rzr6m0p49687jxd9g6130i0n";
|
||||
};
|
||||
|
||||
buildInputs = [SDL libogg libvorbis fluidsynth];
|
||||
buildInputs = [SDL libogg libvorbis fluidsynth smpeg];
|
||||
|
||||
configureFlags = "--disable-music-ogg-shared" + stdenv.lib.optionalString enableNativeMidi " --enable-music-native-midi-gpl";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchsvn, SDL, autoconf, automake, libtool, gtk, m4, pkgconfig, mesa }:
|
||||
{ stdenv, fetchsvn, SDL, autoconf, automake, libtool, gtk, m4, pkgconfig, mesa, makeWrapper }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "smpeg-svn${version}";
|
||||
|
@ -12,7 +12,9 @@ stdenv.mkDerivation rec {
|
|||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
buildInputs = [ SDL autoconf automake libtool gtk m4 pkgconfig mesa ];
|
||||
buildInputs = [ SDL gtk mesa ];
|
||||
|
||||
nativeBuildInputs = [ autoconf automake libtool m4 pkgconfig makeWrapper ];
|
||||
|
||||
preConfigure = ''
|
||||
touch NEWS AUTHORS ChangeLog
|
||||
|
@ -26,6 +28,10 @@ stdenv.mkDerivation rec {
|
|||
-e 's,"SDL_thread.h",<SDL/SDL_thread.h>,' \
|
||||
-e 's,"SDL_types.h",<SDL/SDL_types.h>,' \
|
||||
$out/include/smpeg/*.h
|
||||
|
||||
wrapProgram $out/bin/smpeg-config \
|
||||
--prefix PATH ":" "${pkgconfig}/bin" \
|
||||
--prefix PKG_CONFIG_PATH ":" "${SDL}/lib/pkgconfig"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
34
pkgs/games/onscripter-en/default.nix
Normal file
34
pkgs/games/onscripter-en/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ stdenv, fetchurl
|
||||
, libpng, libjpeg, libogg, libvorbis, freetype, smpeg
|
||||
, SDL, SDL_image, SDL_mixer, SDL_ttf }:
|
||||
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "onscripter-en-20110930";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://unclemion.com/dev/attachments/download/36/${name}-src.tar.bz2";
|
||||
sha256 = "1kzm6d894c0ihgkwhd03x3kaqqz0sb6kf0r86xrrz12y309zfam6";
|
||||
};
|
||||
|
||||
buildInputs = [ libpng libjpeg libogg libvorbis freetype smpeg
|
||||
SDL SDL_image SDL_mixer SDL_ttf
|
||||
];
|
||||
|
||||
configureFlags = [ "--no-werror" ];
|
||||
|
||||
# Without this libvorbisfile.so is not getting linked properly for some reason.
|
||||
NIX_CFLAGS_LINK = [ "-lvorbisfile" ];
|
||||
|
||||
preBuild = ''
|
||||
sed -i 's/.dll//g' Makefile
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Japanese visual novel scripting engine";
|
||||
homepage = "http://dev.haeleth.net/onscripter.shtml";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.unix;
|
||||
maintainers = maintainers.abbradar;
|
||||
};
|
||||
}
|
|
@ -1871,6 +1871,8 @@ let
|
|||
|
||||
opencryptoki = callPackage ../tools/security/opencryptoki { };
|
||||
|
||||
onscripter-en = callPackage ../games/onscripter-en { };
|
||||
|
||||
opendbx = callPackage ../development/libraries/opendbx { };
|
||||
|
||||
opendkim = callPackage ../development/libraries/opendkim { };
|
||||
|
|
Loading…
Reference in a new issue