From 3b1acc6eabfae906f68e47956b9c79d37c76ee72 Mon Sep 17 00:00:00 2001 From: jnemeth Date: Sat, 2 Jan 2010 00:36:54 +0000 Subject: Fix build problem when no options are selected. Thanks to wiz@ for noticing the problem and seb@ for help with the Makefile contortions. --- comms/asterisk16/options.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'comms/asterisk16') diff --git a/comms/asterisk16/options.mk b/comms/asterisk16/options.mk index c47277547ba..5b5356f83e5 100644 --- a/comms/asterisk16/options.mk +++ b/comms/asterisk16/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.1.1.1 2009/06/12 09:04:56 jnemeth Exp $ +# $NetBSD: options.mk,v 1.2 2010/01/02 00:36:54 jnemeth Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.asterisk PKG_SUPPORTED_OPTIONS= zaptel x11 unixodbc ilbc @@ -50,6 +50,9 @@ USE_TOOLS+= awk PLIST.ilbc= yes .endif +.if !empty(PKG_OPTIONS:Mx11) || !empty(PKG_OPTIONS:Munixodbc) || !empty(PKG_OPTIONS:Milbc) +RUN_MENUSELECT= # defined +.endif post-configure: .if !empty(PKG_OPTIONS:Mx11) ${ECHO} "MENUSELECT_PBX=-pbx_gtkconsole" >> ${WRKSRC}/pkgsrc.makeopts @@ -60,8 +63,10 @@ post-configure: .if !empty(PKG_OPTIONS:Milbc) ${ECHO} "MENUSELECT_CODECS=-codec_ilbc" >> ${WRKSRC}/pkgsrc.makeopts .endif -# this is a hack to work around a bug in menuselect +.ifdef RUN_MENUSELECT + # this is a hack to work around a bug in menuselect cd ${WRKSRC} && make menuselect.makeopts +.endif post-extract: .if !empty(PKG_OPTIONS:Milbc) -- cgit v1.2.3