summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2006-10-13 18:07:49 +0000
committertron <tron@pkgsrc.org>2006-10-13 18:07:49 +0000
commit1ebcc9e8a46396be2467d5439c35cf1db79902ac (patch)
tree280e5193a6b74a117a38bcd5e5d402f991b3f7b8 /devel
parent16fdd074df74e1cb344cb5d8ffd54031d60b98cc (diff)
downloadpkgsrc-1ebcc9e8a46396be2467d5439c35cf1db79902ac.tar.gz
Add "ncursesw" package:
Wide character CRT screen handling and optimization package This package brings us one step closer to fixing PR pkg/34777.
Diffstat (limited to 'devel')
-rw-r--r--devel/ncurses/Makefile46
-rw-r--r--devel/ncurses/Makefile.common44
-rw-r--r--devel/ncursesw/DESCR5
-rw-r--r--devel/ncursesw/Makefile27
-rw-r--r--devel/ncursesw/PLIST6
-rw-r--r--devel/ncursesw/buildlink3.mk24
6 files changed, 109 insertions, 43 deletions
diff --git a/devel/ncurses/Makefile b/devel/ncurses/Makefile
index b1520b227df..66c04c654f1 100644
--- a/devel/ncurses/Makefile
+++ b/devel/ncurses/Makefile
@@ -1,50 +1,10 @@
-# $NetBSD: Makefile,v 1.72 2006/10/08 17:16:59 wiz Exp $
+# $NetBSD: Makefile,v 1.73 2006/10/13 18:07:49 tron Exp $
-DISTNAME= ncurses-${NC_VERS}
-NC_VERS= 5.5
-PKGREVISION= 1
-CATEGORIES= devel
-MASTER_SITES= ${MASTER_SITE_GNU:=ncurses/} \
- ftp://dickey.his.com/ncurses/ \
- ftp://dickey.his.com/ncurses/${NC_VERS}/
+.include "Makefile.common"
-MAINTAINER= pkgsrc-users@NetBSD.org
-HOMEPAGE= http://dickey.his.com/ncurses/ncurses.html
+PKGREVISION= 1
COMMENT= CRT screen handling and optimization package
-PKG_INSTALLATION_TYPES= overwrite pkgviews
-
-USE_LANGUAGES= c c++
-USE_LIBTOOL= YES
-USE_TOOLS+= tbl
-
-GNU_CONFIGURE= YES
-CONFIGURE_ARGS+= --with-libtool
-CONFIGURE_ARGS+= --enable-bsdpad
-CONFIGURE_ARGS+= --enable-overwrite
-CONFIGURE_ARGS+= --with-cxx-binding
-CONFIGURE_ARGS+= --without-ada
-CONFIGURE_ARGS+= --without-curses-h
-CONFIGURE_ARGS+= --without-gpm
-CONFIGURE_ARGS+= --with-manpage-format=normal
-CONFIGURE_ARGS+= --with-manpage-tbl
-
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "SunOS"
-PLIST_SUBST+= NOT_SUNOS="@comment "
-TERMINFO_SRC= ${WRKSRC}/misc/terminfo.src
-TERMINFODIR= share/lib/terminfo
-.else
-PLIST_SUBST+= NOT_SUNOS=""
-TERMINFODIR= share/terminfo
-.endif
-
-PLIST_SUBST+= TERMINFODIR=${TERMINFODIR:Q}
-
-CONFIGURE_ARGS+= --with-default-terminfo-dir=${PREFIX}/${TERMINFODIR}
-CONFIGURE_ARGS+= --with-terminfo-dirs=${PREFIX}/${TERMINFODIR}
-
INSTALLATION_DIRS= share/examples
.if ${OPSYS} == "SunOS"
diff --git a/devel/ncurses/Makefile.common b/devel/ncurses/Makefile.common
new file mode 100644
index 00000000000..c379cafa40f
--- /dev/null
+++ b/devel/ncurses/Makefile.common
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile.common,v 1.1 2006/10/13 18:07:49 tron Exp $
+
+DISTNAME= ncurses-${NC_VERS}
+NC_VERS= 5.5
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GNU:=ncurses/} \
+ ftp://dickey.his.com/ncurses/ \
+ ftp://dickey.his.com/ncurses/${NC_VERS}/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://dickey.his.com/ncurses/ncurses.html
+
+PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+USE_LANGUAGES= c c++
+USE_LIBTOOL= YES
+USE_TOOLS+= tbl
+
+GNU_CONFIGURE= YES
+CONFIGURE_ARGS+= --with-libtool
+CONFIGURE_ARGS+= --enable-bsdpad
+CONFIGURE_ARGS+= --enable-overwrite
+CONFIGURE_ARGS+= --with-cxx-binding
+CONFIGURE_ARGS+= --without-ada
+CONFIGURE_ARGS+= --without-curses-h
+CONFIGURE_ARGS+= --without-gpm
+CONFIGURE_ARGS+= --with-manpage-format=normal
+CONFIGURE_ARGS+= --with-manpage-tbl
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+PLIST_SUBST+= NOT_SUNOS="@comment "
+TERMINFO_SRC= ${WRKSRC}/misc/terminfo.src
+TERMINFODIR= share/lib/terminfo
+.else
+PLIST_SUBST+= NOT_SUNOS=""
+TERMINFODIR= share/terminfo
+.endif
+
+PLIST_SUBST+= TERMINFODIR=${TERMINFODIR:Q}
+
+CONFIGURE_ARGS+= --with-default-terminfo-dir=${PREFIX}/${TERMINFODIR}
+CONFIGURE_ARGS+= --with-terminfo-dirs=${PREFIX}/${TERMINFODIR}
diff --git a/devel/ncursesw/DESCR b/devel/ncursesw/DESCR
new file mode 100644
index 00000000000..729741b871d
--- /dev/null
+++ b/devel/ncursesw/DESCR
@@ -0,0 +1,5 @@
+The ncurses (new curses) library is a free software emulation of
+curses in System V Release 4.0, and more. It uses terminfo format,
+supports pads and color and multiple highlights and forms characters
+and function-key mapping, and has all the other SYSV-curses
+enhancements over BSD curses.
diff --git a/devel/ncursesw/Makefile b/devel/ncursesw/Makefile
new file mode 100644
index 00000000000..20ea4625797
--- /dev/null
+++ b/devel/ncursesw/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1 2006/10/13 18:07:49 tron Exp $
+
+.include "../../devel/ncurses/Makefile.common"
+
+PKGNAME= ${DISTNAME:S/ncurses/ncursesw/}
+COMMENT= Wide character CRT screen handling and optimization package
+
+PATCHDIR= ${.CURDIR}/../../devel/ncurses/patches
+DISTINFO_FILE= ${.CURDIR}/../../devel/ncurses/distinfo
+
+CONFIGURE_ARGS+= --enable-widec
+
+BUILD_TARGET= libs
+
+do-install:
+ for LIB in form menu ncurses++ ncurses panel; do \
+ ${LIBTOOL} --mode=install ${INSTALL_PROGRAM} \
+ ${WRKSRC}/lib/lib$${LIB}w.la ${PREFIX}/lib; \
+ done
+
+BUILDLINK_API_DEPENDS.ncurses+= ncurses-${NC_VERS}{,nb*}
+BUILDLINK_ABI_DEPENDS.ncurses+= ncurses-${NC_VERS}{,nb*}
+USE_NCURSES= yes
+
+.include "../../devel/ncurses/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ncursesw/PLIST b/devel/ncursesw/PLIST
new file mode 100644
index 00000000000..9404a10258d
--- /dev/null
+++ b/devel/ncursesw/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1 2006/10/13 18:07:49 tron Exp $
+lib/libformw.la
+lib/libmenuw.la
+lib/libncurses++w.la
+lib/libncursesw.la
+lib/libpanelw.la
diff --git a/devel/ncursesw/buildlink3.mk b/devel/ncursesw/buildlink3.mk
new file mode 100644
index 00000000000..47e26e8b2d6
--- /dev/null
+++ b/devel/ncursesw/buildlink3.mk
@@ -0,0 +1,24 @@
+# $NetBSD: buildlink3.mk,v 1.1 2006/10/13 18:07:49 tron Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+NCURSESW_BUILDLINK3_MK:=${NCURSESW_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= ncursesw
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nncursesw}
+BUILDLINK_PACKAGES+= ncursesw
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}ncursesw
+
+.if !empty(NCURSESW_BUILDLINK3_MK:M+)
+BUILDLINK_API_DEPENDS.ncursesw+= ncursesw>=5.5
+BUILDLINK_ABI_DEPENDS.ncursesw+= ncursesw>=5.5
+BUILDLINK_PKGSRCDIR.ncursesw?= ../../devel/ncursesw
+.endif # NCURSESW_BUILDLINK3_MK
+
+USE_NCURSES= YES
+
+.include "../../devel/ncurses/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}