move gmp to buildroot-ng (required by isakmpd)
[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
28 TITLE:=Portable Windows library
29 DESCRIPTION:=Portable Windows library.
30 URL:=http://www.openh323.org/
31 endef
32
33 define Build/Configure
34 ( cd $(PKG_BUILD_DIR); rm -f config.cache; \
35 CFLAGS="$(TARGET_CFLAGS)" \
36 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
37 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
38 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
39 $(TARGET_CONFIGURE_OPTS) \
40 ./configure \
41 --target=$(GNU_TARGET_NAME) \
42 --host=$(GNU_TARGET_NAME) \
43 --build=$(GNU_HOST_NAME) \
44 --program-prefix="" \
45 --program-suffix="" \
46 --prefix=/usr \
47 --exec-prefix=/usr \
48 --bindir=/usr/bin \
49 --datadir=/usr/share \
50 --includedir=/usr/include \
51 --infodir=/usr/share/info \
52 --libdir=/usr/lib \
53 --libexecdir=/usr/lib \
54 --localstatedir=/var \
55 --mandir=/usr/share/man \
56 --sbindir=/usr/sbin \
57 --sysconfdir=/etc \
58 $(DISABLE_LARGEFILE) \
59 $(DISABLE_NLS) \
60 \
61 --enable-minsize \
62 --enable-openh323 \
63 --disable-opal \
64 --disable-internalregex \
65 --disable-plugins \
66 --enable-audio \
67 --disable-alsa \
68 --disable-asn \
69 --disable-avc \
70 --disable-dc \
71 --disable-dtmf \
72 --disable-expat \
73 --disable-ftp \
74 --disable-http \
75 --disable-httpsvc \
76 --disable-ipv6 \
77 --disable-jabber \
78 --disable-openldap \
79 --disable-openssl \
80 --disable-oss \
81 --disable-pipechan \
82 --disable-pop3smtp \
83 --disable-remconn \
84 --disable-resolver \
85 --disable-qos \
86 --disable-sasl \
87 --disable-sdl \
88 --disable-serial \
89 --disable-shm-video \
90 --disable-snmp \
91 --disable-soap \
92 --disable-socks \
93 --disable-stun \
94 --disable-telnet \
95 --disable-tts \
96 --disable-v4l \
97 --disable-v4l2 \
98 --disable-bsdvideo \
99 --disable-video \
100 --disable-vxml \
101 --disable-wavfile \
102 --disable-xmlrpc \
103 );
104 endef
105
106 define Build/Compile
107 $(MAKE) -C $(PKG_BUILD_DIR) \
108 $(TARGET_CONFIGURE_OPTS) \
109 optnoshared
110 endef
111
112 define Build/InstallDev
113 ln -sf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
114 endef
115
116 define Build/UninstallDev
117 rm -rf $(BUILD_DIR)/$(PKG_NAME)
118 endef
119
120 $(eval $(call BuildPackage,pwlib))