Add ptlib package. (Added in ticket #2655)
[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-snapshot
10 PKG_VERSION:=18818
11 PKG_RELEASE:=1
12
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=ftp://peternixon.net/pub/voxgratia
15 PKG_MD5SUM:=ac65581ccc9ada31817bf681574bec0d
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 TITLE:=Portable Tools library
25 URL:=http://www.opalvoip.org/
26 endef
27
28 define Package/ptlib/description
29 PTLib is a moderately large class library that has its genesis many years ago as
30 PWLib (portable Windows Library), a method to product applications to run on both
31 Microsoft Windows and Unix X-Windows systems. It also was to have a Macintosh port
32 as well but that never eventuated. The parts of the library relating to GUI
33 functions have long been removed as other class libraries such as wxWidgets were
34 much more advanced.
35 endef
36
37 CONFIGURE_ARGS += \
38 --enable-minsize \
39 --enable-openh323 \
40 --enable-opal \
41 --disable-internalregex \
42 --disable-plugins \
43 --enable-audio \
44 --disable-alsa \
45 --disable-asn \
46 --disable-avc \
47 --disable-dc \
48 --disable-dtmf \
49 --disable-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-pop3smtp \
61 --disable-remconn \
62 --disable-resolver \
63 --disable-qos \
64 --disable-sasl \
65 --disable-sdl \
66 --disable-serial \
67 --disable-shm-video \
68 --disable-snmp \
69 --disable-soap \
70 --disable-socks \
71 --disable-stun \
72 --disable-telnet \
73 --disable-tts \
74 --disable-v4l \
75 --disable-v4l2 \
76 --disable-bsdvideo \
77 --disable-video \
78 --disable-vxml \
79 --disable-wavfile \
80 --disable-xmlrpc \
81
82 CONFIGURE_VARS += \
83 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
84
85 CONFIGURE_CMD = ./configure
86
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)/ && \
91 $(CONFIGURE_VARS) \
92 $(2) \
93 $(CONFIGURE_CMD) \
94 $(CONFIGURE_ARGS) \
95 $(1); \
96 fi; \
97 )
98 endef
99
100 MAKE_FLAGS += optnoshared
101
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
105 endef
106
107 define Build/UninstallDev
108 rm -rf $(BUILD_DIR)/$(PKG_NAME)
109 endef
110
111 $(eval $(call BuildPackage,ptlib))