Skip to content

Commit

Permalink
Fix build with NLS enabled by removing unnecessary gcc-ism.
Browse files Browse the repository at this point in the history
While here, use OPTIONS helpers to avoid including bsd.port.options.mk.
  • Loading branch information
assistcontrol committed Jul 24, 2014
1 parent e5719f3 commit 36103be
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions deskutils/calcurse/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,19 @@ COMMENT= Text-based calendar and scheduling application
LICENSE= BSD2CLAUSE

OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes

USES= gmake
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-asciidoc

.include <bsd.port.options.mk>

.if empty(PORT_OPTIONS:MDOCS)
CONFIGURE_ARGS+= --disable-docs
.endif

.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
DOCS_CONFIGURE_ENABLE= docs
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext

post-patch:
.if ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e 's|^docdir = .*|docdir = ${DOCSDIR}|' ${WRKSRC}/doc/Makefile.in
.endif
@${REINPLACE_CMD} -e 's|-R$$found_dir||' ${WRKSRC}/configure

post-install:
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1/${PORTNAME}.1
Expand Down

0 comments on commit 36103be

Please sign in to comment.