2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR)/rules.mk
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=@SF/opalvoip
17 include $(INCLUDE_DIR)/package.mk
23 TITLE:=Portable Tools library
24 URL:=http://www.opalvoip.org/
27 define Package/ptlib/description
28 PTLib is a moderately large class library that has its genesis many years ago as
29 PWLib (portable Windows Library), a method to product applications to run on both
30 Microsoft Windows and Unix X-Windows systems. It also was to have a Macintosh port
31 as well but that never eventuated. The parts of the library relating to GUI
32 functions have long been removed as other class libraries such as wxWidgets were
36 TARGET_CFLAGS += $(FPIC)
41 --enable-internalregex \
83 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
85 CONFIGURE_CMD = ./configure
87 define Build/Configure/Default
88 (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH)/$(strip $(3)); \
89 if [ -x $(CONFIGURE_CMD) ]; then \
90 $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/$(3)/ && \
100 MAKE_FLAGS += optnoshared
102 define Build/InstallDev
103 ln -sf $(PKG_NAME)_$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
104 $(SED) 's|//\(#include <ptlib/sound.h>\)|\1|' $(PKG_BUILD_DIR)/include/ptlib.h
107 $(eval $(call BuildPackage,ptlib))