]> git.pld-linux.org Git - packages/tmw.git/commitdiff
- enable OpenGL support
authorshadzik <shadzik@pld-linux.org>
Thu, 26 Oct 2006 15:02:28 +0000 (15:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- rel 2

Changed files:
    tmw.spec -> 1.20

tmw.spec

index f9080936f4aac4b071a4a598b88994ac1d9991a1..2887316700012f7753d89b5372c390a9975acc68 100644 (file)
--- a/tmw.spec
+++ b/tmw.spec
@@ -1,14 +1,17 @@
+%bcond_without opengl  #disable OpenGL support
 Summary:       A free Open Source 2D MMORPG
 Summary(pl):   Darmowa gra typu MMORPG 2D
 Name:          tmw
 Version:       0.0.21
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         X11/Applications/Games
 Source0:       http://dl.sourceforge.net/themanaworld/%{name}-%{version}.tar.gz
 # Source0-md5: e13a748b8e279fa694db5eb14ac4a8a9
 Patch0:                %{name}-desktop.patch
+Patch1:                %{name}-OpenGL.patch
 URL:           http://themanaworld.org/
+%{?with_opengl:BuildRequires:  OpenGL-devel}
 BuildRequires: SDL_image-devel
 BuildRequires: SDL_mixer-devel
 BuildRequires: SDL_net-devel
@@ -55,13 +58,15 @@ Online.
 %prep
 %setup -q
 %patch0 -p1
+%{?with_opengl:%patch1 -p0}
 
 %build
 %{__aclocal}
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+       %{?with_opengl:--with-opengl}
 %{__make}
 
 %install
This page took 0.060118 seconds and 4 git commands to generate.