summaryrefslogtreecommitdiff
path: root/math/xmgr/patches/patch-ah
blob: 2d5e860ac4a392dff3cbe46511264f8e9904eb1b (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
$NetBSD: patch-ah,v 1.1 2009/12/11 02:11:52 asau Exp $

--- acegr_np/Makefile.orig	1998-03-11 00:51:35.000000000 +0300
+++ acegr_np/Makefile	2009-12-11 04:51:03.000000000 +0300
@@ -43,16 +43,16 @@
 testf_np$(O) : $(LIB)
 
 install : $(LIB)
-	$(MKINSTALLDIRS) $(GR_HOME)/lib
-	$(INSTALL_DATA) $(LIB) $(GR_HOME)/lib/$(LIB)
-	$(MKINSTALLDIRS) $(GR_HOME)/include
-	$(INSTALL_DATA) acegr_np.h $(GR_HOME)/include/acegr_np.h
+	$(MKINSTALLDIRS) $(DESTDIR)$(GR_HOME)/lib
+	$(INSTALL_DATA) $(LIB) $(DESTDIR)$(GR_HOME)/lib/$(LIB)
+	$(MKINSTALLDIRS) $(DESTDIR)$(GR_HOME)/include
+	$(INSTALL_DATA) acegr_np.h $(DESTDIR)$(GR_HOME)/include/acegr_np.h
 
 links : $(LIB)
-	$(MKINSTALLDIRS) $(PREFIX)/lib
-	cd $(PREFIX)/lib; $(RM) $(LIB); $(LN_S) $(GR_HOME)/lib/$(LIB) $(LIB)
-	$(MKINSTALLDIRS) $(PREFIX)/include
-	cd $(PREFIX)/include; $(RM) acegr_np.h; $(LN_S) $(GR_HOME)/include/acegr_np.h acegr_np.h
+	$(MKINSTALLDIRS) $(DESTDIR)$(PREFIX)/lib
+	cd $(DESTDIR)$(PREFIX)/lib; $(RM) $(LIB); $(LN_S) $(GR_HOME)/lib/$(LIB) $(LIB)
+	$(MKINSTALLDIRS) $(DESTDIR)$(PREFIX)/include
+	cd $(DESTDIR)$(PREFIX)/include; $(RM) acegr_np.h; $(LN_S) $(GR_HOME)/include/acegr_np.h acegr_np.h
 	
 clean :
 	$(RM) *.o sample.gr $(TESTS)