1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

upgrade to 0.16.3

PR:		32862
Submitted by:	Ports Fury
This commit is contained in:
Ying-Chieh Liao 2001-12-17 19:27:57 +00:00
parent a3c0f873b8
commit 4c7eef9cba
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=51688
6 changed files with 55 additions and 59 deletions

View File

@ -6,16 +6,15 @@
#
PORTNAME= tn5250
PORTVERSION= 0.16.2
PORTVERSION= 0.16.3
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
USE_AUTOMAKE= yes
AUTOMAKE_ARGS= --include-deps
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ARGS= --enable-os-dir=no
INSTALLS_SHLIB= yes
@ -24,19 +23,25 @@ MAN1= scs2ascii.1 scs2pdf.1 tn5250.1 lp5250d.1
.if defined(WITH_SLANG)
LIB_DEPENDS= slang.1:${PORTSDIR}/devel/libslang
PKGNAMESUFFIX= -slang
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+= --with-slang
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -DUSE_CURSES" \
LDFLAGS="-L${LOCALBASE}/lib -lcurses"
CONFIGURE_ARGS+= --with-slang=yes
.else
CONFIGURE_ARGS+= --with-slang=no
.endif
pre-everything::
.if !defined(WITH_SLANG)
pre-everything:
@${ECHO_MSG}
@${ECHO_MSG} "If you want to compile with S/Lang support,"
@${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_SLANG=yes\""
@${ECHO_MSG}
.endif
post-patch:
@find ${WRKSRC}/src -name '*.[ch]' | xargs ${PERL} -pi -e \
's|<malloc.h>|<stdlib.h>|g'
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/freebsd/5250keys ${PREFIX}/bin
.for file in README sample.termcap us.5250.kbd

View File

@ -1 +1 @@
MD5 (tn5250-0.16.2.tar.gz) = 9508690ee431814b2a9ff731191879b1
MD5 (tn5250-0.16.3.tar.gz) = bf09402b03e2fcef5bf591005d5c4130

View File

@ -1,10 +0,0 @@
--- src/debug.c.orig Fri Feb 18 06:59:19 2000
+++ src/debug.c Mon Apr 10 03:00:00 2000
@@ -31,7 +31,6 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
-#include <malloc.h>
#include "utility.h"
#include "buffer.h"

View File

@ -1,10 +0,0 @@
--- src/tn5250-private.h.orig Sun Feb 13 11:32:48 2000
+++ src/tn5250-private.h Mon Apr 10 03:00:00 2000
@@ -29,7 +29,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
-#include <malloc.h>
#include <ctype.h>
#include <errno.h>
#include <signal.h>

View File

@ -1,30 +0,0 @@
--- configure.in.orig Wed Nov 1 04:09:17 2000
+++ configure.in Sat Dec 16 14:58:58 2000
@@ -56,6 +56,7 @@
if test "$with_slang" != "no"
then
USE_SLANG=1
+ AC_DEFINE_UNQUOTED(USE_CURSES,1)
AC_DEFINE_UNQUOTED(USE_SLANG,1)
else
USE_CURSES=1
@@ -65,7 +66,7 @@
USE_CURSES=1
AC_DEFINE_UNQUOTED(USE_CURSES,1)
])
-if test "$USE_CURSES" = "1"
+if test "$USE_CURSES" = "1" -o "$USE_SLANG" = "1"
then
AC_CHECK_LIB(ncurses, initscr)
if test "$ac_cv_lib_ncurses_initscr" != "yes"
@@ -103,7 +104,9 @@
AC_DEFINE_UNQUOTED(attr_t,int)
fi
AC_MSG_RESULT($HAVE_ATTR_T)
-else
+fi
+if test "$USE_SLANG" = "1"
+then
AC_CHECK_LIB(slang, SLang_init_tty)
if test "$ac_cv_lib_slang_SLang_init_tty" != "yes"
then

View File

@ -0,0 +1,41 @@
--- ltmain.sh.orig Sat Dec 8 06:29:06 2001
+++ ltmain.sh Thu Dec 13 06:40:22 2001
@@ -1043,14 +1043,14 @@
# These systems don't actually have a C library (as such)
test "X$arg" = "X-lc" && continue
;;
- *-*-openbsd*)
+ *-*-openbsd* | *-*-freebsd*)
# Do not include libc due to us having libc/libc_r.
test "X$arg" = "X-lc" && continue
;;
esac
elif test "X$arg" = "X-lc_r"; then
case $host in
- *-*-openbsd*)
+ *-*-openbsd* | *-*-freebsd*)
# Do not include libc_r directly, use -pthread flag.
continue
;;
@@ -2441,7 +2441,7 @@
*-*-netbsd*)
# Don't link with libc until the a.out ld.so is fixed.
;;
- *-*-openbsd*)
+ *-*-openbsd* | *-*-freebsd*)
# Do not include libc due to us having libc/libc_r.
;;
*)
@@ -4210,10 +4210,12 @@
fi
# Install the pseudo-library for information purposes.
+ if /usr/bin/false; then
name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
instname="$dir/$name"i
$show "$install_prog $instname $destdir/$name"
$run eval "$install_prog $instname $destdir/$name" || exit $?
+ fi
# Maybe install the static library, too.
test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"