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: