diff options
author | bapt <bapt@FreeBSD.org> | 2013-06-05 20:51:05 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-06-05 20:51:05 +0800 |
commit | 1594a2b796f83b44f0ac778d9d79c529a0e17c36 (patch) | |
tree | 413f7b40f311ee16bcc0b96d6884ec01be654394 /net/hawknl-devel | |
parent | 7c48582402b60f4e4fe1ba7c0618b09a4e78a9b8 (diff) | |
download | freebsd-ports-gnome-1594a2b796f83b44f0ac778d9d79c529a0e17c36.tar.gz freebsd-ports-gnome-1594a2b796f83b44f0ac778d9d79c529a0e17c36.tar.zst freebsd-ports-gnome-1594a2b796f83b44f0ac778d9d79c529a0e17c36.zip |
Convert to new options framework
Diffstat (limited to 'net/hawknl-devel')
-rw-r--r-- | net/hawknl-devel/Makefile | 12 |
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} |