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
|
|
|
|
PORTVERSION= 1.68
|
|
|
|
CATEGORIES= net devel
|
|
|
|
MASTER_SITES= http://www.hawksoft.com/download/files/
|
|
|
|
DISTNAME= HawkNL168src
|
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
|
2006-07-23 04:45:24 +02:00
|
|
|
MAINTAINER= acm@FreeBSD.org
|
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
|
|
|
COMMENT= Portable networking library
|
|
|
|
|
|
|
|
USE_DOS2UNIX= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKEFILE= makefile.linux
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_LDCONFIG= 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
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
2008-07-25 14:24:09 +02:00
|
|
|
MAKE_ENV= LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"
|
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
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}
|
|
|
|
|
|
|
|
OPTIONS= OPTIMIZATION "Enable optimization" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-03-30 20:20:39 +02:00
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64"
|
|
|
|
CFLAGS+= -fPIC -DPIC
|
|
|
|
.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}
|
|
|
|
${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/src/nlinternal.h
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for FILE in readme.txt nlchanges.txt
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|