]> git.pld-linux.org Git - packages/ocaml-SDL.git/blobdiff - ocaml-SDL.spec
- really disable ocamlopt if not supported (configure sets OCAMLOPT=no while Makefile...
[packages/ocaml-SDL.git] / ocaml-SDL.spec
index e5956211b1984629df53d9339cf43379ed0907a8..ac1f70f2fb224f0c865f099e76929d785c63bd55 100644 (file)
@@ -72,14 +72,16 @@ cp -f /usr/share/automake/config.* support
 %{__aclocal} -I support
 %{__autoconf}
 %configure
-%{__make}
+%{__make} \
+       %{!?with_ocaml_opt:OCAMLOPT=}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs
 
 %{__make} install \
-       OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
+       OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml \
+       %{!?with_ocaml_opt:OCAMLOPT=}
 
 # ocamlfind-specific, useless in rpm
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/ocaml/stublibs/*.owner
This page took 0.03042 seconds and 4 git commands to generate.