Use options helpers
This commit is contained in:
parent
cf6fc45e41
commit
a6f0da5887
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378653
1 changed files with 5 additions and 14 deletions
|
@ -33,23 +33,14 @@ PLIST_FILES+= share/aumix/${ii}
|
||||||
|
|
||||||
OPTIONS_DEFINE= NLS GTK2
|
OPTIONS_DEFINE= NLS GTK2
|
||||||
|
|
||||||
.include <bsd.port.options.mk>
|
NLS_USES= gettext
|
||||||
|
NLS_CONFIGURE_OFF= --disable-nls
|
||||||
.if ${PORT_OPTIONS:MNLS}
|
|
||||||
USES+= gettext
|
|
||||||
|
|
||||||
.for ii in ca de el es fr gl it ja nl pl pt_BR ru sv uk zh_CN
|
.for ii in ca de el es fr gl it ja nl pl pt_BR ru sv uk zh_CN
|
||||||
PLIST_FILES+= share/locale/${ii}/LC_MESSAGES/aumix.mo
|
NLS_PLIST_FILES+= share/locale/${ii}/LC_MESSAGES/aumix.mo
|
||||||
.endfor
|
.endfor
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS+=--disable-nls
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if ${PORT_OPTIONS:MGTK2}
|
GTK2_USE= GNOME=gtk20
|
||||||
USE_GNOME= gtk20
|
GTK2_CONFIGURE_OFF=--without-gtk
|
||||||
.else
|
|
||||||
CONFIGURE_ARGS+=--without-gtk
|
|
||||||
.endif
|
|
||||||
|
|
||||||
pre-patch:
|
pre-patch:
|
||||||
@${REINPLACE_CMD} -e "s:/etc:${PREFIX}/etc:" ${WRKSRC}/src/common.[ch]
|
@${REINPLACE_CMD} -e "s:/etc:${PREFIX}/etc:" ${WRKSRC}/src/common.[ch]
|
||||||
|
|
Loading…
Reference in a new issue