The original PR requested to version 3.6.3, but it was straight-forward to jump to the latest version. The stage support came from the pkgsrc version. PR: ports/176062 Submitted by: maintainer (Jaap Boender) Stage support: Taken from pkgsrc
15 lines
586 B
Text
15 lines
586 B
Text
$NetBSD: patch-Makefile.rules,v 1.1 2012/07/06 09:29:14 wiz Exp $
|
|
|
|
make package work with DESTDIR support
|
|
--- Makefile.rules.orig 2012-02-29 18:02:51.000000000 +0000
|
|
+++ Makefile.rules
|
|
@@ -148,7 +148,8 @@ realuninstall: $(UNINSTOTHER) uninstall-
|
|
.PHONY: install-findlib
|
|
install-findlib: META
|
|
files=`$(COLLECT_FILES) *.mli *.cmi *.cma *.cmxa *.a dll* META $(INSTALL_EXTRA)` && \
|
|
- $(OCAMLFIND) install $(PKGNAME) $$files
|
|
+ $(OCAMLFIND) install -destdir $(DESTDIR)/$(PREFIX)/lib/ocaml/site-lib \
|
|
+ -ldconf /dev/null $(PKGNAME) $$files
|
|
|
|
.PHONY: uninstall-findlib
|
|
uninstall-findlib:
|