summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorjnemeth <jnemeth>2010-01-02 00:36:54 +0000
committerjnemeth <jnemeth>2010-01-02 00:36:54 +0000
commit3b1acc6eabfae906f68e47956b9c79d37c76ee72 (patch)
treea6fec8662eea1f6f419d9327d67b869dbb6d9cd9 /comms
parente70d9d58c4cfdb3c4bda6069488d5f204a3f042a (diff)
downloadpkgsrc-3b1acc6eabfae906f68e47956b9c79d37c76ee72.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')
-rw-r--r--comms/asterisk16/options.mk9
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)