mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-24 15:55:14 +00:00
New installation method: "xcurses" subdirectory in include directory.
Instead of having to rename the header files and edit source, one can just specify "-I/usr/local/include/xcurses" (or whatever) at build time. xcurses.h and xpanel.h are still installed for backwards compatibility.
This commit is contained in:
@@ -43,10 +43,18 @@ 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
|
||||
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 $(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) \
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
# The idea to this kind of setup info script was stolen from numerous
|
||||
# other packages, such as neon, libxml and gnome.
|
||||
#
|
||||
# $Id: xcurses-config.in,v 1.4 2006/02/14 02:53:07 wmcbrine Exp $
|
||||
# $Id: xcurses-config.in,v 1.5 2006/02/17 03:25:33 wmcbrine Exp $
|
||||
#
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
includedir=@includedir@
|
||||
includedir=@includedir@/xcurses
|
||||
|
||||
usage()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user