pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/pdcurses Import pdcurses-3.3 as devel/pdcurses.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6ba31b3b26e9
branches:  trunk
changeset: 539015:6ba31b3b26e9
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Feb 24 04:57:07 2008 +0000

description:
Import pdcurses-3.3 as devel/pdcurses.

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.

diffstat:

 devel/pdcurses/DESCR            |    4 +
 devel/pdcurses/Makefile         |   50 +++++++++++++++
 devel/pdcurses/PLIST            |   12 +++
 devel/pdcurses/buildlink3.mk    |   30 +++++++++
 devel/pdcurses/distinfo         |    8 ++
 devel/pdcurses/patches/patch-aa |   58 +++++++++++++++++
 devel/pdcurses/patches/patch-ab |  129 ++++++++++++++++++++++++++++++++++++++++
 devel/pdcurses/patches/patch-ac |   49 +++++++++++++++
 8 files changed, 340 insertions(+), 0 deletions(-)

diffs (truncated from 372 to 300 lines):

diff -r 34a41cbaa4b3 -r 6ba31b3b26e9 devel/pdcurses/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pdcurses/DESCR      Sun Feb 24 04:57:07 2008 +0000
@@ -0,0 +1,4 @@
+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.
diff -r 34a41cbaa4b3 -r 6ba31b3b26e9 devel/pdcurses/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pdcurses/Makefile   Sun Feb 24 04:57:07 2008 +0000
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/02/24 04:57:07 jlam Exp $
+
+DISTNAME=      PDCurses-3.3
+PKGNAME=       ${DISTNAME:tl}
+CATEGORIES=    devel x11
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=pdcurses/}
+
+MAINTAINER=    bjs%NetBSD.org@localhost
+HOMEPAGE=      http://pdcurses.sourceforge.net/
+COMMENT=       public domain implementation of the X/Open curses standard
+
+PKG_DESTDIR_SUPPORT=   user-destdir
+
+GNU_CONFIGURE=         yes
+USE_LIBTOOL=           yes
+MAKE_JOBS_SAFE=                no
+
+CONFIGURE_ARGS+=       --with-x
+
+# PDCURSES_XAW is the name of the Xaw library.
+#
+# XXX This information should really be provided by the various Xaw-like
+# XXX buildlink3.mk files.
+#
+PDCURSES_XAW.3d=       Xaw3d
+PDCURSES_XAW.neXtaw=   neXtaw
+PDCURSES_XAW.xpm=      Xaw3d
+PDCURSES_XAW.standard=         Xaw
+PDCURSES_XAW=          ${PDCURSES_XAW.${XAW_TYPE}}
+CONFIGURE_ENV+=                PDCURSES_XAW=${PDCURSES_XAW:Q}
+
+REPLACE_SH=            x11/xcurses-config.in
+DOCDIR=                        ${PREFIX}/share/doc/${PKGBASE}
+
+post-install:
+       ${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
+       ${INSTALL_DATA} ${WRKSRC}/doc/PDCurses.txt ${DESTDIR}${DOCDIR}
+
+.include "../../mk/xaw.buildlink3.mk"
+
+.include "../../x11/libICE/buildlink3.mk"
+.include "../../x11/libSM/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXmu/buildlink3.mk"
+.include "../../x11/libXpm/buildlink3.mk"
+.include "../../x11/libXp/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff -r 34a41cbaa4b3 -r 6ba31b3b26e9 devel/pdcurses/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pdcurses/PLIST      Sun Feb 24 04:57:07 2008 +0000
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/02/24 04:57:07 jlam Exp $
+bin/xcurses-config
+include/xcurses.h
+include/xcurses/curses.h
+include/xcurses/curspriv.h
+include/xcurses/panel.h
+include/xcurses/term.h
+include/xpanel.h
+lib/libXCurses.la
+share/doc/pdcurses/PDCurses.txt
+@dirrm share/doc/pdcurses
+@dirrm include/xcurses
diff -r 34a41cbaa4b3 -r 6ba31b3b26e9 devel/pdcurses/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pdcurses/buildlink3.mk      Sun Feb 24 04:57:07 2008 +0000
@@ -0,0 +1,30 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/02/24 04:57:07 jlam Exp $
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
+PDCURSES_BUILDLINK3_MK:=       ${PDCURSES_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+=    pdcurses
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Npdcurses}
+BUILDLINK_PACKAGES+=   pdcurses
+BUILDLINK_ORDER:=      ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}pdcurses
+
+.if !empty(PDCURSES_BUILDLINK3_MK:M+)
+BUILDLINK_API_DEPENDS.pdcurses+=       pdcurses>=3.3
+BUILDLINK_PKGSRCDIR.pdcurses?=         ../../devel/pdcurses
+.endif # PDCURSES_BUILDLINK3_MK
+
+.include "../../mk/xaw.buildlink3.mk"
+
+.include "../../x11/libICE/buildlink3.mk"
+.include "../../x11/libSM/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXmu/buildlink3.mk"
+.include "../../x11/libXpm/buildlink3.mk"
+.include "../../x11/libXp/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH:S/+$//}
diff -r 34a41cbaa4b3 -r 6ba31b3b26e9 devel/pdcurses/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pdcurses/distinfo   Sun Feb 24 04:57:07 2008 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/02/24 04:57:07 jlam Exp $
+
+SHA1 (PDCurses-3.3.tar.gz) = fde5908ecc417bdbaeac494cd37a8b73011257cc
+RMD160 (PDCurses-3.3.tar.gz) = 8787fa0c3f1ea0e8d85748b1a891ef6bd155cb0a
+Size (PDCurses-3.3.tar.gz) = 329511 bytes
+SHA1 (patch-aa) = 4561c7a62f99906b91bc016994c3cca19c396fe1
+SHA1 (patch-ab) = 9381721ca10ae80a7fe012634d52ef1b018e3c6c
+SHA1 (patch-ac) = 77caf60fe803d7111de2f7b75a1950284fd9e139
diff -r 34a41cbaa4b3 -r 6ba31b3b26e9 devel/pdcurses/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pdcurses/patches/patch-aa   Sun Feb 24 04:57:07 2008 +0000
@@ -0,0 +1,58 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/02/24 04:57:07 jlam Exp $
+
+--- configure.orig     2007-06-23 18:53:15.000000000 -0400
++++ configure
+@@ -4685,6 +4685,7 @@ for ac_dir in $mh_inc_dirs ; do
+     break
+   fi
+ done
++mh_x11_dir="${PREFIX}/include/X11"
+ 
+ 
+ if test "$with_xaw3d" = yes; then
+@@ -4706,6 +4707,7 @@ for ac_dir in $mh_inc_dirs ; do
+     break
+   fi
+ done
++mh_x11_xaw_dir="${PREFIX}/include/X11"
+ 
+ if test "x$mh_x11_dir" != "x" ; then
+       mh_x11_dir_no_x11=`echo $mh_x11_dir | sed 's/\/X11$//'`
+@@ -4770,6 +4772,7 @@ else
+               MH_X11_LIBS="Xaw Xmu Xt X11"
+       fi
+ fi
++MH_X11_LIBS="${PDCURSES_XAW} Xmu Xt X11"
+ MH_X11R6_LIBS="SM ICE Xext"
+ mh_x11r6=no
+ 
+@@ -4797,27 +4800,8 @@ mh_where_found=""
+ mh_where_found_dirs=""
+ mh_solaris_path=""
+ for mh_lib in $mh_libs; do
+-  mh_lib_found=no
+-  for ac_dir in $mh_lib_dirs ; do
+-    for mh_ext in a so sl dll.a; do
+-      if test -r $ac_dir/lib$mh_lib.$mh_ext; then
+-        if test "x$mh_prev_dir" != "x$ac_dir" ; then
+-          if test "x$mh_prev_dir" = "x" ; then
+-             mh_where_found="$mh_where_found found in $ac_dir"
+-          else
+-             mh_where_found="$mh_where_found and in $ac_dir"
+-          fi
+-          mh_prev_dir=$ac_dir
+-          mh_where_found_dirs="$mh_where_found_dirs $ac_dir"
+-          MH_XLIBS="$MH_XLIBS -L$ac_dir"
+-          mh_solaris_path="${mh_solaris_path}:$ac_dir"
+-        fi
+-        MH_XLIBS="$MH_XLIBS -l$mh_lib"
+-        mh_lib_found=yes
+-        break 2
+-      fi
+-    done
+-  done
++  mh_lib_found=yes
++  MH_XLIBS="$MH_XLIBS -l$mh_lib"
+   if test "$mh_lib_found" = no; then
+     { { echo "$as_me:$LINENO: error: Cannot find required X library; lib$mh_lib. PDCurses cannot be configured" >&5
+ echo "$as_me: error: Cannot find required X library; lib$mh_lib. PDCurses cannot be configured" >&2;}
diff -r 34a41cbaa4b3 -r 6ba31b3b26e9 devel/pdcurses/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/pdcurses/patches/patch-ab   Sun Feb 24 04:57:07 2008 +0000
@@ -0,0 +1,129 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/02/24 04:57:07 jlam Exp $
+
+--- x11/Makefile.in.orig       2007-07-08 22:24:24.000000000 -0400
++++ x11/Makefile.in
+@@ -5,6 +5,10 @@ THIS          = Makefile
+ 
+ @SET_MAKE@
+ 
++prefix                =@prefix@
++exec_prefix   =$(DESTDIR)@exec_prefix@
++libdir                =$(exec_prefix)/lib
++
+ PDCURSES_SRCDIR       = ..
+ 
+ osdir         = .
+@@ -27,16 +31,18 @@ CFLAGS             = @CFLAGS@
+ 
+ CPPFLAGS      = @DEFS@ -DXCURSES @SYS_DEFS@ -I$(PDCURSES_SRCDIR)
+ 
+-BUILD         = @CC@ -c $(CFLAGS) $(CPPFLAGS) @MH_XINC_DIR@
++BUILD         = $(LIBTOOL) --mode=compile $(O_BUILD)
++O_BUILD               = @CC@ -c $(CFLAGS) $(CPPFLAGS) @MH_XINC_DIR@
+ DYN_BUILD     = @O2SAVE@ $(BUILD) @DYN_COMP@ @CC2O@
+ 
+-LINK          = @PURIFY@ @CC@
++LINK          = $(LIBTOOL) --mode=link @CC@
+ #LDFLAGS      = $(LIB_DEPS) @LDFLAGS@ @LIBS@ @MH_XLIBS@ @MH_EXTRA_LIBS@
+-LDFLAGS               = $(LIBCURSES) @LDFLAGS@ @LIBS@ @MH_XLIBS@ @MH_EXTRA_LIBS@
++LTLDFLAGS     = @LDFLAGS@ @LIBS@ @MH_XLIBS@ @MH_EXTRA_LIBS@
++LDFLAGS               = $(LIBCURSES) $(LTLDFLAGS)
+ 
+ RANLIB                = @RANLIB@
+ 
+-LIBCURSES     = libXCurses.a
++LIBCURSES     = libXCurses.la
+ 
+ LIB_DEPS        = -L$(PDCURSES_SRCDIR)/x11 -lXCurses
+ 
+@@ -49,7 +55,7 @@ tuidemo.o worm.o xmas.o
+ SHLFILE               = XCurses
+ 
+ #########################################################################
+-all:  $(PDCLIBS) $(DEMOS)
++all:  $(LIBCURSES) $(DEMOS)
+ 
+ install:
+       echo Does nothing at the moment
+@@ -84,8 +90,8 @@ PDCSHOBJS = $(PDCOBJS:.o=.sho)
+ SHOFILES = $(LIBSHOBJS) $(PDCSHOBJS)
+ 
+ $(LIBCURSES) : $(LIBOBJS) $(PDCOBJS)
+-      ar rv $@ $?
+-      -$(RANLIB) $@
++      $(LIBTOOL) --mode=link $(CC) -o $@ -rpath $(libdir) $(LTLDFLAGS) \
++              $(LIBOBJS:.o=.lo) $(PDCOBJS:.o=.lo)
+ 
+ $(SHLPRE)$(SHLFILE)$(SHLPST) : $(SHOFILES)
+       $(LD_RXLIB1) -o $@ $(SHOFILES) $(LD_RXLIB2)
+@@ -499,31 +505,31 @@ xmas: xmas.o
+ 
+ 
+ firework.o: $(demodir)/firework.c
+-      $(BUILD) $(demodir)/firework.c
++      $(O_BUILD) $(demodir)/firework.c
+ 
+ newdemo.o: $(demodir)/newdemo.c
+-      $(BUILD) $(demodir)/newdemo.c
++      $(O_BUILD) $(demodir)/newdemo.c
+ 
+ ptest.o: $(demodir)/ptest.c $(PDCURSES_SRCDIR)/panel.h
+-      $(BUILD) $(demodir)/ptest.c
++      $(O_BUILD) $(demodir)/ptest.c
+ 
+ rain.o: $(demodir)/rain.c
+-      $(BUILD) $(demodir)/rain.c
++      $(O_BUILD) $(demodir)/rain.c
+ 
+ testcurs.o: $(demodir)/testcurs.c
+-      $(BUILD) $(demodir)/testcurs.c
++      $(O_BUILD) $(demodir)/testcurs.c
+ 
+ tui.o: $(demodir)/tui.c $(demodir)/tui.h
+-      $(BUILD) $(demodir)/tui.c
++      $(O_BUILD) $(demodir)/tui.c
+ 
+ tuidemo.o: $(demodir)/tuidemo.c
+-      $(BUILD) $(demodir)/tuidemo.c
++      $(O_BUILD) $(demodir)/tuidemo.c
+ 
+ worm.o: $(demodir)/worm.c
+-      $(BUILD) $(demodir)/worm.c
++      $(O_BUILD) $(demodir)/worm.c
+ 
+ xmas.o: $(demodir)/xmas.c
+-      $(BUILD) $(demodir)/xmas.c
++      $(O_BUILD) $(demodir)/xmas.c
+ 
+ #
+ # This section provides for compiling and linking the
+@@ -562,22 +568,22 @@ ncurses: ncurses.o $(LIBCURSES)
+       $(LINK) ncurses.o -o $@ $(LDFLAGS)
+ 
+ bs.o: $(ncurses_testdir)/bs.c $(PDCURSES_CURSES_H)
+-      $(BUILD) $(NCFLAGS) $(ncurses_testdir)/bs.c
++      $(O_BUILD) $(NCFLAGS) $(ncurses_testdir)/bs.c
+ 
+ gdc.o: $(ncurses_testdir)/gdc.c $(PDCURSES_CURSES_H)
+-      $(BUILD) $(NCFLAGS) $(ncurses_testdir)/gdc.c
++      $(O_BUILD) $(NCFLAGS) $(ncurses_testdir)/gdc.c
+ 



Home | Main Index | Thread Index | Old Index