1aa0b8c387f6989d71eacd79e2853fa400857d26
[openwrt/svn-archive/archive.git] / libs / ptlib / Makefile
1 #
2 # Copyright (C) 2006-2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=ptlib
10 PKG_VERSION:=2.1.2
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-src.tar.bz2
14 PKG_SOURCE_URL:=@SF/opalvoip
15 PKG_MD5SUM:=3b663c577f12ab46dc910557482bf53e
16
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_$(PKG_VERSION)
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/ptlib
22 SECTION:=libs
23 CATEGORY:=Libraries
24 DEPENDS:=+expat
25 TITLE:=Portable Tools library
26 URL:=http://www.opalvoip.org/
27 endef
28
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
35 much more advanced.
36 endef
37
38 CONFIGURE_ARGS += \
39 --enable-minsize \
40 --enable-opal \
41 --disable-internalregex \
42 --enable-audio \
43 --disable-alsa \
44 --disable-asn \
45 --disable-avc \
46 --enable-configfile \
47 --disable-dc \
48 --disable-dtmf \
49 --enable-expat \
50 --disable-ftp \
51 --disable-http \
52 --disable-httpsvc \
53 --disable-ipv6 \
54 --disable-jabber \
55 --disable-odbc \
56 --disable-openldap \
57 --disable-openssl \
58 --disable-oss \
59 --disable-pipechan \
60 --disable-plugins \
61 --disable-pop3smtp \
62 --disable-remconn \
63 --enable-resolver \
64 --disable-qos \
65 --disable-sasl \
66 --disable-sdl \
67 --disable-serial \
68 --disable-shm-video \
69 --disable-snmp \
70 --disable-soap \
71 --disable-socks \
72 --enable-stun \
73 --disable-telnet \
74 --disable-tts \
75 --disable-v4l \
76 --disable-v4l2 \
77 --disable-bsdvideo \
78 --disable-video \
79 --disable-vxml \
80 --disable-wavfile \
81 --disable-xmlrpc \
82
83 CONFIGURE_VARS += \
84 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
85
86 CONFIGURE_CMD = ./configure
87
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)/ && \
92 $(CONFIGURE_VARS) \
93 $(2) \
94 $(CONFIGURE_CMD) \
95 $(CONFIGURE_ARGS) \
96 $(1); \
97 fi; \
98 )
99 endef
100
101 MAKE_FLAGS += optnoshared
102
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
106 endef
107
108 $(eval $(call BuildPackage,ptlib))