summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorjnemeth <jnemeth@pkgsrc.org>2010-01-02 00:36:54 +0000
committerjnemeth <jnemeth@pkgsrc.org>2010-01-02 00:36:54 +0000
commit4b063f94df72748fddf2a8353d69d80d6a3c9c7b (patch)
treea6fec8662eea1f6f419d9327d67b869dbb6d9cd9 /comms
parente26bae8305fbb9b9a399e1f39d2aee7a08f4657f (diff)
downloadpkgsrc-4b063f94df72748fddf2a8353d69d80d6a3c9c7b.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)