aboutsummaryrefslogtreecommitdiff
path: root/audio/flac
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@FreeBSD.org>2012-12-18 21:29:04 +0000
committerChristian Weisgerber <naddy@FreeBSD.org>2012-12-18 21:29:04 +0000
commit6f9014623279a77d6d80ffdef6b3133173953ad1 (patch)
tree4627c59ede033a99d1414f0fc74ac26cb38968bc /audio/flac
parent727c03d0f133ccdcbe15097751b16b402a9e14a5 (diff)
downloadports-6f9014623279a77d6d80ffdef6b3133173953ad1.tar.gz
ports-6f9014623279a77d6d80ffdef6b3133173953ad1.zip
Convert to OptionsNG and trim Makefile headers.
Notes
Notes: svn path=/head/; revision=309200
Diffstat (limited to 'audio/flac')
-rw-r--r--audio/flac/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/audio/flac/Makefile b/audio/flac/Makefile
index 3de689327bc1..9a8a4b878abc 100644
--- a/audio/flac/Makefile
+++ b/audio/flac/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: flac
-# Date created: Mar 18, 2001
-# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
-#
+# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= flac
PORTVERSION= 1.2.1
@@ -25,7 +21,12 @@ CONFIGURE_ARGS= --enable-sse \
CPPFLAGS+= -I${WRKSRC}/include
MAKE_JOBS_SAFE= yes
-.if !defined(WITHOUT_ICONV)
+OPTIONS_DEFINE= ICONV
+OPTIONS_DEFAULT=ICONV
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MICONV}
USE_ICONV= yes
CONFIGURE_ARGS+=--with-libiconv-prefix="${LOCALBASE}"
.else
@@ -33,10 +34,10 @@ CONFIGURE_ARGS+=--without-libiconv-prefix
.endif
MAKE_ARGS= pkgconfigdir="${PREFIX}/libdata/pkgconfig"
-.if defined(NOPORTDOCS)
-MAKE_ENV+= DOC=""
-.else
+.if ${PORT_OPTIONS:MDOCS}
MAKE_ENV+= DOC=doc
+.else
+MAKE_ENV+= DOC=""
.endif
USE_LDCONFIG= yes