[packages] make packages depending on uclibc++ depend on CXX_DEPENDS
[openwrt/svn-archive/archive.git] / libs / opal / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/uclibc++.mk
10
11 PKG_NAME:=opal
12 PKG_VERSION:=3.2.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.bz2
16 PKG_SOURCE_URL:=@SF/opalvoip
17 PKG_MD5SUM:=405ba3b03ec706b6e6f873de340937e2
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
20
21 # Set location of ptlib (Which needs to have been built already)
22 export PTLIBDIR=$(BUILD_DIR)/ptlib
23 export PTLIBPLUGINDIR=$(BUILD_DIR)/ptlib/plugins/ptlib/
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libopal
28 SECTION:=libs
29 CATEGORY:=Libraries
30 DEPENDS:=+ptlib $(CXX_DEPENDS)
31 TITLE:=Open Phone Abstraction Library
32 URL:=http://www.opalvoip.org/
33 endef
34
35 define Package/libopal/description
36 Open Phone Abstraction Library, implementation of the ITU H.323
37 teleconferencing protocol, and successor of the openh323 library. It
38 supports not only the H.323 protocol but also SIP and IAX2.
39 endef
40
41 TARGET_CFLAGS += $(FPIC)
42
43 CONFIGURE_ARGS += \
44 --enable-audio \
45 --disable-video \
46 --enable-sip \
47 --enable-h323 \
48 --disable-iax \
49 --disable-h224 \
50 --disable-h450 \
51 --disable-h460 \
52 --disable-ivr \
53 --disable-rfc4175 \
54 --disable-versioncheck \
55 --disable-theora \
56 --enable-localgsm
57
58 CONFIGURE_VARS += \
59 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
60
61 MAKE_FLAGS += \
62 CFLAGS="$(TARGET_CFLAGS)" \
63 CCFLAGS="$(TARGET_CFLAGS)" \
64 optnoshared
65
66 define Build/InstallDev
67 ln -sf $(PKG_NAME)_$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
68 endef
69
70 $(eval $(call BuildPackage,libopal))