80e6e0f764ac186ce08c97ec696b49a31e77034d
[packages.git] / libs / opal / Makefile
1 #
2 # Copyright (C) 2006-2012 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 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libopal
23   SECTION:=libs
24   CATEGORY:=Libraries
25   DEPENDS:=+ptlib +libstdcpp
26   TITLE:=Open Phone Abstraction Library
27   URL:=http://www.opalvoip.org/
28 endef
29
30 define Package/libopal/description
31         Open Phone Abstraction Library, implementation of the ITU H.323
32         teleconferencing protocol, and successor of the openh323 library. It
33         supports not only the H.323 protocol but also SIP and IAX2.
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 CONFIGURE_ARGS += \
39         --enable-audio \
40         --disable-video \
41         --enable-sip \
42         --enable-h323 \
43         --disable-iax \
44         --disable-h224 \
45         --disable-h450 \
46         --disable-h460 \
47         --disable-ivr \
48         --disable-rfc4175 \
49         --disable-versioncheck \
50         --disable-theora \
51         --enable-localgsm
52
53 CONFIGURE_VARS += \
54         PTLIBDIR="$(BUILD_DIR)/ptlib" \
55         PTLIBPLUGINDIR="$(BUILD_DIR)/ptlib/plugins/ptlib/"
56         CXXFLAGS="$(TARGET_CFLAGS)" \
57
58 MAKE_FLAGS += \
59         CFLAGS="$(TARGET_CFLAGS)" \
60         CCFLAGS="$(TARGET_CFLAGS)" \
61         PTLIBDIR="$(BUILD_DIR)/ptlib" \
62         PTLIBPLUGINDIR="$(BUILD_DIR)/ptlib/plugins/ptlib/" \
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))