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
:=1db8e5a5dd73b216409b15afa34651a4
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(BUILD_VARIANT
)/pjproject-
$(PKG_VERSION
)
23 PKG_BUILD_DEPENDS
:=TARGET_lantiq
:kmod-ltq-tapi TARGET_lantiq
:kmod-ltq-vmmc
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/pjsip-template
30 URL
:=http
://www.pjsip.org
/
31 MAINTAINER
:=John Crispin
<blogic@openwrt.org
>
34 DEPENDS
:=+libuuid
$(2)
37 CONFIGURE_PREFIX
=/usr
/pjsip-
$(BUILD_VARIANT
)
39 ifeq ($(BUILD_VARIANT
),oss
)
41 --disable-floating-point \
44 --disable-g722-codec \
45 --disable-g7221-codec \
47 --disable-ilbc-coder \
48 --disable-libsamplerate \
55 ifeq ($(BUILD_VARIANT
),ltq-tapi
)
57 --disable-floating-point \
60 --disable-g722-codec \
61 --disable-g7221-codec \
62 --disable-ilbc-coder \
64 --disable-libsamplerate \
69 EXTRA_CFLAGS
:=-I
$(STAGING_DIR
)/usr
/include/drv_tapi
-I
$(STAGING_DIR
)/usr
/include/drv_vmmc
72 Package
/pjsip-oss
=$(call Package
/pjsip-template
,oss
,BROKEN
)
73 Package
/pjsip-ltq-tapi
=$(call Package
/pjsip-template
,ltq-tapi
,@TARGET_lantiq
+TARGET_lantiq
:kmod-ltq-tapi
+TARGET_lantiq
:kmod-ltq-vmmc
)
75 USE_LOCAL
=$(shell ls .
/src
/ 2>/dev
/null
>/dev
/null
&& echo
1)
78 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)
82 define Build
/Configure
83 (cd
$(PKG_BUILD_DIR
); autoconf aconfigure.ac
> aconfigure
)
84 $(call Build
/Configure
/Default
)
88 CFLAGS
="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
89 CXXFLAGS
="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
90 LDFLAGS
="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS) $(LIBGCC_S) -lm" \
91 $(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
)/$(MAKE_PATH
)
94 define Build
/InstallDev
95 $(INSTALL_DIR
) $(1)/usr
96 $(CP
) $(PKG_INSTALL_DIR
)/usr
/pjsip-
$(BUILD_VARIANT
) $(1)/usr
99 define Package
/pjsip-
$(BUILD_VARIANT
)/install
103 $(eval
$(call BuildPackage
,pjsip-oss
))
104 $(eval
$(call BuildPackage
,pjsip-ltq-tapi
))