freebsd-ports/www/ocaml-net/files/patch-Makefile
John Marino 69ffa6b7d9 www/ocaml-net: Upgrade version 3.5.1 -> 3.7.3 and stage
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
2014-03-27 00:29:11 +00:00

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: