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
:=e215d0637d3422d49a63c2cde6673951
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
,)
73 Package
/pjsip-ltq-tapi
=$(call Package
/pjsip-template
,ltq-tapi
,@TARGET_lantiq
+TARGET_lantiq
:kmod-ltq-tapi
+TARGET_lantiq
:kmod-ltq-vmmc
)
78 $(CP
) .
/src
/* $(PKG_BUILD_DIR
)
81 define Build
/Configure
82 (cd
$(PKG_BUILD_DIR
); autoconf aconfigure.ac
> aconfigure
)
83 $(call Build
/Configure
/Default
)
87 CFLAGS
="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
88 CXXFLAGS
="$(TARGET_CFLAGS) $(EXTRA_CFLAGS) $(TARGET_CPPFLAGS) $(EXTRA_CPPFLAGS)" \
89 LDFLAGS
="$(TARGET_LDFLAGS) $(EXTRA_LDFLAGS) $(LIBGCC_S) -lm" \
90 $(MAKE
) $(PKG_JOBS
) -C
$(PKG_BUILD_DIR
)/$(MAKE_PATH
)
93 define Build
/InstallDev
94 $(INSTALL_DIR
) $(1)/usr
95 $(CP
) $(PKG_INSTALL_DIR
)/usr
/pjsip-
$(BUILD_VARIANT
) $(1)/usr
98 define Package
/pjsip-
$(BUILD_VARIANT
)/install
102 $(eval
$(call BuildPackage
,pjsip-oss
))
103 $(eval
$(call BuildPackage
,pjsip-ltq-tapi
))