summaryrefslogtreecommitdiff
path: root/net/libtnl
diff options
context:
space:
mode:
Diffstat (limited to 'net/libtnl')
-rw-r--r--net/libtnl/Makefile46
-rw-r--r--net/libtnl/distinfo2
-rw-r--r--net/libtnl/files/Makefile.bsd66
-rw-r--r--net/libtnl/files/patch-platform105
-rw-r--r--net/libtnl/files/patch-tnlTypes.h27
-rw-r--r--net/libtnl/pkg-descr9
-rw-r--r--net/libtnl/pkg-plist37
7 files changed, 0 insertions, 292 deletions
diff --git a/net/libtnl/Makefile b/net/libtnl/Makefile
deleted file mode 100644
index 88fb8d4e7d82..000000000000
--- a/net/libtnl/Makefile
+++ /dev/null
@@ -1,46 +0,0 @@
-PORTNAME= libtnl
-PORTVERSION= 1.5.0
-PORTREVISION= 8
-CATEGORIES= net devel
-MASTER_SITES= SF/opentnl/TNL%20Source/${PORTVERSION}
-DISTNAME= tnl-${PORTVERSION}-source
-
-MAINTAINER= bofh@FreeBSD.org
-COMMENT= Robust, secure, easy to use cross-platform C++ networking API
-WWW= https://sourceforge.net/projects/opentnl/
-
-LICENSE= GPLv2+
-LICENSE_FILE= ${WRKSRC}/../LICENSE.txt
-
-DEPRECATED= Unmaintained upstream and no consumers in the ports tree
-EXPIRATION_DATE=2025-04-28
-
-# Other arches can be added easily, provided there is hardware to test:
-ONLY_FOR_ARCHS= amd64 powerpc powerpc64 powerpc64le
-
-USES= uidfix
-USE_GCC= yes
-USE_LDCONFIG= yes
-
-MAKEFILE= ${FILESDIR}/Makefile.bsd
-
-WRKSRC= ${WRKDIR}/tnl/tnl
-
-.include <bsd.port.pre.mk>
-
-.if defined(NO_PROFILE) || defined(NOPROFILE) || ${OPSYS} == FreeBSD
-PLIST_SUB+= PROFILE='@comment '
-.else
-PLIST_SUB+= PROFILE=''
-.endif
-
-# When security/libtomcrypt is fixed to provide a shared version, we'll
-# stop extracting our own and will LIB_DEPEND on theirs instead:
-#LIB_DEPENDS= tomcrypt:security/libtomcrypt
-#
-#EXTRACT_AFTER_ARGS=|${TAR} -xpf - --exclude tnl/libtomcrypt
-
-pre-install:
- @${MKDIR} ${STAGEDIR}${PREFIX}/include/tnl
-
-.include <bsd.port.post.mk>
diff --git a/net/libtnl/distinfo b/net/libtnl/distinfo
deleted file mode 100644
index 60d0985222e6..000000000000
--- a/net/libtnl/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (tnl-1.5.0-source.tar.gz) = 28f55eedbe3346ebdbd9cb69e6640d3bc67cd876e70daf90f1fd90e3cbe757df
-SIZE (tnl-1.5.0-source.tar.gz) = 2292358
diff --git a/net/libtnl/files/Makefile.bsd b/net/libtnl/files/Makefile.bsd
deleted file mode 100644
index 6c1fc7de673e..000000000000
--- a/net/libtnl/files/Makefile.bsd
+++ /dev/null
@@ -1,66 +0,0 @@
-LIB= tnl
-CXXFLAGS+= -I../libtomcrypt -w -g -fpermissive -DNO_IPX_SUPPORT -DTNL_OS_LINUX -DTNL_DEBUG -D_TNL_ENABLE_LOGGING
-SHLIB_MAJOR= 1
-SHLIB_MINOR= 5
-SRCS= assert.cpp\
- asymmetricKey.cpp\
- bitStream.cpp\
- byteBuffer.cpp\
- certificate.cpp\
- clientPuzzle.cpp\
- connectionStringTable.cpp\
- dataChunker.cpp\
- eventConnection.cpp\
- ghostConnection.cpp\
- huffmanStringProcessor.cpp\
- log.cpp\
- netBase.cpp\
- netConnection.cpp\
- netInterface.cpp\
- netObject.cpp\
- netStringTable.cpp\
- platform.cpp\
- random.cpp\
- rpc.cpp\
- symmetricCipher.cpp\
- tnlMethodDispatch.cpp\
- journal.cpp\
- udp.cpp\
- vector.cpp
-INCS= tnl.h \
- tnlNetBase.h \
- tnlAssert.h \
- tnlNetConnection.h \
- tnlAsymmetricKey.h \
- tnlNetEvent.h \
- tnlBitSet.h \
- tnlNetInterface.h \
- tnlBitStream.h \
- tnlNetObject.h \
- tnlByteBuffer.h \
- tnlNetStringTable.h \
- tnlCertificate.h \
- tnlNonce.h \
- tnlClientPuzzle.h \
- tnlPlatform.h \
- tnlConnectionStringTable.h \
- tnlRPC.h \
- tnlDataChunker.h \
- tnlRandom.h \
- tnlEndian.h \
- tnlString.h \
- tnlEventConnection.h \
- tnlSymmetricCipher.h \
- tnlGhostConnection.h \
- tnlThread.h \
- tnlHuffmanStringProcessor.h \
- tnlTypes.h \
- tnlJournal.h \
- tnlUDP.h \
- tnlLog.h \
- tnlVector.h \
- tnlMethodDispatch.h
-INCLUDEDIR= ${PREFIX}/include/tnl
-LIBDIR= ${PREFIX}/lib
-
-.include <bsd.lib.mk>
diff --git a/net/libtnl/files/patch-platform b/net/libtnl/files/patch-platform
deleted file mode 100644
index 9b79b1939863..000000000000
--- a/net/libtnl/files/patch-platform
+++ /dev/null
@@ -1,105 +0,0 @@
---- platform.cpp.orig 2004-08-20 18:26:58 UTC
-+++ platform.cpp
-@@ -434,55 +434,4 @@ bool atob(const char *str)
- return !stricmp(str, "true") || atof(str);
- }
-
--S32 dSprintf(char *buffer, U32 bufferSize, const char *format, ...)
--{
-- va_list args;
-- va_start(args, format);
--#ifdef TNL_COMPILER_VISUALC
-- S32 len = _vsnprintf(buffer, bufferSize, format, args);
--#else
-- S32 len = vsnprintf(buffer, bufferSize, format, args);
--#endif
-- return (len);
--}
--
--
--S32 dVsprintf(char *buffer, U32 bufferSize, const char *format, void *arglist)
--{
--#ifdef TNL_COMPILER_VISUALC
-- S32 len = _vsnprintf(buffer, bufferSize, format, (va_list) arglist);
--#else
-- S32 len = vsnprintf(buffer, bufferSize, format, (char *) arglist);
--#endif
-- return len;
--}
--
- };
--
--
--#if defined (__GNUC__)
--
--int stricmp(const char *str1, const char *str2)
--{
-- while(toupper(*str1) == toupper(*str2) && *str1)
-- {
-- str1++;
-- str2++;
-- }
-- return (toupper(*str1) > toupper(*str2)) ? 1 : ((toupper(*str1) < toupper(*str2)) ? -1 : 0);
--}
--
--int strnicmp(const char *str1, const char *str2, unsigned int len)
--{
-- for(unsigned int i = 0; i < len; i++)
-- {
-- if(toupper(str1[i]) == toupper(str2[i]))
-- continue;
-- return (toupper(str1[i]) > toupper(str2[i])) ? 1 : ((toupper(str1[i]) < toupper(str2[i])) ? -1 : 0);
-- }
-- return 0;
--}
--
--#endif
--
--
-Use defines instead of (partially incorrect) function-wrappers for
-standard functions.
-
- -mi
-
---- tnlPlatform.h.orig 2004-09-28 18:45:25 UTC
-+++ tnlPlatform.h
-@@ -30,6 +30,7 @@
- #ifndef _TNL_TYPES_H_
- #include "tnlTypes.h"
- #endif
-+#include <stdio.h>
-
- namespace TNL {
-
-@@ -100,13 +101,14 @@ extern bool atob(const char *str); ///< String
- /// Printf into string with a buffer size.
- ///
- /// This will print into the specified string until the buffer size is reached.
--extern int dSprintf(char *buffer, U32 bufferSize, const char *format, ...);
-+#ifdef TNL_COMPILER_VISUALC
-+# define dSprintf _snprintf
-+# define dVsprintf _vsnprintf
-+#else
-+# define dSprintf snprintf
-+# define dVsprintf vsnprintf
-+#endif
-
--/// Vsprintf with buffer size argument.
--///
--/// This will print into the specified string until the buffer size is reached.
--extern int dVsprintf(char *buffer, U32 bufferSize, const char *format, void *arglist); ///< compiler independent
--
- inline char dToupper(const char c) { if (c >= char('a') && c <= char('z')) return char(c + 'A' - 'a'); else return c; } ///< Converts an ASCII character to upper case.
- inline char dTolower(const char c) { if (c >= char('A') && c <= char('Z')) return char(c - 'A' + 'a'); else return c; } ///< Converts an ASCII character to lower case.
-
-@@ -119,8 +121,8 @@ inline char dTolower(const char c) { if (c >= char('A'
-
- #if defined (__GNUC__)
-
--int stricmp(const char *str1, const char *str2);
--int strnicmp(const char *str1, const char *str2, unsigned int len);
-+#define stricmp(str1, str2) strcasecmp(str1, str2)
-+#define strnicmp(str1, str2, size) strncasecmp(str1, str2, size)
-
- #endif
-
diff --git a/net/libtnl/files/patch-tnlTypes.h b/net/libtnl/files/patch-tnlTypes.h
deleted file mode 100644
index d8195f5d8877..000000000000
--- a/net/libtnl/files/patch-tnlTypes.h
+++ /dev/null
@@ -1,27 +0,0 @@
-This allows building on amd64 and with gcc above 3.x. Adding support for
-other architectures is easy too.
-
- -mi
-
---- tnlTypes.h.orig 2004-09-28 18:45:25 UTC
-+++ tnlTypes.h
-@@ -284,8 +284,8 @@ typedef unsigned long long U64; ///< Compiler indepe
- // Identify the target CPU and assembly language options
- //----------------------------------------------------------------------------------
-
--#if defined(_M_IX86) || defined(i386)
--# define TNL_CPU_STRING "Intel x86"
-+#if defined(_M_IX86) || defined(i386) || defined(__amd64__)
-+# define TNL_CPU_STRING "x86"
- # define TNL_CPU_X86
- # define TNL_LITTLE_ENDIAN
- # define TNL_SUPPORTS_NASM
-@@ -293,7 +293,7 @@ typedef unsigned long long U64; ///< Compiler indepe
- # if defined (__GNUC__)
- # if __GNUC__ == 2
- # define TNL_GCC_2
--# elif __GNUC__ == 3
-+# elif __GNUC__ >= 3
- # define TNL_GCC_3
- # else
- # error "TNL: Unsupported version of GCC (see tnlMethodDispatch.cpp)"
diff --git a/net/libtnl/pkg-descr b/net/libtnl/pkg-descr
deleted file mode 100644
index ba98865231ef..000000000000
--- a/net/libtnl/pkg-descr
+++ /dev/null
@@ -1,9 +0,0 @@
-The Torque Network Library is a robust, secure, easy to use, cross-platform
-C++ networking API designed for high performance simulations and games. The
-network architecture in TNL has powered some of the best internet
-multiplayer action games to date. Whether you're writing a multiplayer game,
-developing a complex simulation, or just need a solid foundation for network
-apps, TNL will meet your needs.
-
-TNL is available under the GNU General Public License (GPL), an indie
-license, and a commercial license.
diff --git a/net/libtnl/pkg-plist b/net/libtnl/pkg-plist
deleted file mode 100644
index dc14292d56ae..000000000000
--- a/net/libtnl/pkg-plist
+++ /dev/null
@@ -1,37 +0,0 @@
-include/tnl/tnl.h
-include/tnl/tnlAssert.h
-include/tnl/tnlAsymmetricKey.h
-include/tnl/tnlBitSet.h
-include/tnl/tnlBitStream.h
-include/tnl/tnlByteBuffer.h
-include/tnl/tnlCertificate.h
-include/tnl/tnlClientPuzzle.h
-include/tnl/tnlConnectionStringTable.h
-include/tnl/tnlDataChunker.h
-include/tnl/tnlEndian.h
-include/tnl/tnlEventConnection.h
-include/tnl/tnlGhostConnection.h
-include/tnl/tnlHuffmanStringProcessor.h
-include/tnl/tnlJournal.h
-include/tnl/tnlLog.h
-include/tnl/tnlMethodDispatch.h
-include/tnl/tnlNetBase.h
-include/tnl/tnlNetConnection.h
-include/tnl/tnlNetEvent.h
-include/tnl/tnlNetInterface.h
-include/tnl/tnlNetObject.h
-include/tnl/tnlNetStringTable.h
-include/tnl/tnlNonce.h
-include/tnl/tnlPlatform.h
-include/tnl/tnlRPC.h
-include/tnl/tnlRandom.h
-include/tnl/tnlString.h
-include/tnl/tnlSymmetricCipher.h
-include/tnl/tnlThread.h
-include/tnl/tnlTypes.h
-include/tnl/tnlUDP.h
-include/tnl/tnlVector.h
-lib/libtnl.a
-lib/libtnl.so
-lib/libtnl.so.1
-%%PROFILE%%lib/libtnl_p.a