HawkNL is a free, open source, game oriented network API released under the GNU
Library General Public License (LGPL). HawkNL (NL) is a fairly low level API,
a wrapper over Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for many OSs, groups of
sockets, socket statistics, high accuracy timer, CRC functions, macros to read
and write data to packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux, Solaris, IRIX, AIX,
BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94114
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-03-25 12:55:08 +01:00
|
|
|
# New ports collection makefile for: hawknl
|
|
|
|
# Date created: 2006-03-04
|
|
|
|
# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= hawknl
|
[REPOCOPY] net/hawknl-devel: Portable networking library (devel)
HawkNL is a free, open source, game oriented network API
released under the GNU Library General Public License (LGPL).
HawkNL (NL) is a fairly low level API, a wrapper over
Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for
many OSs, groups of sockets, socket statistics, high accuracy
timer, CRC functions, macros to read and write data to
packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux,
Solaris, IRIX, AIX, BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94984
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-04-05 00:44:04 +02:00
|
|
|
PORTVERSION= 1.70
|
HawkNL is a free, open source, game oriented network API released under the GNU
Library General Public License (LGPL). HawkNL (NL) is a fairly low level API,
a wrapper over Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for many OSs, groups of
sockets, socket statistics, high accuracy timer, CRC functions, macros to read
and write data to packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux, Solaris, IRIX, AIX,
BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94114
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-03-25 12:55:08 +01:00
|
|
|
CATEGORIES= net devel
|
|
|
|
MASTER_SITES= http://www.hawksoft.com/download/files/
|
[REPOCOPY] net/hawknl-devel: Portable networking library (devel)
HawkNL is a free, open source, game oriented network API
released under the GNU Library General Public License (LGPL).
HawkNL (NL) is a fairly low level API, a wrapper over
Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for
many OSs, groups of sockets, socket statistics, high accuracy
timer, CRC functions, macros to read and write data to
packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux,
Solaris, IRIX, AIX, BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94984
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-04-05 00:44:04 +02:00
|
|
|
PKGNAMESUFFIX= -devel
|
|
|
|
DISTNAME= HawkNL17b1src
|
HawkNL is a free, open source, game oriented network API released under the GNU
Library General Public License (LGPL). HawkNL (NL) is a fairly low level API,
a wrapper over Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for many OSs, groups of
sockets, socket statistics, high accuracy timer, CRC functions, macros to read
and write data to packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux, Solaris, IRIX, AIX,
BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94114
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-03-25 12:55:08 +01:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= acardenas@bsd.org.pe
|
[REPOCOPY] net/hawknl-devel: Portable networking library (devel)
HawkNL is a free, open source, game oriented network API
released under the GNU Library General Public License (LGPL).
HawkNL (NL) is a fairly low level API, a wrapper over
Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for
many OSs, groups of sockets, socket statistics, high accuracy
timer, CRC functions, macros to read and write data to
packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux,
Solaris, IRIX, AIX, BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94984
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-04-05 00:44:04 +02:00
|
|
|
COMMENT= Portable networking library (devel)
|
HawkNL is a free, open source, game oriented network API released under the GNU
Library General Public License (LGPL). HawkNL (NL) is a fairly low level API,
a wrapper over Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for many OSs, groups of
sockets, socket statistics, high accuracy timer, CRC functions, macros to read
and write data to packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux, Solaris, IRIX, AIX,
BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94114
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-03-25 12:55:08 +01:00
|
|
|
|
[REPOCOPY] net/hawknl-devel: Portable networking library (devel)
HawkNL is a free, open source, game oriented network API
released under the GNU Library General Public License (LGPL).
HawkNL (NL) is a fairly low level API, a wrapper over
Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for
many OSs, groups of sockets, socket statistics, high accuracy
timer, CRC functions, macros to read and write data to
packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux,
Solaris, IRIX, AIX, BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94984
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-04-05 00:44:04 +02:00
|
|
|
CONFLICTS= hawknl-[0-9]*
|
|
|
|
|
|
|
|
USE_ZIP= yes
|
HawkNL is a free, open source, game oriented network API released under the GNU
Library General Public License (LGPL). HawkNL (NL) is a fairly low level API,
a wrapper over Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for many OSs, groups of
sockets, socket statistics, high accuracy timer, CRC functions, macros to read
and write data to packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux, Solaris, IRIX, AIX,
BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94114
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-03-25 12:55:08 +01:00
|
|
|
USE_DOS2UNIX= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKEFILE= makefile.linux
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include
|
|
|
|
MAKE_ENV= CC="${CC}" CFLAGS="${CFLAGS} ${OPTFLAGS}" \
|
|
|
|
LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"
|
|
|
|
|
[REPOCOPY] net/hawknl-devel: Portable networking library (devel)
HawkNL is a free, open source, game oriented network API
released under the GNU Library General Public License (LGPL).
HawkNL (NL) is a fairly low level API, a wrapper over
Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for
many OSs, groups of sockets, socket statistics, high accuracy
timer, CRC functions, macros to read and write data to
packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux,
Solaris, IRIX, AIX, BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94984
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-04-05 00:44:04 +02:00
|
|
|
WRKSRC= ${WRKDIR}/HawkNL1.70
|
HawkNL is a free, open source, game oriented network API released under the GNU
Library General Public License (LGPL). HawkNL (NL) is a fairly low level API,
a wrapper over Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for many OSs, groups of
sockets, socket statistics, high accuracy timer, CRC functions, macros to read
and write data to packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux, Solaris, IRIX, AIX,
BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94114
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-03-25 12:55:08 +01:00
|
|
|
|
|
|
|
OPTIONS= OPTIMIZATION "Enable optimization" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-07-16 00:17:31 +02:00
|
|
|
.if ${ARCH} == i386 && ${OSVERSION} < 500000
|
|
|
|
BROKEN= does not compile on i386-4
|
|
|
|
.endif
|
|
|
|
.if ${ARCH} == amd64 || ${ARCH} == ia64
|
|
|
|
BROKEN= does not compile on ${ARCH}
|
|
|
|
.endif
|
|
|
|
|
HawkNL is a free, open source, game oriented network API released under the GNU
Library General Public License (LGPL). HawkNL (NL) is a fairly low level API,
a wrapper over Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for many OSs, groups of
sockets, socket statistics, high accuracy timer, CRC functions, macros to read
and write data to packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux, Solaris, IRIX, AIX,
BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94114
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-03-25 12:55:08 +01:00
|
|
|
.if defined(WITH_OPTIMIZATION)
|
|
|
|
CFLAGS+= -funroll-all-loops -ffast-math -fomit-frame-pointer -D_GNU_SOURCE -D_REENTRANT
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|make -f|${GMAKE} -f|g' ${WRKSRC}/${MAKEFILE}
|
[REPOCOPY] net/hawknl-devel: Portable networking library (devel)
HawkNL is a free, open source, game oriented network API
released under the GNU Library General Public License (LGPL).
HawkNL (NL) is a fairly low level API, a wrapper over
Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for
many OSs, groups of sockets, socket statistics, high accuracy
timer, CRC functions, macros to read and write data to
packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux,
Solaris, IRIX, AIX, BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94984
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-04-05 00:44:04 +02:00
|
|
|
${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/src/nlinternal.h ${WRKSRC}/src/htinternal.h
|
HawkNL is a free, open source, game oriented network API released under the GNU
Library General Public License (LGPL). HawkNL (NL) is a fairly low level API,
a wrapper over Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for many OSs, groups of
sockets, socket statistics, high accuracy timer, CRC functions, macros to read
and write data to packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux, Solaris, IRIX, AIX,
BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94114
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-03-25 12:55:08 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
[REPOCOPY] net/hawknl-devel: Portable networking library (devel)
HawkNL is a free, open source, game oriented network API
released under the GNU Library General Public License (LGPL).
HawkNL (NL) is a fairly low level API, a wrapper over
Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for
many OSs, groups of sockets, socket statistics, high accuracy
timer, CRC functions, macros to read and write data to
packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux,
Solaris, IRIX, AIX, BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94984
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-04-05 00:44:04 +02:00
|
|
|
.for FILE in readme.txt NLchanges.txt
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/src/${FILE} ${DOCSDIR}
|
HawkNL is a free, open source, game oriented network API released under the GNU
Library General Public License (LGPL). HawkNL (NL) is a fairly low level API,
a wrapper over Berkeley/Unix Sockets and Winsock.
But NL also provides other features including support for many OSs, groups of
sockets, socket statistics, high accuracy timer, CRC functions, macros to read
and write data to packets with endian conversion, and support for multiple
network transports.
NL has been tested on Windows 9x/ME/NT/2000/XP/CE, Linux, Solaris, IRIX, AIX,
BSDs, Mac OSX.
WWW: http://www.hawksoft.com/hawknl/
PR: ports/94114
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
2006-03-25 12:55:08 +01:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|