| @@ -1,19 +1,19 @@ | | | @@ -1,19 +1,19 @@ |
1 | $NetBSD: patch-ac,v 1.1 2010/01/30 18:25:11 joerg Exp $ | | 1 | $NetBSD: patch-ac,v 1.2 2010/02/19 22:22:22 joerg Exp $ |
2 | | | 2 | |
3 | --- OCamlMakefile.orig 2010-01-30 18:14:57.000000000 +0000 | | 3 | --- OCamlMakefile.orig 2010-01-30 18:14:57.000000000 +0000 |
4 | +++ OCamlMakefile | | 4 | +++ OCamlMakefile |
5 | @@ -1102,11 +1102,13 @@ subprojs: $(SUBPROJS:%=subproj_%) | | 5 | @@ -1102,11 +1102,13 @@ subprojs: $(SUBPROJS:%=subproj_%) |
6 | | | 6 | |
7 | ########################################################################### | | 7 | ########################################################################### |
8 | # (UN)INSTALL RULES FOR LIBRARIES | | 8 | # (UN)INSTALL RULES FOR LIBRARIES |
9 | +INSTALLDIR=`$(OCAMLC) -where`/site-lib | | 9 | +INSTALLDIR=`$(OCAMLC) -where`/site-lib |
10 | | | 10 | |
11 | .PHONY: libinstall | | 11 | .PHONY: libinstall |
12 | libinstall: all | | 12 | libinstall: all |
13 | $(QUIET)printf "\nInstalling library with ocamlfind\n" | | 13 | $(QUIET)printf "\nInstalling library with ocamlfind\n" |
14 | - $(OCAMLFIND) install $(OCAMLFIND_INSTFLAGS) $(RESULT) META $(LIBINSTALL_FILES) | | 14 | - $(OCAMLFIND) install $(OCAMLFIND_INSTFLAGS) $(RESULT) META $(LIBINSTALL_FILES) |
15 | + ${BSD_INSTALL_DATA_DIR} ${DESTDIR}$(INSTALLDIR) | | 15 | + ${BSD_INSTALL_DATA_DIR} ${DESTDIR}$(INSTALLDIR) |
16 | + $(OCAMLFIND) install -destdir ${DESTDIR}$(INSTALLDIR) $(OCAMLFIND_INSTFLAGS) $(RESULT) META $(LIBINSTALL_FILES) | | 16 | + $(OCAMLFIND) install -ldconf /dev/null -destdir ${DESTDIR}$(INSTALLDIR) $(OCAMLFIND_INSTFLAGS) $(RESULT) META $(LIBINSTALL_FILES) |
17 | $(QUIET)printf "\nInstallation successful.\n" | | 17 | $(QUIET)printf "\nInstallation successful.\n" |
18 | | | 18 | |
19 | .PHONY: libuninstall | | 19 | .PHONY: libuninstall |