From c6cc8698f33e2edf931490f4e59070aa7875a321 Mon Sep 17 00:00:00 2001 From: todd Date: Thu, 20 Nov 1997 00:18:38 +0000 Subject: [PATCH] libslang --- devel/libslang/Makefile | 25 +++++++++++ devel/libslang/files/md5 | 1 + devel/libslang/patches/patch-aa | 76 +++++++++++++++++++++++++++++++++ devel/libslang/patches/patch-ab | 12 ++++++ devel/libslang/pkg/COMMENT | 1 + devel/libslang/pkg/DESCR | 17 ++++++++ devel/libslang/pkg/PLIST | 7 +++ 7 files changed, 139 insertions(+) create mode 100644 devel/libslang/Makefile create mode 100644 devel/libslang/files/md5 create mode 100644 devel/libslang/patches/patch-aa create mode 100644 devel/libslang/patches/patch-ab create mode 100644 devel/libslang/pkg/COMMENT create mode 100644 devel/libslang/pkg/DESCR create mode 100644 devel/libslang/pkg/PLIST diff --git a/devel/libslang/Makefile b/devel/libslang/Makefile new file mode 100644 index 00000000000..c33c15253f9 --- /dev/null +++ b/devel/libslang/Makefile @@ -0,0 +1,25 @@ +# OpenBSD makefile for: S-Lang library +# Version required: 0.99-38 +# Date created: 19 November 1997 +# Whom: todd@OpenBSD.org +# +# $OpenBSD: Makefile,v 1.1.1.1 1997/11/20 00:18:38 todd Exp $ +# + +DISTNAME= slang0.99-38 +PKGNAME= libslang-0.99.38 +CATEGORIES= devel +MASTER_SITES= ftp://space.mit.edu/pub/davis/slang/ + +MAINTAINER= todd@OpenBSD.org + +GNU_CONFIGURE= yes +ALL_TARGET= all elf +INSTALL_TARGET= install install-elf +WRKSRC= ${WRKDIR}/slang + +post-install: + @rm -f ${PREFIX}/lib/libslang.so.99.3[348] + ${LDCONFIG} -m ${PREFIX}/lib + +.include diff --git a/devel/libslang/files/md5 b/devel/libslang/files/md5 new file mode 100644 index 00000000000..7e25b5bcdb0 --- /dev/null +++ b/devel/libslang/files/md5 @@ -0,0 +1 @@ +MD5 (slang0.99-38.tar.gz) = d3419a30d2705b631b51deb9fe57aa65 diff --git a/devel/libslang/patches/patch-aa b/devel/libslang/patches/patch-aa new file mode 100644 index 00000000000..d62fab8b6ca --- /dev/null +++ b/devel/libslang/patches/patch-aa @@ -0,0 +1,76 @@ +*** src/Makefile.in.orig Tue Jan 21 20:21:34 1997 +--- src/Makefile.in Mon Jan 27 23:49:32 1997 +*************** +*** 2,16 **** + #--------------------------------------------------------------------------- + # ANSI C compiler + #--------------------------------------------------------------------------- +! CC = @CC@ +! CFLAGS = @CFLAGS@ + LDFLAGS = @LDFLAGS@ + #--------------------------------------------------------------------------- + # ELF specific (Linux) + #--------------------------------------------------------------------------- +! ELF_CC = gcc +! ELF_CFLAGS = -O2 -fno-strength-reduce -fPIC +! ELF_LINK = gcc -shared -Wl,-lm,-t,-soname# + #--------------------------------------------------------------------------- + # Set these values to ABSOLUTE path names + #--------------------------------------------------------------------------- +--- 2,16 ---- + #--------------------------------------------------------------------------- + # ANSI C compiler + #--------------------------------------------------------------------------- +! #CC = @CC@ +! #CFLAGS = @CFLAGS@ + LDFLAGS = @LDFLAGS@ + #--------------------------------------------------------------------------- + # ELF specific (Linux) + #--------------------------------------------------------------------------- +! ELF_CC = $(CC) +! ELF_CFLAGS = $(CFLAGS) -DPIC -fpic +! ELF_LINK = ld -Bshareable + #--------------------------------------------------------------------------- + # Set these values to ABSOLUTE path names + #--------------------------------------------------------------------------- +*************** +*** 93,103 **** + # cd $(ELFDIR); $(RM) $(ELFLIB_MAJOR); $(LN) $(ELFLIB_MAJOR_MINOR) $(ELFLIB_MAJOR) + $(ELFDIR_ELF_LIB): $(ELFDIR) $(ELFOBJS) + -$(RM) $(ELFDIR_ELF_LIB) +! cd $(ELFDIR); $(ELF_LINK),$(ELFLIB_MAJOR) -o $(ELFLIB_MAJOR_MINOR) $(OFILES) +! cd $(ELFDIR); $(RM) $(ELFLIB); $(LN) $(ELFLIB_MAJOR) $(ELFLIB) + @echo "" + @echo $(ELFLIB_MAJOR_MINOR) created in $(ELFDIR). +- @echo The link $(ELFLIB) to $(ELFLIB_MAJOR_MINOR) was also created. + @echo "" + $(OBJDIR) : + -$(MKDIR) $(OBJDIR) +--- 93,101 ---- + # cd $(ELFDIR); $(RM) $(ELFLIB_MAJOR); $(LN) $(ELFLIB_MAJOR_MINOR) $(ELFLIB_MAJOR) + $(ELFDIR_ELF_LIB): $(ELFDIR) $(ELFOBJS) + -$(RM) $(ELFDIR_ELF_LIB) +! cd $(ELFDIR); $(ELF_LINK) -o $(ELFLIB_MAJOR_MINOR) $(OFILES) + @echo "" + @echo $(ELFLIB_MAJOR_MINOR) created in $(ELFDIR). + @echo "" + $(OBJDIR) : + -$(MKDIR) $(OBJDIR) +*************** +*** 124,138 **** + install-elf: install elf $(install_lib_dir) $(install_include_dir) $(ELFDIR_ELF_LIB) + $(INSTALL_DATA) $(SRCDIR)/slang.h $(install_include_dir) + $(INSTALL_DATA) $(SRCDIR)/slcurses.h $(install_include_dir) +- -$(RM) $(install_lib_dir)/$(ELFLIB) +- -$(RM) $(install_lib_dir)/$(ELFLIB_MAJOR) + @echo installing $(ELFLIB_MAJOR_MINOR) in $(install_lib_dir) + $(INSTALL_DATA) $(ELFDIR_ELF_LIB) $(install_lib_dir) +- @echo creating symbolic links to $(ELFLIB_MAJOR_MINOR) +- -cd $(install_lib_dir); $(LN) $(ELFLIB_MAJOR_MINOR) $(ELFLIB) + @echo "" + @echo $(ELFLIB_MAJOR_MINOR) created in $(install_lib_dir). +- @echo The link $(ELFLIB) to $(ELFLIB_MAJOR_MINOR) was also created. + @echo "" + install-links: + -$(RM) $(install_lib_dir)/$(ELFLIB) +--- 122,131 ---- diff --git a/devel/libslang/patches/patch-ab b/devel/libslang/patches/patch-ab new file mode 100644 index 00000000000..d4fb1166651 --- /dev/null +++ b/devel/libslang/patches/patch-ab @@ -0,0 +1,12 @@ +*** configure.bak Tue Jan 21 09:58:15 1997 +--- configure Tue Jan 28 11:16:31 1997 +*************** +*** 1421,1426 **** +--- 1421,1427 ---- + slang_major_version=`echo $slang_version | + awk '{ print $1 - 100 * '$slang_minor_version' }'` + echo "$ac_t""$slang_major_version.$slang_minor_version" 1>&6 ++ slang_minor_version=`echo $slang_minor_version | tr -d '.'` + + + diff --git a/devel/libslang/pkg/COMMENT b/devel/libslang/pkg/COMMENT new file mode 100644 index 00000000000..54f69a958ef --- /dev/null +++ b/devel/libslang/pkg/COMMENT @@ -0,0 +1 @@ +Routines for rapid alpha-numeric terminal applications development diff --git a/devel/libslang/pkg/DESCR b/devel/libslang/pkg/DESCR new file mode 100644 index 00000000000..8af33ebd5d5 --- /dev/null +++ b/devel/libslang/pkg/DESCR @@ -0,0 +1,17 @@ + S-Lang is a C programmer's library that includes routines for the rapid + development of sophisticated, user friendly, multi-platform applications. + The S-Lang library includes the following: + + Low level tty input routines for reading single characters at a time. + Keymap routines for defining keys and manipulating multiple keymaps. + High level screen management routines for manipulating both + monochrome and color terminals. These routines are very + efficient. + Low level terminal-independent routines for manipulating the display + of a terminal. + Routines for reading single line input with line editing and recall + capabilities. + Searching functions: both ordinary searches and regular expression + searches. + An embedded stack-based language interpreter with a C-like syntax. + A malloc debugging package diff --git a/devel/libslang/pkg/PLIST b/devel/libslang/pkg/PLIST new file mode 100644 index 00000000000..15f9dba9187 --- /dev/null +++ b/devel/libslang/pkg/PLIST @@ -0,0 +1,7 @@ +lib/libslang.a +@exec ranlib %D/%F +lib/libslang.so.0.9938 +@exec rm -f %D/libslang.so.99.3[348] +@exec /sbin/ldconfig -m %B +include/slcurses.h +include/slang.h