summaryrefslogtreecommitdiff
blob: 8404f2625c372f21fc8f0715af2447896793f3d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Source: mescalinum
Upstream: N/A
Reason: fix broken $DESTDIR support in library/Makefile
--- library/Makefile.in.orig	2008-10-26 14:30:28.000000000 +0100
+++ library/Makefile.in	2008-10-26 14:31:40.000000000 +0100
@@ -45,7 +45,7 @@ all: pkgIndex
 
 pkgIndex: 
 	rm -f pkgIndex.tcl
-	sed -e 's/%VERSION%/$(version)/' $(srcdir)/pkgIndex.tcl.in | \
+	sed -e 's/%VERSION%/$(version)/' $(INSTALL_ROOT)$(srcdir)/pkgIndex.tcl.in | \
 	sed -e 's/%LIB_PREFIX%/$(lib_prefix)/' | \
 	sed -e 's;%LIB_DIR%;$(libdir);' > pkgIndex.tcl
 
@@ -58,7 +58,7 @@ install: mkdirs pkgIndex
 	for i in $(miscFiles) ; do \
 	    $(INSTALL_DATA) $(srcdir)/$$i $(INSTALL_ROOT)$(scriptdir) ; \
 	done 
-	$(INSTALL_DATA) pkgIndex.tcl $(scriptdir)
+	$(INSTALL_DATA) pkgIndex.tcl $(INSTALL_ROOT)$(scriptdir)
 
 mkdirs:
 	@for i in $(instdirs) ; do \