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
)-src.
tar.bz2
14 PKG_SOURCE_URL
:=@SF
/opalvoip
15 PKG_MD5SUM
:=dc266ba315e130b304854592e6388725
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)
19 include $(INCLUDE_DIR
)/package.mk
25 TITLE
:=Portable Tools library
26 URL
:=http
://www.opalvoip.org
/
29 define Package
/ptlib
/description
30 PTLib is a moderately large class library that has its genesis many years ago
as
31 PWLib
(portable Windows Library
), a method to product applications to run on both
32 Microsoft Windows and Unix X-Windows systems. It also was to have a Macintosh port
33 as well but that never eventuated. The parts of the library relating to GUI
34 functions have long been removed
as other class libraries such
as wxWidgets were
38 TARGET_CFLAGS
+= $(FPIC
)
43 --enable-internalregex \
85 CXXFLAGS
="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
87 CONFIGURE_CMD
= .
/configure
89 define Build
/Configure
/Default
90 (cd
$(PKG_BUILD_DIR
)/$(CONFIGURE_PATH
)/$(strip $(3)); \
91 if
[ -x
$(CONFIGURE_CMD
) ]; then \
92 $(CP
) $(SCRIPT_DIR
)/config.
{guess
,sub
} $(PKG_BUILD_DIR
)/$(3)/ && \
102 MAKE_FLAGS
+= optnoshared
104 define Build
/InstallDev
105 ln
-sf
$(PKG_NAME
)_
$(PKG_VERSION
) $(BUILD_DIR
)/$(PKG_NAME
)
106 $(SED
) 's|//\(#include <ptlib/sound.h>\)|\1|' $(PKG_BUILD_DIR
)/include/ptlib.h
109 $(eval
$(call BuildPackage
,ptlib
))