2 # Copyright (C) 2006-2007 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
:=3b663c577f12ab46dc910557482bf53e
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
41 --disable-internalregex \
84 CXXFLAGS
="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
86 CONFIGURE_CMD
= .
/configure
88 define Build
/Configure
/Default
89 (cd
$(PKG_BUILD_DIR
)/$(CONFIGURE_PATH
)/$(strip $(3)); \
90 if
[ -x
$(CONFIGURE_CMD
) ]; then \
91 $(CP
) $(SCRIPT_DIR
)/config.
{guess
,sub
} $(PKG_BUILD_DIR
)/$(3)/ && \
101 MAKE_FLAGS
+= optnoshared
103 define Build
/InstallDev
104 ln
-sf
$(PKG_NAME
)_
$(PKG_VERSION
) $(BUILD_DIR
)/$(PKG_NAME
)
105 $(SED
) 's|//\(#include <ptlib/sound.h>\)|\1|' $(PKG_BUILD_DIR
)/include/ptlib.h
108 $(eval
$(call BuildPackage
,ptlib
))