2 # Copyright (C) 2010-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=pjproject-
$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=http
://www.pjsip.org
/release
/$(PKG_VERSION
)/
16 PKG_MD5SUM
:=f9aa9e58b4d697245eb4bfa7d81a54a3
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/pjproject-
$(PKG_VERSION
)
21 include $(INCLUDE_DIR
)/package.mk
27 URL
:=http
://www.pjsip.org
/
29 MAINTAINER
:=John Crispin
<blogic@openwrt.org
>
32 define Package
/pjsip
/config
33 source
"$(SOURCE)/Config.in"
39 --disable-g722-codec \
40 --disable-g7221-codec \
41 --disable-ilbc-coder \
42 --disable-libsamplerate \
45 $(call autoconf_bool
,CONFIG_PJSIP_GSM
,gsm-codec
) \
46 $(call autoconf_bool
,CONFIG_PJSIP_SPEEX
,speex-aec
) \
47 $(call autoconf_bool
,CONFIG_PJSIP_OSS
,oss
) \
48 $(call autoconf_bool
,CONFIG_PJSIP_SOUND
,sound
) \
49 $(call autoconf_bool
,CONFIG_PJSIP_DEV_TAPI
,ltq-tapi
)
51 ifeq ($(CONFIG_PJSIP_DEV_TAPI
),y
)
52 EXTRA_CFLAGS
:=-I
$(STAGING_DIR
)/usr
/include/drv_tapi
-I
$(STAGING_DIR
)/usr
/include/drv_vmmc
55 define Build
/Configure
56 (cd
$(PKG_BUILD_DIR
); autoconf aconfigure.ac
> aconfigure
)
57 $(call Build
/Configure
/Default
)
60 define Build
/InstallDev
61 $(INSTALL_DIR
) $(1)/usr
/{include,lib
}
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* \
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* \
68 define Package
/pjsip
/install
69 $(INSTALL_DIR
) $(1)/usr
/sbin
73 CFLAGS
="$(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
74 LDFLAGS
="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS)" \
75 $(MAKE
) -C
$(PKG_BUILD_DIR
)/$(MAKE_PATH
)
78 $(eval
$(call BuildPackage
,pjsip
))