pwlib: cleanup, fix cflags
[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 CONFIGURE_ARGS += \
33 --enable-minsize \
34 --enable-openh323 \
35 --disable-opal \
36 --disable-internalregex \
37 --disable-plugins \
38 --enable-audio \
39 --disable-alsa \
40 --disable-asn \
41 --disable-avc \
42 --disable-dc \
43 --disable-dtmf \
44 --disable-expat \
45 --disable-ftp \
46 --disable-http \
47 --disable-httpsvc \
48 --disable-ipv6 \
49 --disable-jabber \
50 --disable-openldap \
51 --disable-openssl \
52 --disable-oss \
53 --disable-pipechan \
54 --disable-pop3smtp \
55 --disable-remconn \
56 --disable-resolver \
57 --disable-qos \
58 --disable-sasl \
59 --disable-sdl \
60 --disable-serial \
61 --disable-shm-video \
62 --disable-snmp \
63 --disable-soap \
64 --disable-socks \
65 --disable-stun \
66 --disable-telnet \
67 --disable-tts \
68 --disable-v4l \
69 --disable-v4l2 \
70 --disable-bsdvideo \
71 --disable-video \
72 --disable-vxml \
73 --disable-wavfile \
74 --disable-xmlrpc
75
76 CONFIGURE_VARS += \
77 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti"
78
79 MAKE_FLAGS += optnoshared
80
81 define Build/InstallDev
82 ln -sf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
83 endef
84
85 define Build/UninstallDev
86 rm -rf $(BUILD_DIR)/$(PKG_NAME)
87 endef
88
89 $(eval $(call BuildPackage,pwlib))