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
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/pjproject-
$(PKG_VERSION
)
21 PKG_BUILD_DEPENDS
:=TARGET_lantiq
:kmod-ltq-tapi TARGET_lantiq
:kmod-ltq-vmmc
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/pjsip-template
28 URL
:=http
://www.pjsip.org
/
29 MAINTAINER
:=John Crispin
<blogic@openwrt.org
>
32 DEPENDS
:=+libuuid
$(2)
35 CONFIGURE_PREFIX
=/usr
/pjsip-
$(BUILD_VARIANT
)
37 ifeq ($(BUILD_VARIANT
),oss
)
41 --disable-g722-codec \
42 --disable-g7221-codec \
44 --disable-ilbc-coder \
45 --disable-libsamplerate \
52 ifeq ($(BUILD_VARIANT
),ltq-tapi
)
56 --disable-g722-codec \
57 --disable-g7221-codec \
58 --disable-ilbc-coder \
60 --disable-libsamplerate \
65 EXTRA_CFLAGS
:=-I
$(STAGING_DIR
)/usr
/include/drv_tapi
-I
$(STAGING_DIR
)/usr
/include/drv_vmmc
68 Package
/pjsip-oss
=$(call Package
/pjsip-template
,oss
,)
69 Package
/pjsip-ltq-tapi
=$(call Package
/pjsip-template
,ltq-tapi
,@TARGET_lantiq
+kmod-ltq-tapi
+kmod-ltq-vmmc
)
74 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)
77 define Build
/Configure
78 (cd
$(PKG_BUILD_DIR
); autoconf aconfigure.ac
> aconfigure
)
79 $(call Build
/Configure
/Default
)
83 CFLAGS
="$(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
84 LDFLAGS
="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS) $(LIBGCC_S)" \
85 $(MAKE
) -C
$(PKG_BUILD_DIR
)/$(MAKE_PATH
)
88 define Build
/InstallDev
89 $(INSTALL_DIR
) $(1)/usr
/
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/pjsip-
$(BUILD_VARIANT
) \
94 define Package
/pjsip-
$(BUILD_VARIANT
)/install
98 $(eval
$(call BuildPackage
,pjsip-oss
))
99 $(eval
$(call BuildPackage
,pjsip-ltq-tapi
))