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 include $(INCLUDE_DIR
)/package.mk
23 define Package
/pjsip-template
26 URL
:=http
://www.pjsip.org
/
27 MAINTAINER
:=John Crispin
<blogic@openwrt.org
>
30 DEPENDS
:=+libuuid
$(2)
33 CONFIGURE_PREFIX
=/usr
/pjsip-
$(BUILD_VARIANT
)
35 ifeq ($(BUILD_VARIANT
),oss
)
39 --disable-g722-codec \
40 --disable-g7221-codec \
42 --disable-ilbc-coder \
43 --disable-libsamplerate \
50 ifeq ($(BUILD_VARIANT
),ltq-tapi
)
54 --disable-g722-codec \
55 --disable-g7221-codec \
56 --disable-ilbc-coder \
58 --disable-libsamplerate \
63 EXTRA_CFLAGS
:=-I
$(STAGING_DIR
)/usr
/include/drv_tapi
-I
$(STAGING_DIR
)/usr
/include/drv_vmmc
66 Package
/pjsip-oss
=$(call Package
/pjsip-template
,oss
,)
67 Package
/pjsip-ltq-tapi
=$(call Package
/pjsip-template
,ltq-tapi
,@TARGET_lantiq
+TARGET_lantiq
:kmod-ltq-tapi
+TARGET_lantiq
:kmod-ltq-vmmc
)
72 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)
75 define Build
/Configure
76 (cd
$(PKG_BUILD_DIR
); autoconf aconfigure.ac
> aconfigure
)
77 $(call Build
/Configure
/Default
)
81 CFLAGS
="$(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
82 LDFLAGS
="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS) $(LIBGCC_S)" \
83 $(MAKE
) -C
$(PKG_BUILD_DIR
)/$(MAKE_PATH
)
86 define Build
/InstallDev
87 $(INSTALL_DIR
) $(1)/usr
/
88 $(CP
) $(PKG_INSTALL_DIR
)/usr
/pjsip-
$(BUILD_VARIANT
) \
92 define Package
/pjsip-
$(BUILD_VARIANT
)/install
96 $(eval
$(call BuildPackage
,pjsip-oss
))
97 $(eval
$(call BuildPackage
,pjsip-ltq-tapi
))