[packages] libiconv-full: autoreconf is broken with this package, use patch-libtool...
[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
10 PKG_NAME:=opal
11 PKG_VERSION:=3.2.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.bz2
15 PKG_SOURCE_URL:=@SF/opalvoip
16 PKG_MD5SUM:=405ba3b03ec706b6e6f873de340937e2
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
19
20 # Set location of ptlib (Which needs to have been built already)
21 export PTLIBDIR=$(BUILD_DIR)/ptlib
22 export PTLIBPLUGINDIR=$(BUILD_DIR)/ptlib/plugins/ptlib/
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libopal
27 SECTION:=libs
28 CATEGORY:=Libraries
29 DEPENDS:=+ptlib +uclibcxx
30 TITLE:=Open Phone Abstraction Library
31 URL:=http://www.opalvoip.org/
32 endef
33
34 define Package/libopal/description
35 Open Phone Abstraction Library, implementation of the ITU H.323
36 teleconferencing protocol, and successor of the openh323 library. It
37 supports not only the H.323 protocol but also SIP and IAX2.
38 endef
39
40 TARGET_CFLAGS += $(FPIC)
41
42 CONFIGURE_ARGS += \
43 --enable-audio \
44 --disable-video \
45 --enable-sip \
46 --enable-h323 \
47 --disable-iax \
48 --disable-h224 \
49 --disable-h450 \
50 --disable-h460 \
51 --disable-ivr \
52 --disable-rfc4175 \
53 --disable-versioncheck \
54 --disable-theora \
55 --enable-localgsm
56
57 CONFIGURE_VARS += \
58 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
59
60 MAKE_FLAGS += \
61 CFLAGS="$(TARGET_CFLAGS)" \
62 CCFLAGS="$(TARGET_CFLAGS)" \
63 optnoshared
64
65 define Build/InstallDev
66 ln -sf $(PKG_NAME)_$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
67 endef
68
69 $(eval $(call BuildPackage,libopal))