summaryrefslogtreecommitdiff
path: root/x11/lesstif/patches/patch-aw
blob: bb407b2c7819b5367e4a057df30d234079b336a8 (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
$NetBSD: patch-aw,v 1.1 2000/12/22 17:26:20 jlam Exp $

--- include/Motif-2.0/Xm/Makefile.am.orig	Tue Dec  5 11:19:25 2000
+++ include/Motif-2.0/Xm/Makefile.am
@@ -6,10 +6,13 @@
 #
 # Install headers
 #
-# Lets put the headers in a sub directory to avoid
-# poluting /usr/local with more directories for default installs.
+# Let's put the headers in a sub directory if not a default install.
 #
+if DefaultVersion20
+xmdir=	$(includedir)/Xm
+else
 xmdir=	$(prefix)/LessTif/Motif2.0/include/Xm
+endif
 
 HEADERS1_2 = \
 	ArrowB.h ArrowBG.h AtomMgr.h \
@@ -68,9 +71,3 @@
 	      rm $$i; \
 	   fi ; \
 	  done
-
-install-data-hook:
-if DefaultVersion20
-	if [ -d $(DESTDIR)$(prefix)/include/Xm ]; then rm -rf $(DESTDIR)$(prefix)/include/Xm; else rm -f $(DESTDIR)$(prefix)/include/Xm; fi
-	(mkdir -p $(DESTDIR)$(prefix)/include && cd $(DESTDIR)$(prefix)/include && $(LN_S) ../LessTif/Motif2.0/include/Xm Xm)
-endif