svn commit: r313861 - head/print/lilypond

Pietro Cerutti gahr at FreeBSD.org
Mon Mar 11 08:28:31 UTC 2013


Author: gahr
Date: Mon Mar 11 08:28:30 2013
New Revision: 313861
URL: http://svnweb.freebsd.org/changeset/ports/313861

Log:
  - Convert to OPTIONSng

Modified:
  head/print/lilypond/Makefile

Modified: head/print/lilypond/Makefile
==============================================================================
--- head/print/lilypond/Makefile	Mon Mar 11 08:27:24 2013	(r313860)
+++ head/print/lilypond/Makefile	Mon Mar 11 08:28:30 2013	(r313861)
@@ -66,18 +66,19 @@ NOCCACHE=	yes
 PLIST_SUB=	PORTVERSION=${PORTVERSION}
 
 .include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
 
-.if defined(WITHOUT_NLS)
-PLIST_SUB+=	NLS="@comment "
-.else
+.if ${PORT_OPTIONS:MNLS}
 PLIST_SUB+=	NLS=""
+.else
+PLIST_SUB+=	NLS="@comment "
 .endif
 
 post-patch:
 	${REINPLACE_CMD} -e 's|<FlexLexer.h>|"/usr/include/FlexLexer.h"|' \
 	    ${WRKSRC}/lily/include/includable-lexer.hh
-.if defined(WITHOUT_NLS)
-	${REINPLACE_CMD} -e '/^PO_FILES/s|= |= #|' ${WRKSRC}/${MAKEFILE}
+.if empty(${PORT_OPTIONS:MNLS})
+	${REINPLACE_CMD} -e '/^PO_FILES/s|= |= #|' ${WRKSRC}/${MAKEFILE}.in
 .endif
 
 post-install:


More information about the svn-ports-head mailing list