Update slang to version 1.3.7

WARNING: You MUST pkg_delete your old version before installing this one.
Why?  because I was too lazy to teach slang about OpenBSD shared libs
(It only knows Linux shared libs) and thus only built the static lib.

This probably has broken some other ports that depend upon slang.
I'll find and fix them next
This commit is contained in:
marc 1999-06-23 01:44:36 +00:00
parent 33795d1842
commit 389a2b9c09
6 changed files with 34 additions and 89 deletions

View File

@ -1,24 +1,18 @@
# $OpenBSD: Makefile,v 1.8 1999/04/01 06:20:07 brad Exp $
# $OpenBSD: Makefile,v 1.9 1999/06/23 01:44:36 marc Exp $
DISTNAME= slang1.2.2
PKGNAME= libslang-1.2.2
DISTNAME= slang-1.3.7
PKGNAME= libslang-1.3.7
CATEGORIES= devel
NEED_VERSION= 1.64
MAINTAINER= todd@OpenBSD.org
MAINTAINER= todd@OpenBSD.org
MASTER_SITES= ftp://space.mit.edu/pub/davis/slang/
MASTER_SITES= ftp://space.mit.edu/pub/davis/slang/v1.3/
GNU_CONFIGURE= yes
ALL_TARGET= all
INSTALL_TARGET= install
.if (${MACHINE_ARCH} != "alpha")
ALL_TARGET+= elf
INSTALL_TARGET+=install-elf
.endif
WRKSRC= ${WRKDIR}/slang
post-install:
${LDCONFIG} -m ${PREFIX}/lib
test:
@cd ${WRKSRC} && ${MAKE} runtests
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
MD5 (slang1.2.2.tar.gz) = f0b71a8f9c6f2ccef07eaaa4068b3d1e
RMD160 (slang1.2.2.tar.gz) = c3792ec5eb766595d7fbba547849458972ef6b2a
SHA1 (slang1.2.2.tar.gz) = 4c3f128204b728fd8624ae98db52f026301328be
MD5 (slang-1.3.7.tar.gz) = daea2a2b5f013ada6dc292273fc300b3
RMD160 (slang-1.3.7.tar.gz) = ec5296581479cda251aa48289d66e32e372c8687
SHA1 (slang-1.3.7.tar.gz) = d142272b8495cbd82c22a11daf7cc8177d37b955

View File

@ -1,55 +1,12 @@
--- src/Makefile.in.orig Fri Apr 24 08:17:04 1998
+++ src/Makefile.in Tue Oct 27 11:32:50 1998
@@ -2,15 +2,15 @@
#---------------------------------------------------------------------------
# ANSI C compiler
#---------------------------------------------------------------------------
-CC = @CC@
-CFLAGS = @CFLAGS@
+#CC = @CC@
+#CFLAGS = @CFLAGS@
LDFLAGS = @LDFLAGS@
#---------------------------------------------------------------------------
# ELF specific (Linux)
#---------------------------------------------------------------------------
-ELF_CC = @ELF_CC@
-ELF_CFLAGS = @ELF_CFLAGS@
-ELF_LINK = @ELF_LINK@
+ELF_CC = $(CC)
+ELF_CFLAGS = $(CFLAGS) -DPIC -fpic
+ELF_LINK = ld -Bshareable
ELF_DEP_LIBS = -lm
#---------------------------------------------------------------------------
@@ -95,13 +95,12 @@
@echo ""
@echo $(NORMAL_LIB) created in $(OBJDIR)
+# cd $(ELFDIR); $(RM) $(ELFLIB); $(LN) $(ELFLIB_MAJOR_MINOR) $(ELFLIB)
$(ELFDIR_ELF_LIB): $(ELFDIR) $(CONFIG_H) $(ELFOBJS)
-$(RM) $(ELFDIR_ELF_LIB)
- cd $(ELFDIR); $(ELF_LINK_CMD) -o $(ELFLIB_MAJOR_MINOR) $(OFILES) $(ELF_DEP_LIBS)
- cd $(ELFDIR); $(RM) $(ELFLIB); $(LN) $(ELFLIB_MAJOR_MINOR) $(ELFLIB)
+ cd $(ELFDIR); $(ELF_LINK) -o $(ELFLIB_MAJOR_MINOR) $(OFILES) $(ELF_DEP_LIBS)
@echo ""
@echo $(ELFLIB_MAJOR_MINOR) created in $(ELFDIR).
- @echo The link $(ELFLIB) to $(ELFLIB_MAJOR_MINOR) was also created.
@echo ""
$(OBJDIR) :
-$(MKDIR) $(OBJDIR)
@@ -128,15 +127,10 @@
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)
--- autoconf/config.guess.~1~ Sun Jun 6 16:34:54 1999
+++ autoconf/config.guess Tue Jun 22 18:19:33 1999
@@ -324,6 +324,9 @@
*:NetBSD:*:*)
echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
exit 0 ;;
+ *:OpenBSD:*:*)
+ echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
+ exit 0 ;;
i*:CYGWIN*:*)
echo i386-unknown-cygwin32
exit 0 ;;

View File

@ -1,12 +1,11 @@
*** 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 '.'`
--- autoconf/config.sub.~1~ Sun Jun 6 16:34:54 1999
+++ autoconf/config.sub Tue Jun 22 18:18:56 1999
@@ -641,7 +641,7 @@
| -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \
| -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
- | -udi* | -eabi* | -lites* )
+ | -udi* | -eabi* | -lites* | -openbsd* )
# Remember, each alternative MUST END IN *, to match a version number.
;;
-sunos5*)

View File

@ -1,5 +1,3 @@
lib/libslang.a
lib/libslang.so.1.22
@exec /sbin/ldconfig -m %B
include/slcurses.h
include/slang.h

View File

@ -1,3 +0,0 @@
lib/libslang.a
include/slcurses.h
include/slang.h