66e806dc17ad3ca3a705db981875b8620c192e36
[openwrt.git] / openwrt / package / pwlib / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=pwlib
6 PKG_VERSION:=cvs-20051227
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=7d5b8e9ab61a05658a5630f91505420d
9
10 PKG_SOURCE_URL:=http://trash.uid0.hu/openwrt
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,PWLIB,pwlib,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.configured:
21         ( cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
22                 CFLAGS="$(TARGET_CFLAGS)" \
23                 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti"  \
24                 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
25                 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
26                 $(TARGET_CONFIGURE_OPTS) \
27                 ./configure \
28                         --target=$(GNU_TARGET_NAME) \
29                         --host=$(GNU_TARGET_NAME) \
30                         --build=$(GNU_HOST_NAME) \
31                         --program-prefix="" \
32                         --program-suffix="" \
33                         --prefix=/usr \
34                         --exec-prefix=/usr \
35                         --bindir=/usr/bin \
36                         --datadir=/usr/share \
37                         --includedir=/usr/include \
38                         --infodir=/usr/share/info \
39                         --libdir=/usr/lib \
40                         --libexecdir=/usr/lib \
41                         --localstatedir=/var \
42                         --mandir=/usr/share/man \
43                         --sbindir=/usr/sbin \
44                         --sysconfdir=/etc \
45                           $(DISABLE_LARGEFILE) \
46                           $(DISABLE_NLS) \
47                         \
48                         --enable-minsize \
49                         --enable-openh323 \
50                         --disable-opal \
51                         --disable-internalregex \
52                         --disable-plugins \
53                         --enable-audio \
54                         --disable-alsa \
55                         --disable-asn \
56                         --disable-avc \
57                         --disable-dc \
58                         --disable-dtmf \
59                         --disable-expat \
60                         --disable-ftp \
61                         --disable-http \
62                         --disable-httpsvc \
63                         --disable-ipv6 \
64                         --disable-jabber \
65                         --disable-openldap \
66                         --disable-openssl \
67                         --disable-oss \
68                         --disable-pipechan \
69                         --disable-pop3smtp \
70                         --disable-remconn \
71                         --disable-resolver \
72                         --disable-qos \
73                         --disable-sasl \
74                         --disable-sdl \
75                         --disable-serial \
76                         --disable-shm-video \
77                         --disable-snmp \
78                         --disable-soap \
79                         --disable-socks \
80                         --disable-stun \
81                         --disable-telnet \
82                         --disable-tts \
83                         --disable-v4l \
84                         --disable-v4l2 \
85                         --disable-bsdvideo \
86                         --disable-video \
87                         --disable-vxml \
88                         --disable-wavfile \
89                         --disable-xmlrpc \
90         );
91         touch $@
92
93 $(PKG_BUILD_DIR)/.built:
94         $(MAKE) -C $(PKG_BUILD_DIR) \
95                 $(TARGET_CONFIGURE_OPTS) \
96                 optnoshared
97         touch $@
98
99 install-link:
100         ln -s $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
101
102 uninstall-link:
103         rm -rf $(BUILD_DIR)/$(PKG_NAME)
104
105 compile-targets: $(PKG_BUILD_DIR)/.built install-link
106 clean-targets: uninstall-link