mirror of
https://abf.rosa.ru/djam/SDL2.git
synced 2025-04-21 20:34:45 +00:00
build with cmake
This commit is contained in:
parent
d2b62384db
commit
4d50ce73b0
3 changed files with 29 additions and 15 deletions
15
SDL2-2.0.0-cmake.patch
Normal file
15
SDL2-2.0.0-cmake.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
--- a/CMakeLists.txt 2013-08-12 06:57:53.000000000 +0400
|
||||
+++ b/CMakeLists.txt 2013-09-12 15:08:44.000000000 +0400
|
||||
@@ -143,9 +143,9 @@
|
||||
set(CMAKE_C_FLAGS "$ENV{CFLAGS}")
|
||||
list(APPEND EXTRA_CFLAGS "$ENV{CFLAGS}")
|
||||
endif("$ENV{CFLAGS}" STREQUAL "")
|
||||
-if(NOT ("$ENV{CFLAGS}" STREQUAL "")) # Hackish, but does the trick on Win32
|
||||
- list(APPEND EXTRA_LDFLAGS "$ENV{LDFLAGS}")
|
||||
-endif(NOT ("$ENV{CFLAGS}" STREQUAL ""))
|
||||
+#if(NOT ("$ENV{CFLAGS}" STREQUAL "")) # Hackish, but does the trick on Win32
|
||||
+# list(APPEND EXTRA_LDFLAGS "$ENV{LDFLAGS}")
|
||||
+#endif(NOT ("$ENV{CFLAGS}" STREQUAL ""))
|
||||
|
||||
# Those are used for pkg-config and friends, so that the SDL2.pc, sdl2-config,
|
||||
# etc. are created correctly.
|
BIN
SDL2-2.0.0.tar.gz
Normal file
BIN
SDL2-2.0.0.tar.gz
Normal file
Binary file not shown.
29
SDL2.spec
29
SDL2.spec
|
@ -6,12 +6,12 @@
|
|||
Summary: Simple DirectMedia Layer
|
||||
Name: SDL2
|
||||
Version: 2.0.0
|
||||
Release: 1
|
||||
Release: 2
|
||||
License: Zlib
|
||||
Group: System/Libraries
|
||||
Url: http://www.libsdl.org/
|
||||
Source0: http://www.libsdl.org/release/%{name}-%{version}.tar.gz
|
||||
|
||||
Patch0: cmake.patch
|
||||
BuildRequires: nas-devel
|
||||
BuildRequires: pkgconfig(alsa)
|
||||
BuildRequires: pkgconfig(dbus-1)
|
||||
|
@ -28,6 +28,7 @@ BuildRequires: pkgconfig(xrandr)
|
|||
BuildRequires: pkgconfig(xscrnsaver)
|
||||
BuildRequires: pkgconfig(xxf86vm)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
BuildRequires: cmake
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
|
@ -73,25 +74,23 @@ applications which will use %{name}.
|
|||
|
||||
%prep
|
||||
%setup -q
|
||||
%apply_patches
|
||||
|
||||
%build
|
||||
%configure2_5x \
|
||||
--disable-static \
|
||||
--disable-rpath \
|
||||
--disable-esd \
|
||||
--disable-oss \
|
||||
--enable-pulseaudio \
|
||||
--enable-pulseaudio-shared \
|
||||
--enable-alsa \
|
||||
--enable-alsa-shared
|
||||
#configure2_5x \
|
||||
# --disable-static \
|
||||
# --disable-esd \
|
||||
# --disable-oss \
|
||||
# --enable-pulseaudio \
|
||||
# --enable-pulseaudio-shared \
|
||||
# --enable-alsa \
|
||||
# --enable-alsa-shared
|
||||
|
||||
sed -i s,"objdir=.libs","objdir=",g libtool
|
||||
%cmake
|
||||
%make
|
||||
|
||||
%install
|
||||
rm build/libSDL2.la
|
||||
cp build/libSDL2.lai build/libSDL2.la
|
||||
%makeinstall_std
|
||||
%makeinstall_std -C build
|
||||
|
||||
rm -f %{buildroot}%{_libdir}/*.a
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue