aballier    15/03/17 15:58:49

  Added:                ocamlopt.patch
  Log:
  fix build without ocamlopt, bug #543532
  
  Signed-off-by: aball...@gentoo.org
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
160F534A)

Revision  Changes    Path
1.1                  dev-ml/ocamlsdl/files/ocamlopt.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlsdl/files/ocamlopt.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ml/ocamlsdl/files/ocamlopt.patch?rev=1.1&content-type=text/plain

Index: ocamlopt.patch
===================================================================
Index: ocamlsdl-0.9.1/src/Makefile
===================================================================
--- ocamlsdl-0.9.1.orig/src/Makefile
+++ ocamlsdl-0.9.1/src/Makefile
@@ -17,7 +17,7 @@ gfx_MODULES    = sdlgfx
 
 TARGETS  = sdl.cma $(patsubst %,sdl%.cma,$(PARTS))
 TARGETS += libsdlstub.$(A) $(patsubst %,libsdl%stub.$(A),$(PARTS))
-ifdef OCAMLOPT
+ifneq ($(OCAMLOPT),no)
 TARGETS += sdl.cmxa $(patsubst %,sdl%.cmxa,$(PARTS))
 endif
 
@@ -87,7 +87,7 @@ ifdef OCAMLFIND
 install-findlib :
        $(OCAMLFIND) install sdl ../META \
           *.cma lib*.$(A) *.cmi *.mli \
-          $(if $(OCAMLOPT),*.cmxa sdl*.$(A) *.cmx) \
+          $(if $(filter-out $(OCAMLOPT),no),*.cmxa sdl*.$(A) *.cmx) \
           $(if $(OCAMLMKLIB),dll*.so)
 ifeq ($(PLATFORM),Apple)
        $(RANLIB) $$($(OCAMLFIND) printconf destdir)/sdl/*.$(A)




Reply via email to