1################################################################################ 2# 3# freeswitch-mod-bcg729 4# 5################################################################################ 6 7FREESWITCH_MOD_BCG729_VERSION = 1.0.5 8FREESWITCH_MOD_BCG729_SITE = $(call github,xadhoom,mod_bcg729,v$(FREESWITCH_MOD_BCG729_VERSION)) 9FREESWITCH_MOD_BCG729_LICENSE = MPL-1.1 10FREESWITCH_MOD_BCG729_LICENSE_FILES = LICENSE 11FREESWITCH_MOD_BCG729_DEPENDENCIES = freeswitch bcg729 12 13# instead of patching the not cross-compile friendly Makefile from 14# upstream we issue the necessary build commands ourselves 15define FREESWITCH_MOD_BCG729_BUILD_CMDS 16 $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \ 17 -I$(STAGING_DIR)/usr/include/freeswitch \ 18 -fPIC -fomit-frame-pointer -fno-exceptions \ 19 -c $(@D)/mod_bcg729.c -o $(@D)/mod_bcg729.o 20 $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \ 21 -fPIC -fomit-frame-pointer -fno-exceptions \ 22 -shared -Xlinker -x -lm -lbcg729 -Wl,-Bdynamic \ 23 -o $(@D)/mod_bcg729.so $(@D)/mod_bcg729.o 24endef 25 26define FREESWITCH_MOD_BCG729_INSTALL_TARGET_CMDS 27 $(INSTALL) -m 0755 $(@D)/mod_bcg729.so $(TARGET_DIR)/usr/lib/freeswitch/mod/mod_bcg729.so 28endef 29 30$(eval $(generic-package)) 31