22786f9a3f
PDCurses is a public domain curses library that implements most of the functions available in X/Open and System V R4 curses. This X11 port allows for recompiling programs using text-mode curses to produce native X11 applications. This package was originally created by <bjs> in pkgsrc-wip and with several modifications by me to update to the latest version of PDCurses and to be more buildlink-correct.
49 lines
2.1 KiB
Text
49 lines
2.1 KiB
Text
$NetBSD: patch-ac,v 1.1.1.1 2008/02/24 04:57:07 jlam Exp $
|
|
|
|
--- Makefile.in.orig 2007-06-13 19:15:00.000000000 -0400
|
|
+++ Makefile.in
|
|
@@ -34,31 +34,25 @@ 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 \
|
|
+ $(BSD_INSTALL_DATA) ./xpanel.h $(includedir)/xpanel.h
|
|
+ $(BSD_INSTALL_DATA) $(srcdir)/panel.h \
|
|
$(includedir)/xcurses/panel.h
|
|
- $(INSTALL) -c -m 644 $(srcdir)/term.h \
|
|
+ $(BSD_INSTALL_DATA) $(srcdir)/term.h \
|
|
$(includedir)/xcurses/term.h
|
|
- $(INSTALL) -c -m 644 $(srcdir)/curspriv.h \
|
|
+ $(BSD_INSTALL_DATA) $(srcdir)/curspriv.h \
|
|
$(includedir)/xcurses/curspriv.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
|
|
+ $(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
|