summaryrefslogtreecommitdiff
path: root/archivers/ocaml-bz2/patches/patch-Makefile.in
blob: 33919c76adf114d0e7569d49a56021a01324d41d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-Makefile.in,v 1.1 2012/09/16 12:30:46 jaapb Exp $

Install into the right DESTDIR
--- Makefile.in.orig	2008-11-08 11:19:40.000000000 +0000
+++ Makefile.in
@@ -43,10 +43,10 @@ install : findlib-install
 ifeq ($(DESTDIR),)
 DESTDIR_FLAGS =
 else
-DESTDIR_FLAGS = -destdir $(DESTDIR)
+DESTDIR_FLAGS = -destdir $(DESTDIR)$(PREFIX)/lib/ocaml/site-lib/
 findlib-install : install-mkdir
 install-mkdir :
-	test -d $(DESTDIR) || mkdir -p $(DESTDIR)
+	test -d $(DESTDIR)$(PREFIX)/lib/ocaml/site-lib/ || mkdir -p $(DESTDIR)$(PREFIX)/lib/ocaml/site-lib/
 endif
 else
 install : normal-install