# Created by: Jose Alonso Cardenas Marquez # $FreeBSD$ PORTNAME= hawknl PORTVERSION= 1.68 CATEGORIES= net devel MASTER_SITES= http://www.hawksoft.com/download/files/ DISTNAME= HawkNL168src DIST_SUBDIR= ${PORTNAME} MAINTAINER= acm@FreeBSD.org COMMENT= Portable networking library USES= dos2unix gmake MAKEFILE= makefile.linux USE_LDCONFIG= yes LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} CPPFLAGS+= -I${LOCALBASE}/include WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION} OPTIONS_DEFINE= OPTIMIZED_CFLAGS NO_STAGE= yes .include .if ${ARCH} == "amd64" || ${ARCH} == "ia64" CFLAGS+= -fPIC -DPIC .endif .if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} 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 ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for FILE in readme.txt nlchanges.txt ${INSTALL_DATA} ${WRKSRC}/src/${FILE} ${DOCSDIR} .endfor .endif .include