smpeg2: 412 -> unstable-2017-10-18

drop patch not needed anymore

Co-authored-by: Nikolay Amiantov <ab@fmap.me>
This commit is contained in:
Pavol Rusnak 2020-11-28 09:54:45 +01:00
parent 78d2aa55ef
commit c2429bba12
No known key found for this signature in database
GPG key ID: 91F3B339B9A02A3D
3 changed files with 16 additions and 33 deletions

View file

@ -1,21 +1,28 @@
{ stdenv, darwin, fetchsvn, autoconf, automake, pkgconfig, makeWrapper, SDL2 }:
{ stdenv
, autoconf
, automake
, darwin
, fetchsvn
, makeWrapper
, pkg-config
, SDL2
}:
stdenv.mkDerivation rec {
name = "smpeg2-svn${version}";
version = "412";
pname = "smpeg2";
version = "unstable-2017-10-18";
src = fetchsvn {
url = "svn://svn.icculus.org/smpeg/trunk";
rev = version;
sha256 = "1irf2d8f150j8cx8lbb0pz1rijap536crsz0mw871xrh6wd2fd96";
rev = "413";
sha256 = "193amdwgxkb1zp7pgr72fvrdhcg3ly72qpixfxxm85rzz8g2kr77";
};
patches = [
./gcc6.patch
./sdl2.patch
./hufftable-uint_max.patch
];
nativeBuildInputs = [ autoconf automake pkgconfig makeWrapper ];
nativeBuildInputs = [ autoconf automake makeWrapper pkg-config ];
buildInputs = [ SDL2 ]
++ stdenv.lib.optional stdenv.isDarwin darwin.libobjc;
@ -25,10 +32,8 @@ stdenv.mkDerivation rec {
'';
postInstall = ''
sed -e 's,#include "\(SDL.*.h\)",#include <SDL2/\1>,' -i $out/include/smpeg2/*.h
wrapProgram $out/bin/smpeg2-config \
--prefix PATH ":" "${pkgconfig}/bin" \
--prefix PATH ":" "${pkg-config}/bin" \
--prefix PKG_CONFIG_PATH ":" "${SDL2.dev}/lib/pkgconfig"
'';

View file

@ -1,22 +0,0 @@
diff --git a/smpeg2-config.in b/smpeg2-config.in
index 5cce954..0e61939 100644
--- a/smpeg2-config.in
+++ b/smpeg2-config.in
@@ -42,7 +42,7 @@ while test $# -gt 0; do
if test @includedir@ != /usr/include ; then
includes=-I@includedir@
fi
- echo $includes -I@includedir@/smpeg2 `@SDL_CONFIG@ --cflags`
+ echo $includes -I@includedir@/smpeg2 `@SDL2_CONFIG@ --cflags`
;;
--libs)
if [ "`uname`" = "SunOS" ]; then
@@ -50,7 +50,7 @@ while test $# -gt 0; do
else
libdirs="-L@libdir@ @SMPEG_RLD_FLAGS@"
fi
- echo $libdirs -lsmpeg2 `@SDL_CONFIG@ --libs`
+ echo $libdirs -lsmpeg2 `@SDL2_CONFIG@ --libs`
;;
*)
echo "${usage}" 1>&2