From 37511bb87cfe202b46b7178a95201d9e09a2bd10 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Mon, 11 Mar 2013 08:28:30 +0000 Subject: [PATCH] - Convert to OPTIONSng --- print/lilypond/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/print/lilypond/Makefile b/print/lilypond/Makefile index 97c0f677b4a6..09e97ce050e9 100644 --- a/print/lilypond/Makefile +++ b/print/lilypond/Makefile @@ -66,18 +66,19 @@ NOCCACHE= yes PLIST_SUB= PORTVERSION=${PORTVERSION} .include +.include -.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||"/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: