diff options
author | jnemeth <jnemeth@pkgsrc.org> | 2010-01-02 00:36:54 +0000 |
---|---|---|
committer | jnemeth <jnemeth@pkgsrc.org> | 2010-01-02 00:36:54 +0000 |
commit | 54d1bb6027340c1d3f5a1cc0d4d30884b46b9db6 (patch) | |
tree | a6fec8662eea1f6f419d9327d67b869dbb6d9cd9 /comms/asterisk16 | |
parent | 5a9174320ce84c209bc06699e70585d255b83822 (diff) | |
download | pkgsrc-54d1bb6027340c1d3f5a1cc0d4d30884b46b9db6.tar.gz |
Fix build problem when no options are selected. Thanks to wiz@ for
noticing the problem and seb@ for help with the Makefile contortions.
Diffstat (limited to 'comms/asterisk16')
-rw-r--r-- | comms/asterisk16/options.mk | 9 |
1 files changed, 7 insertions, 2 deletions
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) |