]> git.pld-linux.org Git - packages/ocaml-SDL.git/commitdiff
- really disable ocamlopt if not supported (configure sets OCAMLOPT=no while Makefile... auto/th/ocaml-SDL-0.9.1-1
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 22 Jul 2015 18:31:16 +0000 (20:31 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 22 Jul 2015 18:31:16 +0000 (20:31 +0200)
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.026668 seconds and 4 git commands to generate.