4d6dd4d3a07ade149ea3c4da0e92de421bff7a29
[openwrt/svn-archive/archive.git] / libs / pwlib / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=pwlib
12 PKG_VERSION:=cvs-20051227
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://trash.uid0.hu/openwrt
17 PKG_MD5SUM:=7d5b8e9ab61a05658a5630f91505420d
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/pwlib
25 SECTION:=libs
26 CATEGORY:=Libraries
27 DEPENDS:=+libpthread +uclibcxx
28 TITLE:=Portable Windows library
29 URL:=http://www.openh323.org/
30 endef
31
32 define Build/Configure
33 $(call Build/Configure/Default, \
34 --enable-minsize \
35 --enable-openh323 \
36 --disable-opal \
37 --disable-internalregex \
38 --disable-plugins \
39 --enable-audio \
40 --disable-alsa \
41 --disable-asn \
42 --disable-avc \
43 --disable-dc \
44 --disable-dtmf \
45 --disable-expat \
46 --disable-ftp \
47 --disable-http \
48 --disable-httpsvc \
49 --disable-ipv6 \
50 --disable-jabber \
51 --disable-openldap \
52 --disable-openssl \
53 --disable-oss \
54 --disable-pipechan \
55 --disable-pop3smtp \
56 --disable-remconn \
57 --disable-resolver \
58 --disable-qos \
59 --disable-sasl \
60 --disable-sdl \
61 --disable-serial \
62 --disable-shm-video \
63 --disable-snmp \
64 --disable-soap \
65 --disable-socks \
66 --disable-stun \
67 --disable-telnet \
68 --disable-tts \
69 --disable-v4l \
70 --disable-v4l2 \
71 --disable-bsdvideo \
72 --disable-video \
73 --disable-vxml \
74 --disable-wavfile \
75 --disable-xmlrpc \
76 , \
77 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
78 )
79 endef
80
81 define Build/Compile
82 $(MAKE) -C $(PKG_BUILD_DIR) \
83 $(TARGET_CONFIGURE_OPTS) \
84 optnoshared
85 endef
86
87 define Build/InstallDev
88 ln -sf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
89 endef
90
91 define Build/UninstallDev
92 rm -rf $(BUILD_DIR)/$(PKG_NAME)
93 endef
94
95 $(eval $(call BuildPackage,pwlib))