Use options framework for NLS support. Enable by default on NetBSD, but
not on other platforms.
This commit is contained in:
parent
aea3c15457
commit
038e77f83f
2 changed files with 26 additions and 15 deletions
|
@ -1,8 +1,8 @@
|
|||
# $NetBSD: Makefile,v 1.78 2011/07/09 16:25:35 bsiegert Exp $
|
||||
# $NetBSD: Makefile,v 1.79 2011/11/26 19:01:15 hans Exp $
|
||||
|
||||
DISTNAME= make-3.82
|
||||
PKGNAME= g${DISTNAME}
|
||||
PKGREVISION= 2
|
||||
PKGREVISION= 3
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= ${MASTER_SITE_GNU:=make/}
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
@ -25,6 +25,7 @@ INFO_FILES= yes
|
|||
TEST_TARGET= check
|
||||
|
||||
.include "../../mk/bsd.prefs.mk"
|
||||
.include "options.mk"
|
||||
|
||||
.if defined(GNU_PROGRAM_PREFIX)
|
||||
CONFIGURE_ARGS+= --program-prefix=${GNU_PROGRAM_PREFIX:Q}
|
||||
|
@ -40,19 +41,6 @@ PLIST.gmake= yes
|
|||
|
||||
PLIST_SRC= ${PKGDIR}/PLIST
|
||||
|
||||
GMAKE_LOCALE?= yes
|
||||
BUILD_DEFS+= GMAKE_LOCALE
|
||||
MAKEFLAGS+= GMAKE_LOCALE=${GMAKE_LOCALE:Q}
|
||||
.if !empty(GMAKE_LOCALE:M[yY][eE][sS])
|
||||
USE_PKGLOCALEDIR= yes
|
||||
PLIST_SRC+= ${PKGDIR}/PLIST.locale
|
||||
USE_TOOLS+= msgfmt
|
||||
. include "../../devel/gettext-lib/buildlink3.mk"
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-libintl
|
||||
CONFIGURE_ARGS+= --without-libiconv
|
||||
.endif
|
||||
|
||||
.if ${OPSYS} == "MirBSD"
|
||||
# workaround for broken strndup
|
||||
CONFIGURE_ARGS+= ac_cv_func_strndup=no
|
||||
|
|
23
devel/gmake/options.mk
Normal file
23
devel/gmake/options.mk
Normal file
|
@ -0,0 +1,23 @@
|
|||
# $NetBSD: options.mk,v 1.1 2011/11/26 19:01:15 hans Exp $
|
||||
|
||||
PKG_OPTIONS_VAR= PKG_OPTIONS.gmake
|
||||
PKG_SUPPORTED_OPTIONS= nls
|
||||
PKG_SUGGESTED_OPTIONS=
|
||||
.if ${OPSYS} == "NetBSD"
|
||||
PKG_SUGGESTED_OPTIONS+= nls
|
||||
.endif
|
||||
|
||||
PKG_OPTIONS_LEGACY_VARS= GMAKE_LOCALE
|
||||
|
||||
.include "../../mk/bsd.options.mk"
|
||||
|
||||
.if !empty(PKG_OPTIONS:Mnls)
|
||||
USE_PKGLOCALEDIR= yes
|
||||
PLIST_SRC+= ${PKGDIR}/PLIST.locale
|
||||
USE_TOOLS+= msgfmt
|
||||
. include "../../devel/gettext-lib/buildlink3.mk"
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-libintl-prefix
|
||||
CONFIGURE_ARGS+= --without-libiconv-prefix
|
||||
CONFIGURE_ARGS+= --disable-nls
|
||||
.endif
|
Loading…
Reference in a new issue