diff options
author | jgh <jgh@FreeBSD.org> | 2013-03-15 09:18:05 +0800 |
---|---|---|
committer | jgh <jgh@FreeBSD.org> | 2013-03-15 09:18:05 +0800 |
commit | f0186dc18dd7da61d5cd86647a61a752c3057b0b (patch) | |
tree | ae5038d37fdf461fc169ba36834c1c3ee2fae615 /audio | |
parent | 9d246e56aee532a73b4756bb02696ce8eaa2dd5b (diff) | |
download | freebsd-ports-gnome-f0186dc18dd7da61d5cd86647a61a752c3057b0b.tar.gz freebsd-ports-gnome-f0186dc18dd7da61d5cd86647a61a752c3057b0b.tar.zst freebsd-ports-gnome-f0186dc18dd7da61d5cd86647a61a752c3057b0b.zip |
- adopt optionsNG
PR: 173798
Submitted by: c.petrik.sosa@gmail.com
Approved by: portmgr (miwi)
Diffstat (limited to 'audio')
-rw-r--r-- | audio/hawkvoice/Makefile | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/audio/hawkvoice/Makefile b/audio/hawkvoice/Makefile index 4fe42f92b4ba..4f07958160b7 100644 --- a/audio/hawkvoice/Makefile +++ b/audio/hawkvoice/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: hawkvoice -# Date created: 2006-03-05 -# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> -# +# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> # $FreeBSD$ -# PORTNAME= hawkvoice PORTVERSION= 0.91 @@ -27,27 +23,27 @@ MAKE_ENV= MAKE="${GMAKE}" WRKSRC= ${WRKDIR}/HawkVoiceDI/src -OPTIONS= OPTIMIZATION "Enable optimization" off +OPTIONS_DEFINE= OPTIMIZED_CFLAGS -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> .if ${ARCH} == "amd64" || ${ARCH} == "ia64" CFLAGS+= -fPIC -DPIC .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 post-patch: - ${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' "{}" \; + @${FIND} ${WRKSRC} -type f -exec ${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' "{}" \; post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} .for FILE in api.txt HVDIchanges.txt readme.txt cryptapi.txt ${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR} .endfor .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |