Commit 7c7b25f1 authored by Kyle Robbertze's avatar Kyle Robbertze

Fix build on bytecode architectures (Closes: #918247)

parent 6276fa8f
camlimages (1:4.2.6-3) UNRELEASED; urgency=medium
* Drop lablgtk2 support
* Fix build on bytecode architectures (Closes: #918247)
-- Kyle Robbertze <krobbertze@gmail.com> Mon, 21 Jan 2019 12:38:49 +0200
camlimages (1:4.2.6-2) unstable; urgency=medium
* Fix bytecode compilation (Closes: #918247)
......
@OCamlStdlibDir@/camlimages
src/camlimages.ml @OCamlStdlibDir@/camlimages
src/dummy_supported.ml @OCamlStdlibDir@/camlimages
src/exifanalyze.ml @OCamlStdlibDir@/camlimages
src/exifutil.ml @OCamlStdlibDir@/camlimages
src/jis_table.ml @OCamlStdlibDir@/camlimages
src/oBmp.ml @OCamlStdlibDir@/camlimages
src/oFreetype.ml @OCamlStdlibDir@/camlimages
src/oGif.ml @OCamlStdlibDir@/camlimages
src/oGraphic.ml @OCamlStdlibDir@/camlimages
src/oPpm.ml @OCamlStdlibDir@/camlimages
src/oPs.ml @OCamlStdlibDir@/camlimages
src/oTiff.ml @OCamlStdlibDir@/camlimages
src/oXpm.ml @OCamlStdlibDir@/camlimages
src/units.ml @OCamlStdlibDir@/camlimages
@OCamlDllDir@/*.so
usr/lib/ocaml/camlimages/*.so @OCamlDllDir@/
......@@ -3,43 +3,42 @@
include /usr/share/ocaml/ocamlvars.mk
OMAKE=omake --verbose
OMAKE=omake
DESTDIR=$(CURDIR)/debian/tmp
OCAMLFIND_DESTDIR=$(DESTDIR)$(OCAML_STDLIB_DIR)
export OCAMLFIND_DESTDIR
export OCAMLFIND_DESTDIR=$(DESTDIR)$(OCAML_STDLIB_DIR)
export OCAMLFIND_LDCONF=ignore
ifeq ($(OCAML_HAVE_OCAMLOPT),no)
export NATIVE_ENABLED=0
export OCAMLFIND_PREDICATES=byte
endif
ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
OMAKE += --verbose
endif
%:
dh $@ --with ocaml
.PHONY: override_dh_auto_configure
override_dh_auto_configure:
ifeq ($(OCAML_HAVE_OCAMLOPT),no)
sed -i 's/NATIVE_ENABLED, ./NATIVE_ENABLED, 0/' OMakefile
endif
.PHONY: override_dh_auto_build
override_dh_auto_build:
$(OMAKE)
$(OMAKE) --config
.PHONY: override_dh_auto_install
override_dh_auto_install:
mkdir -p $(OCAMLFIND_DESTDIR) $(DESTDIR)$(OCAML_DLL_DIR)
mkdir -p $(OCAMLFIND_DESTDIR)
$(OMAKE) install
.PHONY: override_dh_auto_clean
override_dh_auto_clean:
$(OMAKE) clean
find -name '*.omc' -delete
sed -i 's/NATIVE_ENABLED, ./NATIVE_ENABLED, 1/' OMakefile
.PHONY: override_dh_install
override_dh_install:
dh_install -X.so.owner
.PHONY: override_dh_installexamples
override_dh_installexamples:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
dh_installexamples -X'.cm*' -X.o -Xliv-furuse -X.cvsignore
endif
.PHONY: override_dh_compress
override_dh_compress:
dh_compress -Xexamples
.PHONY: override_dh_strip
override_dh_strip:
dh_strip --no-automatic-dbgsym
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment