mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
Initial import of newt-0.50-13.
It is a Console I/O handling library from Redhat similar to ncurses. PR: 16526 Submitted by: Will Andrews <andrews@technologist.com>
This commit is contained in:
parent
4c67c60169
commit
a29e53c135
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=25728
@ -114,6 +114,7 @@
|
||||
SUBDIR += nana
|
||||
SUBDIR += nasm
|
||||
SUBDIR += ncurses
|
||||
SUBDIR += newt
|
||||
SUBDIR += noweb
|
||||
SUBDIR += omniORB
|
||||
SUBDIR += p5-AppConfig
|
||||
|
39
devel/newt/Makefile
Normal file
39
devel/newt/Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
# New ports collection makefile for: newt
|
||||
# Version required: 0.50-13
|
||||
# Date created: 08 Jan 2000
|
||||
# Whom: Will Andrews <andrews@technologist.com>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
DISTNAME= newt-0.50-13
|
||||
PKGNAME= newt-0.50.13
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= \
|
||||
ftp://ftp.cdrom.com/pub/linux/redhat/redhat-6.1/SRPMS/SRPMS/ \
|
||||
ftp://ftp.redhat.com/pub/redhat/redhat-6.1/SRPMS/SRPMS/ \
|
||||
ftp://ftp.infomagic.com/pub/mirrors/linux/RedHat/redhat-6.1/SRPMS/SRPMS/
|
||||
EXTRACT_SUFX= .src.rpm
|
||||
|
||||
MAINTAINER= andrews@technologist.com
|
||||
|
||||
LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang
|
||||
BUILD_DEPENDS= rpm2cpio:${PORTSDIR}/misc/rpm \
|
||||
python:${PORTSDIR}/lang/python \
|
||||
${LOCALBASE}/include/popt.h:${PORTSDIR}/devel/popt
|
||||
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
WRKSRC= ${WRKDIR}/newt-0.50
|
||||
VERSION= 0
|
||||
MAKE_ENV+= prefix=${PREFIX} VERSION=${VERSION} CC=${CC} PCFLAGS="${CFLAGS}"
|
||||
PLIST_SUB+= VERSION="${VERSION}"
|
||||
CPIO?= /usr/bin/cpio
|
||||
|
||||
do-extract:
|
||||
@${RM} -rf ${WRKDIR}
|
||||
@${MKDIR} ${WRKDIR}
|
||||
@${LOCALBASE}/bin/rpm2cpio ${_DISTDIR}${DISTFILES} | (cd ${WRKDIR};${CPIO} -i)
|
||||
@${TAR} xfz ${WRKSRC}.tar.gz -C ${WRKDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
1
devel/newt/distinfo
Normal file
1
devel/newt/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (newt-0.50-13.src.rpm) = 20558ad28c9091272000192b53c435de
|
7
devel/newt/files/patch-aa
Normal file
7
devel/newt/files/patch-aa
Normal file
@ -0,0 +1,7 @@
|
||||
--- grid.c Mon Feb 8 11:41:47 1999
|
||||
+++ grid.c.new Sun Jan 9 01:15:24 2000
|
||||
@@ -1,4 +1,3 @@
|
||||
-#include <alloca.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
111
devel/newt/files/patch-ab
Normal file
111
devel/newt/files/patch-ab
Normal file
@ -0,0 +1,111 @@
|
||||
--- Makefile.in Wed Feb 2 22:18:26 2000
|
||||
+++ Makefile.in.new Wed Feb 2 22:19:01 2000
|
||||
@@ -1,16 +1,11 @@
|
||||
-LIBS = -lslang -lm #-lefence
|
||||
-SHLIBS = -lslang -lm -lc
|
||||
+CC ?= cc
|
||||
+LIBS = -L$(PREFIX)/lib -lslang -ltcl82 -lpopt -lncurses -lm
|
||||
+SHLIBS = $(LIBS)
|
||||
|
||||
-GPM_SUPPORT=@gpm_support@
|
||||
+CFLAGS = $(PCFLAGS) -Wall -I$(prefix)/include -I$(prefix)/include/tcl8.2
|
||||
|
||||
-CFLAGS = $(RPM_OPT_FLAGS) -Wall -I/usr/include/slang
|
||||
-ifeq ($(RPM_OPT_FLAGS),)
|
||||
-CFLAGS += -g # -O2 -I/usr/include/slang
|
||||
-endif
|
||||
-
|
||||
-VERSION = @VERSION@
|
||||
-CVSTAG = r$(subst .,-,$(VERSION))
|
||||
-SONAME = @VERSION@
|
||||
+VERSION ?= 0
|
||||
+SONAME = $(VERSION)
|
||||
|
||||
PROGS = test whiptail whiptcl.so testgrid testtree
|
||||
TESTOBJS = test.o
|
||||
@@ -25,7 +20,7 @@
|
||||
|
||||
SHCFLAGS = -fPIC
|
||||
|
||||
-prefix = /usr
|
||||
+prefix ?= /usr/local
|
||||
includedir = $(prefix)/include
|
||||
libdir = $(prefix)/lib
|
||||
bindir = $(prefix)/bin
|
||||
@@ -49,25 +44,25 @@
|
||||
all: $(TARGET) _snackmodule.so
|
||||
|
||||
test: $(TESTOBJS) $(LIBNEWT)
|
||||
- gcc -g -o test $(TESTOBJS) $(LIBNEWT) $(LIBS) -static
|
||||
+ $(CC) -o test $(TESTOBJS) $(LIBNEWT) $(LIBS) -static
|
||||
|
||||
testgrid: testgrid.o $(LIBNEWT)
|
||||
- gcc -g -o testgrid testgrid.o $(LIBNEWT) $(LIBS)
|
||||
+ $(CC) -o testgrid testgrid.o $(LIBNEWT) $(LIBS)
|
||||
|
||||
testtree: testtree.o $(LIBNEWT)
|
||||
- gcc -g -o testtree testtree.o $(LIBNEWT) $(LIBS)
|
||||
+ $(CC) -o testtree testtree.o $(LIBNEWT) $(LIBS)
|
||||
|
||||
_snackmodule.so: snackmodule.o $(LIBNEWTSH)
|
||||
- gcc --shared -o _snackmodule.so snackmodule.o -L . $(LIBNEWTSH)
|
||||
+ $(CC) --shared -o _snackmodule.so snackmodule.o -L . $(LIBNEWTSH)
|
||||
|
||||
snackmodule.o: snackmodule.c
|
||||
- gcc -I/usr/include/python1.5 -fPIC $(CFLAGS) -c snackmodule.c
|
||||
+ $(CC) -I$(prefix)/include/python1.5 -fPIC $(CFLAGS) -c snackmodule.c
|
||||
|
||||
whiptail: $(NDIALOGOBJS) $(LIBNEWTSH)
|
||||
- gcc -g -o whiptail $(NDIALOGOBJS) -L . $(LIBNEWTSH) $(LIBS) -lpopt
|
||||
+ $(CC) -o whiptail $(NDIALOGOBJS) -L . $(LIBNEWTSH) $(LIBS)
|
||||
|
||||
whiptcl.so: $(WHIPTCLOBJS) $(LIBNEWTSH)
|
||||
- gcc -shared -o whiptcl.so $(WHIPTCLOBJS) -L . $(LIBNEWTSH) -ltcl -lslang -lpopt -lm
|
||||
+ $(CC) -shared -o whiptcl.so $(WHIPTCLOBJS) -L . $(LIBNEWTSH) $(LIBS)
|
||||
|
||||
$(LIBNEWT): $(LIBNEWT)($(LIBOBJS))
|
||||
|
||||
@@ -90,7 +85,7 @@
|
||||
sharedlib: $(LIBNEWTSH)
|
||||
|
||||
$(LIBNEWTSH): $(SHAREDDIR) $(SHAREDOBJS)
|
||||
- gcc -shared -o $(LIBNEWTSH) -Wl,-soname,$(LIBNEWTSONAME) $(SHAREDOBJS) $(SHLIBS)
|
||||
+ $(CC) -shared -o $(LIBNEWTSH) -Wl,-soname,$(LIBNEWTSONAME) $(SHAREDOBJS) $(SHLIBS)
|
||||
|
||||
$(SHAREDDIR)/%.o : %.c
|
||||
$(CC) $(SHCFLAGS) -c $(CFLAGS) -o $@ $<
|
||||
@@ -100,21 +95,21 @@
|
||||
|
||||
|
||||
install: $(LIBNEWT) install-sh whiptail
|
||||
- [ -d $(instroot)/$(bindir) ] || install -m 755 -d $(instroot)/$(bindir)
|
||||
- [ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir)
|
||||
- [ -d $(instroot)/$(includedir) ] || install -m 755 -d $(instroot)/$(includedir)
|
||||
- install -m 644 newt.h $(instroot)/$(includedir)
|
||||
- install -m 644 $(LIBNEWT) $(instroot)/$(libdir)
|
||||
- install -s -m 755 whiptail $(instroot)/$(bindir)
|
||||
+ [ -d $(bindir) ] || install -m 755 -d $(bindir)
|
||||
+ [ -d $(libdir) ] || install -m 755 -d $(libdir)
|
||||
+ [ -d $(includedir) ] || install -m 755 -d $(includedir)
|
||||
+ install -c -m 644 newt.h $(includedir)
|
||||
+ install -c -m 644 $(LIBNEWT) $(libdir)
|
||||
+ install -c -s -m 755 whiptail $(bindir)
|
||||
|
||||
install-sh: sharedlib whiptcl.so _snackmodule.so
|
||||
- [ -d $(instroot)/$(libdir) ] || install -m 755 -d $(instroot)/$(libdir)
|
||||
- install -m 755 $(LIBNEWTSH) $(instroot)/$(libdir)
|
||||
- ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/libnewt.so
|
||||
- install -m 755 whiptcl.so $(instroot)/$(libdir)
|
||||
- [ -d $(instroot)/$(pythonbindir) ] || install -m 755 -d $(instroot)/$(pythonbindir)
|
||||
- install -m 755 _snackmodule.so $(instroot)/$(pythonbindir)
|
||||
- install -m 755 snack.py $(instroot)/$(pythondir)
|
||||
+ [ -d $(libdir) ] || install -m 755 -d $(libdir)
|
||||
+ install -c -m 755 $(LIBNEWTSH) $(libdir)
|
||||
+ ln -sf $(LIBNEWTSH) $(libdir)/libnewt.so
|
||||
+ install -c -m 755 whiptcl.so $(libdir)
|
||||
+ [ -d $(pythonbindir) ] || install -m 755 -d $(pythonbindir)
|
||||
+ install -c -m 755 _snackmodule.so $(pythonbindir)
|
||||
+ install -c -m 755 snack.py $(pythondir)
|
||||
|
||||
archive:
|
||||
@cvs tag -F $(CVSTAG)
|
25
devel/newt/files/patch-ac
Normal file
25
devel/newt/files/patch-ac
Normal file
@ -0,0 +1,25 @@
|
||||
--- form.c Fri Mar 5 18:27:57 1999
|
||||
+++ form.c.new Wed Jan 26 20:33:25 2000
|
||||
@@ -3,9 +3,7 @@
|
||||
#include <slang.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
-#include <sys/select.h>
|
||||
-
|
||||
-#ifdef USE_GPM
|
||||
+#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <sys/time.h> /* timeval */
|
||||
#include <sys/types.h> /* socket() */
|
||||
@@ -15,11 +13,8 @@
|
||||
#include <sys/stat.h> /* stat() */
|
||||
#include <termios.h> /* winsize */
|
||||
#include <unistd.h>
|
||||
-#include <sys/kd.h> /* KDGETMODE */
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
-#endif
|
||||
-
|
||||
#include "newt.h"
|
||||
#include "newt_pr.h"
|
||||
|
1
devel/newt/pkg-comment
Normal file
1
devel/newt/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Console I/O handling library from the Redhat people
|
8
devel/newt/pkg-descr
Normal file
8
devel/newt/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
This is the Redhat newt library, a library that is
|
||||
similar to (and based on) ncurses in that it does
|
||||
special things with console I/O.
|
||||
|
||||
Unfortunately, there do not seem to be any documentation
|
||||
available on Redhat's website about newt.
|
||||
|
||||
--Will <andrews@technologist.com>
|
10
devel/newt/pkg-plist
Normal file
10
devel/newt/pkg-plist
Normal file
@ -0,0 +1,10 @@
|
||||
bin/whiptail
|
||||
lib/python1.5/lib-dynload/_snackmodule.so
|
||||
lib/python1.5/snack.py
|
||||
lib/whiptcl.so
|
||||
lib/libnewt.a
|
||||
lib/libnewt.so
|
||||
lib/libnewt.so.%%VERSION%%
|
||||
@exec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -m %B
|
||||
@unexec /usr/bin/env OBJFORMAT=%%PORTOBJFORMAT%% /sbin/ldconfig -R
|
||||
include/newt.h
|
Loading…
Reference in New Issue
Block a user