aboutsummaryrefslogtreecommitdiff
path: root/net/hawknl-devel
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-06-05 12:51:05 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-06-05 12:51:05 +0000
commit91cb18c6037b48b4c87983855f80550fcc574178 (patch)
tree413f7b40f311ee16bcc0b96d6884ec01be654394 /net/hawknl-devel
parenteae6ba083dffd03d27a1b3dfd1fd2a9f263bf9d2 (diff)
downloadports-91cb18c6037b48b4c87983855f80550fcc574178.tar.gz
ports-91cb18c6037b48b4c87983855f80550fcc574178.zip
Notes
Diffstat (limited to 'net/hawknl-devel')
-rw-r--r--net/hawknl-devel/Makefile12
1 files changed, 4 insertions, 8 deletions
diff --git a/net/hawknl-devel/Makefile b/net/hawknl-devel/Makefile
index 46d40a42a6b3..fda2e69cf638 100644
--- a/net/hawknl-devel/Makefile
+++ b/net/hawknl-devel/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: hawknl
-# Date created: 2006-03-04
-# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
-#
+# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$
-#
PORTNAME= hawknl
PORTVERSION= 1.70
@@ -29,7 +25,7 @@ CPPFLAGS+= -I${LOCALBASE}/include
WRKSRC= ${WRKDIR}/HawkNL1.70
-OPTIONS= OPTIMIZATION "Enable optimization" off
+OPTIONS_DEFINE= OPTIMIZED_CFLAGS
.include <bsd.port.pre.mk>
@@ -37,7 +33,7 @@ OPTIONS= OPTIMIZATION "Enable optimization" off
BROKEN= does not compile on ${ARCH}
.endif
-.if defined(WITH_OPTIMIZATION)
+.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CFLAGS+= -funroll-all-loops -ffast-math -fomit-frame-pointer -D_GNU_SOURCE -D_REENTRANT
.endif
@@ -46,7 +42,7 @@ post-patch:
${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' ${WRKSRC}/src/nlinternal.h ${WRKSRC}/src/htinternal.h
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for FILE in readme.txt NLchanges.txt
@${INSTALL_DATA} ${WRKSRC}/src/${FILE} ${DOCSDIR}