summaryrefslogtreecommitdiff
path: root/lang/ocaml-camlidl/files
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ocaml-camlidl/files')
-rw-r--r--lang/ocaml-camlidl/files/patch-compiler_Makefile11
-rw-r--r--lang/ocaml-camlidl/files/patch-doc_Makefile8
-rw-r--r--lang/ocaml-camlidl/files/patch-lib_Makefile15
-rw-r--r--lang/ocaml-camlidl/files/patch-runtime_Makefile.unix17
4 files changed, 51 insertions, 0 deletions
diff --git a/lang/ocaml-camlidl/files/patch-compiler_Makefile b/lang/ocaml-camlidl/files/patch-compiler_Makefile
new file mode 100644
index 000000000000..b2383ae6825e
--- /dev/null
+++ b/lang/ocaml-camlidl/files/patch-compiler_Makefile
@@ -0,0 +1,11 @@
+--- compiler/Makefile.orig 2024-10-13 20:49:37 UTC
++++ compiler/Makefile
+@@ -82,7 +82,7 @@ install:
+
+ # Install
+ install:
+- cp $(PROG) $(BINDIR)
++ $(BSD_INSTALL_SCRIPT) $(PROG) $(DESTDIR)$(BINDIR)
+
+ # Clean up
+ clean::
diff --git a/lang/ocaml-camlidl/files/patch-doc_Makefile b/lang/ocaml-camlidl/files/patch-doc_Makefile
new file mode 100644
index 000000000000..c76d62e562da
--- /dev/null
+++ b/lang/ocaml-camlidl/files/patch-doc_Makefile
@@ -0,0 +1,8 @@
+--- doc/Makefile.orig 2024-10-13 21:03:28 UTC
++++ doc/Makefile
+@@ -16,4 +16,4 @@ $(TRANSF) $(TEXQUOTE):
+ $(TRANSF) < manual.etex | $(TEXQUOTE) > manual.tex
+
+ $(TRANSF) $(TEXQUOTE):
+- make -C tools
++ $(MAKE) -C tools
diff --git a/lang/ocaml-camlidl/files/patch-lib_Makefile b/lang/ocaml-camlidl/files/patch-lib_Makefile
new file mode 100644
index 000000000000..1d69fb73c79a
--- /dev/null
+++ b/lang/ocaml-camlidl/files/patch-lib_Makefile
@@ -0,0 +1,15 @@
+--- lib/Makefile.orig 2024-10-13 20:49:49 UTC
++++ lib/Makefile
+@@ -40,10 +40,10 @@ installbyt:
+ $(OCAMLOPT) -a -o $(NATIVELIB) -cclib -lcamlidl $(NATIVEOBJS)
+
+ installbyt:
+- cp -p $(INTERFACES) $(BYTELIB) $(OCAMLLIB)
++ $(BSD_INSTALL_DATA) -p $(INTERFACES) $(BYTELIB) $(DESTDIR)$(OCAMLLIB)
+
+ installopt:
+- cp -p $(NATIVELIB) $(NATIVELIB:.cmxa=.$(LIBEXT)) $(OCAMLLIB)
++ $(BSD_INSTALL_DATA) $(NATIVELIB) $(NATIVELIB:.cmxa=.$(LIBEXT)) $(DESTDIR)$(OCAMLLIB)
+
+ .SUFFIXES: .mli .ml .cmi .cmo .cmx
+
diff --git a/lang/ocaml-camlidl/files/patch-runtime_Makefile.unix b/lang/ocaml-camlidl/files/patch-runtime_Makefile.unix
new file mode 100644
index 000000000000..429ddaaf5874
--- /dev/null
+++ b/lang/ocaml-camlidl/files/patch-runtime_Makefile.unix
@@ -0,0 +1,17 @@
+--- runtime/Makefile.unix.orig 2024-10-13 21:00:18 UTC
++++ runtime/Makefile.unix
+@@ -26,10 +26,10 @@ install:
+ # $(RANLIB) $@
+
+ install:
+- cp camlidlruntime.h $(OCAMLLIB)/caml/camlidlruntime.h
+- cp libcamlidl.a $(OCAMLLIB)/libcamlidl.a
+- cp dllcamlidl.so $(OCAMLLIB)/stublibs/dllcamlidl.so
+- cd $(OCAMLLIB); $(RANLIB) libcamlidl.a
++ $(BSD_INSTALL_DATA) camlidlruntime.h $(DESTDIR)$(OCAMLLIB)/caml/camlidlruntime.h
++ $(BSD_INSTALL_DATA) libcamlidl.a $(DESTDIR)$(OCAMLLIB)/libcamlidl.a
++ $(BSD_INSTALL_LIB) dllcamlidl.so $(DESTDIR)$(OCAMLLIB)/stublibs/dllcamlidl.so
++ cd $(DESTDIR)$(OCAMLLIB); $(RANLIB) libcamlidl.a
+
+ clean:
+ rm -f *.a *.o *.so