fix xsupplicant build against wireless extension 19 introduced by [2198]
[openwrt.git] / openwrt / package / xsupplicant / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=xsupplicant
4 PKG_VERSION:=1.2.2
5 PKG_RELEASE:=1
6 PKG_MD5SUM:=0e9aaf83a11f8eaff7c6564a53c25d8e
7
8 PKG_SOURCE_URL:=@SF/open1x
9 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
10 PKG_CAT:=zcat
11
12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
13 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
14
15 include $(TOPDIR)/package/rules.mk
16
17 $(eval $(call PKG_template,XSUPPLICANT,xsupplicant,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
18
19 $(PKG_BUILD_DIR)/.configured:
20 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
21 touch configure.in; \
22 touch aclocal.m4; \
23 touch Makefile.in; \
24 touch configure; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 $(DISABLE_LARGEFILE) \
48 $(DISABLE_NLS) \
49 --with-openssl="$(STAGING_DIR)/usr" \
50 --with-madwifi-path="$(STAGING_DIR)/usr/include/madwifi" \
51 );
52 touch $@
53
54 $(PKG_BUILD_DIR)/.built:
55 rm -rf $(PKG_INSTALL_DIR)
56 mkdir -p $(PKG_INSTALL_DIR)
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 DESTDIR=$(PKG_INSTALL_DIR) \
59 all install
60 touch $@
61
62 $(IPKG_XSUPPLICANT):
63 install -d -m0755 $(IDIR_XSUPPLICANT)/etc
64 install -m0644 $(PKG_BUILD_DIR)/etc/xsupplicant.conf $(IDIR_XSUPPLICANT)/etc/
65 install -d -m0755 $(IDIR_XSUPPLICANT)/usr/bin
66 cp -fpR $(PKG_INSTALL_DIR)/usr/bin/xsup_* $(IDIR_XSUPPLICANT)/usr/bin/
67 install -d -m0755 $(IDIR_XSUPPLICANT)/usr/sbin
68 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/xsupplicant $(IDIR_XSUPPLICANT)/usr/sbin/
69 $(RSTRIP) $(IDIR_XSUPPLICANT)
70 $(IPKG_BUILD) $(IDIR_XSUPPLICANT) $(PACKAGE_DIR)
This page took 0.043397 seconds and 5 git commands to generate.