svn commit: r320943 - head/audio/alac
Baptiste Daroussin
bapt at FreeBSD.org
Fri Jun 14 14:46:57 UTC 2013
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 at FreeBSD.org>
-#
+# Created by: Michael Johnson <ahze at 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
More information about the svn-ports-head
mailing list