ec72fffc1a24f663051d61798d3b86f55a0dca36
[packages.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 # $Id: Makefile 8274 2007-07-31 11:22:44Z nbd $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=opal-snapshot
12 PKG_VERSION:=18818
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=ftp://peternixon.net/pub/voxgratia
17 PKG_MD5SUM:=121b77a82f9a4eb289e2351d588185e9
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 PWLIBDIR=$(BUILD_DIR)/ptlib-snapshot
23 export PTLIBDIR=$(BUILD_DIR)/ptlib-snapshot
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libopal
28   SECTION:=libs
29   CATEGORY:=Libraries
30   DEPENDS:=+ptlib +uclibcxx
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
40 endef
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         --enable-localgsm
55
56 CONFIGURE_VARS += \
57         CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
58
59 MAKE_FLAGS += \
60         CFLAGS="$(TARGET_CFLAGS)" \
61         CCFLAGS="$(TARGET_CFLAGS)" \
62         optnoshared
63
64 define Build/InstallDev
65         ln -sf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
66 endef
67
68 define Build/UninstallDev
69         rm -rf $(BUILD_DIR)/$(PKG_NAME)
70 endef
71
72 $(eval $(call BuildPackage,libopal))