While building PDCurses 3.6 for Slackware x11, I found two problems that
do not exist with PDCurses 3.4.

1) There is no $(DESTDIR) variable in the x11/Makefile.in and so there is
   no easy way to redirect the output from a "make install" command.

   I normally use: "make install DESTDIR=<out-directory>"
   and this works with PDCurses 3.4.

2) The /usr/include/xcurses.h and /usr/include/xpanel.h are not created.
   These are created by PDCurses 3.4 and are used by THE 3.3RC4

Both of these problems can be fixed with this patch:

--- a/x11/Makefile.in.orig      2018-01-26 17:56:15.000000000 -0800
+++ b/x11/Makefile.in   2018-06-14 13:42:43.989390736 -0700
@@ -13,9 +13,9 @@

 prefix         = @prefix@
 exec_prefix    = @exec_prefix@
-libdir         = @libdir@
-bindir         = @bindir@
-includedir     = @includedir@
+libdir         = $(DESTDIR)@libdir@
+bindir         = $(DESTDIR)@bindir@
+includedir     = $(DESTDIR)@includedir@

 PDCURSES_CONFIG_H      =$(osdir)/config.h
 PDCURSES_CURSES_H      =$(PDCURSES_SRCDIR)/curses.h
@@ -62,8 +62,12 @@
        $(INSTALL) -d -m 755 $(includedir)
        $(INSTALL) -d -m 755 $(includedir)/xcurses
        $(INSTALL) -c -m 644 $(PDCURSES_CURSES_H) \
+               $(includedir)/xcurses.h
+       $(INSTALL) -c -m 644 $(PDCURSES_CURSES_H) \
                $(includedir)/xcurses/curses.h
        $(INSTALL) -c -m 644 $(PDCURSES_SRCDIR)/panel.h \
+               $(includedir)/xpanel.h
+       $(INSTALL) -c -m 644 $(PDCURSES_SRCDIR)/panel.h \
                $(includedir)/xcurses/panel.h
        $(INSTALL) -c -m 644 $(PDCURSES_SRCDIR)/term.h \
                $(includedir)/xcurses/term.h


Richard Narron
aka comet dot berkeley at gmail dot com

Reply via email to