net/asterisk-11.x and net/asterisk-13.x: remove $(SDK) from ifneqs
authorSebastian Kemper <sebastian_ml@gmx.net>
Fri, 28 Jul 2017 19:29:10 +0000 (21:29 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Fri, 28 Jul 2017 19:30:08 +0000 (21:30 +0200)
The variable prevents the ifneqs from working on the buildbots. $(SDK)
is set there, so the ifneqs that test for empty will always be true.

libpq for instance doesn't build on aarch64. So the asterisk pgsql
package has a dependency on @!aarch64. An ifneq is used to disable libpq
detection by the configure script, to prevent the build to fail. But
because of $(SDK) being set the ifneq is always true, so libpq detection
is enabled, causing the build to always fail.

There are only two other packages in the tree that actually use the
$(SDK) variable, so it's fair to assume it's not needed for the asterisk
packages and can just be dropped.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/asterisk-11.x/Makefile
net/asterisk-13.x/Makefile

index 4f9cd66df14bf71a76c0afeec0ef8adbd964fa00..2bfadbf698b2ac0b3a21e6aabfea404e27d447be 100644 (file)
@@ -164,7 +164,7 @@ define Package/asterisk11-sounds/install
        rm -f $(1)/usr/lib/asterisk/sounds/conf-*
 endef
 
        rm -f $(1)/usr/lib/asterisk/sounds/conf-*
 endef
 
-ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-chan-dahdi),)
+ifneq ($(CONFIG_PACKAGE_asterisk11-chan-dahdi),)
   CONFIGURE_ARGS+= \
        --with-dahdi="$(STAGING_DIR)/usr" \
        --with-pri="$(STAGING_DIR)/usr" \
   CONFIGURE_ARGS+= \
        --with-dahdi="$(STAGING_DIR)/usr" \
        --with-pri="$(STAGING_DIR)/usr" \
@@ -176,7 +176,7 @@ else
        --without-tonezone
 endif
 
        --without-tonezone
 endif
 
-ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-curl),)
+ifneq ($(CONFIG_PACKAGE_asterisk11-curl),)
   CONFIGURE_ARGS+= \
        --with-libcurl="$(STAGING_DIR)/usr"
 else
   CONFIGURE_ARGS+= \
        --with-libcurl="$(STAGING_DIR)/usr"
 else
@@ -184,7 +184,7 @@ else
        --without-libcurl
 endif
 
        --without-libcurl
 endif
 
-ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-mysql),)
+ifneq ($(CONFIG_PACKAGE_asterisk11-mysql),)
   CONFIGURE_VARS+= \
        ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT=$(STAGING_DIR)/usr/bin/mysql_config
   CONFIGURE_ARGS+= \
   CONFIGURE_VARS+= \
        ac_cv_path_ac_pt_CONFIG_MYSQLCLIENT=$(STAGING_DIR)/usr/bin/mysql_config
   CONFIGURE_ARGS+= \
@@ -194,7 +194,7 @@ else
        --without-mysqlclient
 endif
 
        --without-mysqlclient
 endif
 
-ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-pbx-lua),)
+ifneq ($(CONFIG_PACKAGE_asterisk11-pbx-lua),)
   CONFIGURE_ARGS+= \
        --with-lua="$(STAGING_DIR)/usr"
   TARGET_LDFLAGS+=-ldl -lcrypt
   CONFIGURE_ARGS+= \
        --with-lua="$(STAGING_DIR)/usr"
   TARGET_LDFLAGS+=-ldl -lcrypt
@@ -203,7 +203,7 @@ else
        --without-lua
 endif
 
        --without-lua
 endif
 
-ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-pgsql),)
+ifneq ($(CONFIG_PACKAGE_asterisk11-pgsql),)
   CONFIGURE_ARGS+= \
        --with-postgres="$(STAGING_DIR)/usr"
 else
   CONFIGURE_ARGS+= \
        --with-postgres="$(STAGING_DIR)/usr"
 else
@@ -211,7 +211,7 @@ else
        --without-postgres
 endif
 
        --without-postgres
 endif
 
-ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-res-fax-spandsp),)
+ifneq ($(CONFIG_PACKAGE_asterisk11-res-fax-spandsp),)
   CONFIGURE_ARGS+= \
        --with-spandsp="$(STAGING_DIR)/usr"
 else
   CONFIGURE_ARGS+= \
        --with-spandsp="$(STAGING_DIR)/usr"
 else
@@ -219,7 +219,7 @@ else
        --without-spandsp
 endif
 
        --without-spandsp
 endif
 
-ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-res-srtp),)
+ifneq ($(CONFIG_PACKAGE_asterisk11-res-srtp),)
   CONFIGURE_ARGS+= \
        --with-srtp="$(STAGING_DIR)/usr"
 else
   CONFIGURE_ARGS+= \
        --with-srtp="$(STAGING_DIR)/usr"
 else
@@ -227,7 +227,7 @@ else
        --without-srtp
 endif
 
        --without-srtp
 endif
 
-ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk11-res-xmpp),)
+ifneq ($(CONFIG_PACKAGE_asterisk11-res-xmpp),)
   CONFIGURE_ARGS+= \
        --with-iksemel="$(STAGING_DIR)/usr"
   SITE_VARS+= \
   CONFIGURE_ARGS+= \
        --with-iksemel="$(STAGING_DIR)/usr"
   SITE_VARS+= \
index 5d53d6d458c5500eb7df4ba9b5207d863427d2ed..d082d66a155347b7a479926b7980ae8434fe7be2 100644 (file)
@@ -165,7 +165,7 @@ define Package/asterisk13-sounds/install
        rm -f $(1)/usr/lib/asterisk/sounds/vm-*
 endef
 
        rm -f $(1)/usr/lib/asterisk/sounds/vm-*
 endef
 
-ifneq ($(SDK)$(CONFIG_PACKAGE_asterisk13-chan-dahdi),)
+ifneq ($(CONFIG_PACKAGE_asterisk13-chan-dahdi),)
   CONFIGURE_ARGS+= \
        --with-dahdi="$(STAGING_DIR)/usr" \
        --with-pri="$(STAGING_DIR)/usr" \
   CONFIGURE_ARGS+= \
        --with-dahdi="$(STAGING_DIR)/usr" \
        --with-pri="$(STAGING_DIR)/usr" \