-#
-# Copyright (C) 2006 OpenWrt.org
+#
+# Copyright (C) 2006-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
-include $(INCLUDE_DIR)/uclibc++.mk
PKG_NAME:=opal
PKG_VERSION:=3.2.1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
-# Set location of ptlib (Which needs to have been built already)
-export PTLIBDIR=$(BUILD_DIR)/ptlib
-export PTLIBPLUGINDIR=$(BUILD_DIR)/ptlib/plugins/ptlib/
-
include $(INCLUDE_DIR)/package.mk
define Package/libopal
SECTION:=libs
CATEGORY:=Libraries
- DEPENDS:=+ptlib $(CXX_DEPENDS)
+ DEPENDS:=+ptlib +libstdcpp
TITLE:=Open Phone Abstraction Library
URL:=http://www.opalvoip.org/
endef
--enable-localgsm
CONFIGURE_VARS += \
- CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
+ PTLIBDIR="$(BUILD_DIR)/ptlib" \
+ PTLIBPLUGINDIR="$(BUILD_DIR)/ptlib/plugins/ptlib/"
+ CXXFLAGS="$(TARGET_CFLAGS)" \
MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS)" \
CCFLAGS="$(TARGET_CFLAGS)" \
+ PTLIBDIR="$(BUILD_DIR)/ptlib" \
+ PTLIBPLUGINDIR="$(BUILD_DIR)/ptlib/plugins/ptlib/" \
optnoshared
define Build/InstallDev