From 918e5a45c0edc3f8279720903ee767dcf5148951 Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Wed, 18 Oct 2017 18:46:48 +0200 Subject: [PATCH] prosody: refactor with PROSODY_CONF_OPTS variable Signed-off-by: Francois Perrad [Thomas: keep TARGET_CONFIGURE_OPTS in the environment.] Signed-off-by: Thomas Petazzoni --- package/prosody/prosody.mk | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/package/prosody/prosody.mk b/package/prosody/prosody.mk index f7a325b460..b98748e3b6 100644 --- a/package/prosody/prosody.mk +++ b/package/prosody/prosody.mk @@ -18,16 +18,19 @@ ifeq ($(BR2_PACKAGE_LUAJIT),y) PROSODY_DEPENDENCIES += luajit endif +PROSODY_CONF_OPTS = \ + --with-lua=$(STAGING_DIR)/usr \ + --c-compiler=$(TARGET_CC) \ + --cflags="$(TARGET_CFLAGS)" \ + --linker=$(TARGET_CC) \ + --ldflags="$(TARGET_LDFLAGS) -shared" \ + --sysconfdir=/etc/prosody \ + --prefix=/usr + define PROSODY_CONFIGURE_CMDS cd $(@D) && \ $(TARGET_CONFIGURE_OPTS) \ - ./configure --prefix=/usr \ - --c-compiler=$(TARGET_CC) \ - --cflags="$(TARGET_CFLAGS)" \ - --linker=$(TARGET_CC) \ - --ldflags="$(TARGET_LDFLAGS) -shared" \ - --sysconfdir=/etc/prosody \ - --with-lua=$(STAGING_DIR)/usr + ./configure $(PROSODY_CONF_OPTS) endef define PROSODY_BUILD_CMDS -- 2.30.2