mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
Fix build without NLS
PR: 198020 Submitted by: Kevin Zheng <kevinz5000@gmail.com>
This commit is contained in:
parent
22eeef3293
commit
f1e65da1b9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=380421
@ -16,7 +16,8 @@ RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync \
|
||||
bash:${PORTSDIR}/shells/bash
|
||||
|
||||
USE_GNOME= gtk20
|
||||
USES= desktop-file-utils gmake shared-mime-info pkgconfig shebangfix
|
||||
USES= desktop-file-utils gettext gmake \
|
||||
shared-mime-info pkgconfig shebangfix
|
||||
SHEBANG_FILES= src/grsync-batch
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS+= --disable-unity
|
||||
@ -27,16 +28,7 @@ CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
||||
OPTIONS_DEFINE= NLS
|
||||
OPTIONS_DEFAULT= NLS
|
||||
OPTIONS_SUB= yes
|
||||
NLS_USES= gettext
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-patch:
|
||||
.if empty(PORT_OPTIONS:MNLS)
|
||||
@${REINPLACE_CMD} 's/^ALL_LINGUAS=.*/ALL_LINGUAS=""/' \
|
||||
${WRKSRC}/configure
|
||||
.endif
|
||||
NLS_CONFIGURE_ENABLE= nls
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user