summaryrefslogtreecommitdiff
path: root/math/mathomatic/patches/patch-aa
blob: 84dbed3892a379380abb1ceb4980b23b7ebe22a4 (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
33
34
35
36
$NetBSD: patch-aa,v 1.23 2010/08/30 02:48:41 asau Exp $

--- makefile.orig	2010-08-09 00:45:21.000000000 +0000
+++ makefile	2010-08-10 22:40:20.000000000 +0000
@@ -27,10 +27,11 @@
 #LDFLAGS	+= -m64
 
 # Install directories follow; installs everything in /usr/local by default:
-prefix		?= /usr/local
-bindir		?= $(prefix)/bin
-mandir		?= $(prefix)/share/man
-docdir		?= $(prefix)/share/doc
+DESTDIR=
+prefix		?= /usr/pkg
+bindir		?= $(DESTDIR)$(prefix)/bin
+mandir		?= $(DESTDIR)$(prefix)/man
+docdir		?= $(DESTDIR)$(prefix)/share/doc
 mathdocdir	?= $(docdir)/mathomatic
 
 # Mathomatic program names (can be changed):
@@ -137,11 +138,11 @@
 
 bininstall:
 	$(INSTALL) -d $(bindir)
-	$(INSTALL) -d $(prefix)/share/applications
-	$(INSTALL) -d $(prefix)/share/pixmaps
+	$(INSTALL) -d $(DESTDIR)$(prefix)/share/applications
+	$(INSTALL) -d $(DESTDIR)$(prefix)/share/pixmaps
 	$(INSTALL_PROGRAM) $(AOUT) $(bindir)
-	$(INSTALL_DATA) icons/mathomatic.desktop $(prefix)/share/applications
-	$(INSTALL_DATA) icons/mathomatic.png $(prefix)/share/pixmaps
+	$(INSTALL_DATA) icons/mathomatic.desktop $(DESTDIR)$(prefix)/share/applications
+	$(INSTALL_DATA) icons/mathomatic.png $(DESTDIR)$(prefix)/share/pixmaps
 
 docinstall:
 	$(INSTALL) -d $(mandir)/man1