Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Jun 2013 14:46:57 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r320943 - head/audio/alac
Message-ID:  <201306141446.r5EEkvU8054791@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Fri Jun 14 14:46:57 2013
New Revision: 320943
URL: http://svnweb.freebsd.org/changeset/ports/320943

Log:
  Trim headers
  Convert WITH to options

Modified:
  head/audio/alac/Makefile

Modified: head/audio/alac/Makefile
==============================================================================
--- head/audio/alac/Makefile	Fri Jun 14 14:44:56 2013	(r320942)
+++ head/audio/alac/Makefile	Fri Jun 14 14:46:57 2013	(r320943)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	alac
-# Date created:		2005-03-08
-# Whom:			Michael Johnson <ahze@FreeBSD.org>
-#
+# Created by: Michael Johnson <ahze@FreeBSD.org>
 # $FreeBSD$
-#
 
 PORTNAME=	alac
 PORTVERSION=	0.2.0
@@ -18,11 +14,15 @@ COMMENT=	Basic decoder for Apple Lossles
 WRKSRC=		${WRKDIR}/${PORTNAME}_decoder
 ALL_TARGET=	alac
 
+OPTIONS_DEFINE=	DOCS DEBUG
+
 PLIST_FILES=	bin/alac
 PORTDOCS=	README
 
+.include <bsd.port.options.mk>
+
 post-patch:
-.if !defined(WITH_DEBUG)
+.if ! ${PORT_OTPIONS:MDEBUG}
 	@${REINPLACE_CMD} -e 's|-ggdb||' \
 		${WRKSRC}/${MAKEFILE}
 .endif
@@ -31,7 +31,7 @@ post-patch:
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/alac ${PREFIX}/bin/
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
 	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
 .endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306141446.r5EEkvU8054791>