summaryrefslogtreecommitdiff
path: root/lang/erlang/patches/patch-af
blob: 6a7258de640c03b1031cc518789636eb4263c734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
$NetBSD: patch-af,v 1.2 2009/02/07 21:45:43 joerg Exp $

DESTDIR support

--- Makefile.in.orig	2007-11-26 19:57:49.000000000 +0100
+++ Makefile.in
@@ -51,6 +51,7 @@ exec_prefix = @exec_prefix@
 # rpms.
 #INSTALL_PREFIX =
 # Naah...override `prefix' instead.
+INSTALL_PREFIX=${DESTDIR}
 
 # The directory in which user executables (ERL_BASE_PUB_FILES) are put
 BINDIR      = $(INSTALL_PREFIX)@bindir@
@@ -707,7 +708,7 @@ else
 endif
 
 install.Install:
-	cd $(ERLANG_LIBDIR) && ./Install -minimal $(ERLANG_LIBDIR)
+	cd $(ERLANG_LIBDIR) && ./Install -minimal $(ERLANG_ILIBDIR)
 
 #
 # Install erlang base public files
@@ -715,7 +716,7 @@ install.Install:
 install.bin:
 	for file in $(ERL_BASE_PUB_FILES); do \
 		rm -f $(BINDIR)/$$file; \
-		${LN_S} $(ERLANG_BINDIR)/$$file $(BINDIR)/$$file; \
+		${LN_S} $(ERLANG_ILIBDIR)/bin/$$file $(BINDIR)/$$file; \
 	done
 
 #