summaryrefslogtreecommitdiff
path: root/devel/pdcurses/patches/patch-ac
blob: 8c80e7db53933f45116caeeea2ef400c51d82ed6 (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
37
38
39
40
41
42
43
44
45
46
$NetBSD: patch-ac,v 1.2 2016/10/10 02:12:57 mef Exp $

For pkgsrc, replace the INSTALL_* macros with the BSD_INSTALL_* macros.

--- Makefile.in.orig	2008-09-09 03:48:52.000000000 +0900
+++ Makefile.in	2016-10-10 11:05:09.000000000 +0900
@@ -33,27 +33,21 @@ realclean ::
 	cd x11; $(MAKE) $(MFLAGS) $@
 	cd doc; $(MAKE) $(MFLAGS) $@
 
+# For pkgsrc, replace the INSTALL_* macros with the BSD_INSTALL_* macros.
 install ::
-	$(INSTALL) -d -m 755 $(libdir)
-	$(INSTALL) -d -m 755 $(bindir)
-	$(INSTALL) -d -m 755 $(includedir)
-	$(INSTALL) -d -m 755 $(includedir)/xcurses
-	$(INSTALL) -c -m 644 $(srcdir)/curses.h $(includedir)/xcurses.h
-	$(INSTALL) -c -m 644 $(srcdir)/curses.h $(includedir)/xcurses/curses.h
+	$(BSD_INSTALL_LIB_DIR) $(libdir)
+	$(BSD_INSTALL_PROGRAM_DIR) $(bindir)
+	$(BSD_INSTALL_DATA_DIR) $(includedir)
+	$(BSD_INSTALL_DATA_DIR) $(includedir)/xcurses
+	$(BSD_INSTALL_DATA) $(srcdir)/curses.h $(includedir)/xcurses.h
+	$(BSD_INSTALL_DATA) -c -m 644 $(srcdir)/curses.h $(includedir)/xcurses/curses.h
 	sed -e 's/#include <curses.h>/#include <xcurses.h>/' \
 		< $(srcdir)/panel.h > ./xpanel.h
-	$(INSTALL) -m 644 ./xpanel.h $(includedir)/xpanel.h
-	$(INSTALL) -c -m 644 $(srcdir)/panel.h $(includedir)/xcurses/panel.h
-	$(INSTALL) -c -m 644 $(srcdir)/term.h $(includedir)/xcurses/term.h
-	$(INSTALL) -c -m 644 $(pdcursesdir)/libXCurses.a $(libdir)/libXCurses.a
-	-$(RANLIB) $(libdir)/libXCurses.a
-	-$(INSTALL) -c -m 755 $(pdcursesdir)/$(SHLPRE)$(SHLFILE)$(SHLPST) \
-		$(libdir)/$(SHLPRE)$(SHLFILE)$(SHLPST)
-	ln -f -s $(libdir)/$(SHLPRE)$(SHLFILE)$(SHLPST) \
-		$(libdir)/$(SHLPRE)Xpanel$(SHLPST)
-	ln -f -s $(libdir)/libXCurses.a $(libdir)/libXpanel.a
-	-$(RANLIB) $(libdir)/libXpanel.a
-	$(INSTALL) -c -m 755 x11/xcurses-config $(bindir)/xcurses-config
+	$(BSD_INSTALL_DATA) -m 644 ./xpanel.h $(includedir)/xpanel.h
+	$(BSD_INSTALL_DATA) -c -m 644 $(srcdir)/panel.h $(includedir)/xcurses/panel.h
+	$(BSD_INSTALL_DATA) $(srcdir)/term.h $(includedir)/xcurses/term.h
+	$(LIBTOOL) --mode=install $(BSD_INSTALL_LIB) $(pdcursesdir)/libXCurses.la $(libdir)/libXCurses.la
+	$(BSD_INSTALL_SCRIPT) x11/xcurses-config $(bindir)/xcurses-config
 
 clean ::
 	rm -f config.log config.cache config.status