enable $(FPIC) for a few more packages
[openwrt/svn-archive/archive.git] / libs / pwlib / 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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=pwlib
12 PKG_VERSION:=1.11.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=ftp://peternixon.net/pub/voxgratia
17 PKG_MD5SUM:=e1102dfd2608e3a117a2e016d0db53e3
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/pwlib-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/pwlib
24 SECTION:=libs
25 CATEGORY:=Libraries
26 TITLE:=Portable Windows library
27 URL:=http://www.voxgratia.org/
28 endef
29
30 define Package/pwlib/description
31 PWLib is a moderately large class library that was created as a method to
32 produce applications that run on both Microsoft Windows and the X Window
33 System.
34 endef
35
36 TARGET_CFLAGS += $(FPIC)
37
38 CONFIGURE_ARGS += \
39 --enable-minsize \
40 --enable-openh323 \
41 --enable-opal \
42 --disable-internalregex \
43 --disable-plugins \
44 --enable-audio \
45 --disable-alsa \
46 --enable-asn \
47 --disable-avc \
48 --disable-dc \
49 --disable-dtmf \
50 --disable-expat \
51 --disable-ftp \
52 --enable-http \
53 --disable-httpsvc \
54 --disable-ipv6 \
55 --disable-jabber \
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 --enable-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 STDCXXFLAGS="$(TARGET_CFLAGS) -fno-builtin" \
84
85 MAKE_FLAGS += optnoshared
86
87 define Build/InstallDev
88 ln -sf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
89 $(SED) 's|//\(#include <ptlib/sound.h>\)|\1|' $(PKG_BUILD_DIR)/include/ptlib.h
90 endef
91
92 $(eval $(call BuildPackage,pwlib))