Fix build with NLS enabled by removing unnecessary gcc-ism.
While here, use OPTIONS helpers to avoid including bsd.port.options.mk.
This commit is contained in:
parent
000836e31f
commit
607beea795
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user