summaryrefslogtreecommitdiff
path: root/math/xmgr/patches/patch-ad
blob: 5b69b447fff706f9ca5d250c44d423751bee3125 (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
$NetBSD: patch-ad,v 1.2 2009/12/11 02:11:52 asau Exp $

--- auxiliary/Makefile.orig	1997-11-28 03:00:55.000000000 +0300
+++ auxiliary/Makefile	2009-12-11 05:05:17.000000000 +0300
@@ -20,14 +20,14 @@
 devclean : dummy
 
 install : $(AUXILIARIES) fdf2fit
-	$(MKINSTALLDIRS) $(GR_HOME)/auxiliary
-	for i in $(AUXILIARIES); do $(INSTALL_DATA) $$i $(GR_HOME)/auxiliary; done
-	$(INSTALL_PROGRAM) fdf2fit $(GR_HOME)/auxiliary
+	$(MKINSTALLDIRS) $(DESTDIR)$(PREFIX)/share/$(ACEGR)
+	for i in $(AUXILIARIES); do $(INSTALL_DATA) $$i $(DESTDIR)$(PREFIX)/share/$(ACEGR); done
+	$(INSTALL_SCRIPT) fdf2fit $(DESTDIR)$(PREFIX)/bin
 
 tests : dummy
 
 links : fdf2fit
-	$(MKINSTALLDIRS) $(PREFIX)/bin
-	cd $(PREFIX)/bin; $(RM) fdf2fit; $(LN_S) $(GR_HOME)/auxiliary/fdf2fit fdf2fit
+	$(MKINSTALLDIRS) $(DESTDIR)$(PREFIX)/bin
+	cd $(DESTDIR)$(PREFIX)/bin; $(RM) fdf2fit; $(LN_S) $(DESTDIR)$(GR_HOME)/auxiliary/fdf2fit fdf2fit
 
 dummy :