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
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MNLS}
|
||||
USES+= gettext
|
||||
|
||||
NLS_USES= gettext
|
||||
NLS_CONFIGURE_OFF= --disable-nls
|
||||
.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
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-nls
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MGTK2}
|
||||
USE_GNOME= gtk20
|
||||
.else
|
||||
CONFIGURE_ARGS+=--without-gtk
|
||||
.endif
|
||||
GTK2_USE= GNOME=gtk20
|
||||
GTK2_CONFIGURE_OFF=--without-gtk
|
||||
|
||||
pre-patch:
|
||||
@${REINPLACE_CMD} -e "s:/etc:${PREFIX}/etc:" ${WRKSRC}/src/common.[ch]
|
||||
|
|
Loading…
Reference in a new issue