summaryrefslogtreecommitdiff
path: root/graphics/ivtools/patches/patch-bk
blob: 2e2c0e5fd482eb4fcafb725a56bec8bd32300b69 (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
$NetBSD: patch-bk,v 1.1 2010/04/05 22:52:23 markd Exp $

--- config/site.def.LINUX.orig	2003-10-22 18:13:39.000000000 +0000
+++ config/site.def.LINUX
@@ -43,15 +43,15 @@
 #ifndef InstallDynamicSharedLibrary
 #define InstallDynamicSharedLibrary(libname,rev,dest)			@@\
 install:: Concat(lib,libname.so.rev)					@@\
-	MakeDir(dest)                                                   @@\
-	$(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.so.rev) dest   @@\
-	-@$(RM) dest/Concat(lib,libname.so)		                @@\
-	-@(cd dest;$(LN) Concat(lib,libname.so.rev) \			@@\
+	MakeDir($(DESTDIR)dest)                                                   @@\
+	$(INSTALL) -c $(INSTLIBFLAGS) Concat(lib,libname.so.rev) $(DESTDIR)dest   @@\
+	-@$(RM) $(DESTDIR)dest/Concat(lib,libname.so)		                @@\
+	-@(cd $(DESTDIR)dest;$(LN) Concat(lib,libname.so.rev) \			@@\
 	Concat(lib,libname.so))					        @@\
 									@@\
 uninstall::								@@\
-	$(RM) dest/Concat(lib,libname.so.rev)				@@\
-	$(RM) dest/Concat(lib,libname.so)	
+	$(RM) $(DESTDIR)dest/Concat(lib,libname.so.rev)				@@\
+	$(RM) $(DESTDIR)dest/Concat(lib,libname.so)	
 #endif
 
 /* file output by configure script */