$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 /#include /' \ < $(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