2 # Copyright (C) 2006 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:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.bz2
15 PKG_SOURCE_URL:=@SF/opalvoip
16 PKG_MD5SUM:=405ba3b03ec706b6e6f873de340937e2
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
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/
24 include $(INCLUDE_DIR)/package.mk
26 define Package/libopal
29 DEPENDS:=+ptlib +uclibcxx
30 TITLE:=Open Phone Abstraction Library
31 URL:=http://www.opalvoip.org/
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.
40 TARGET_CFLAGS += $(FPIC)
53 --disable-versioncheck \
57 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
60 CFLAGS="$(TARGET_CFLAGS)" \
61 CCFLAGS="$(TARGET_CFLAGS)" \
64 define Build/InstallDev
65 ln -sf $(PKG_NAME)_$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
68 $(eval $(call BuildPackage,libopal))