fix elinks, add MD5SUM, explicitely disable what seems not required,
[openwrt.git] / openwrt / package / xsupplicant / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=xsupplicant
6 PKG_VERSION:=1.2.3
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=c9b17b2e1879bac85c583980338fed85
9
10 PKG_SOURCE_URL:=@SF/open1x
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 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,XSUPPLICANT,xsupplicant,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
23 touch configure.in; \
24 touch aclocal.m4; \
25 touch Makefile.in; \
26 touch configure; \
27 $(TARGET_CONFIGURE_OPTS) \
28 CFLAGS="$(TARGET_CFLAGS)" \
29 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include \
30 -I$(PKG_BUILD_DIR)/lib/libxsupconfig/ \
31 -I$(STAGING_DIR)/usr/include/madwifi" \
32 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
33 ./configure \
34 --target=$(GNU_TARGET_NAME) \
35 --host=$(GNU_TARGET_NAME) \
36 --build=$(GNU_HOST_NAME) \
37 --program-prefix="" \
38 --program-suffix="" \
39 --prefix=/usr \
40 --exec-prefix=/usr \
41 --bindir=/usr/bin \
42 --datadir=/usr/share \
43 --includedir=/usr/include \
44 --infodir=/usr/share/info \
45 --libdir=/usr/lib \
46 --libexecdir=/usr/lib \
47 --localstatedir=/var \
48 --mandir=/usr/share/man \
49 --sbindir=/usr/sbin \
50 --sysconfdir=/etc \
51 $(DISABLE_LARGEFILE) \
52 $(DISABLE_NLS) \
53 --with-openssl="$(STAGING_DIR)/usr" \
54 --with-madwifi-path="$(STAGING_DIR)/usr/include/madwifi" \
55 );
56 touch $@
57
58 $(PKG_BUILD_DIR)/.built:
59 rm -rf $(PKG_INSTALL_DIR)
60 mkdir -p $(PKG_INSTALL_DIR)
61 $(MAKE) -C $(PKG_BUILD_DIR) \
62 DESTDIR=$(PKG_INSTALL_DIR) \
63 all install
64 touch $@
65
66 $(IPKG_XSUPPLICANT):
67 install -d -m0755 $(IDIR_XSUPPLICANT)/etc
68 install -m0644 $(PKG_BUILD_DIR)/etc/xsupplicant.conf $(IDIR_XSUPPLICANT)/etc/
69 install -d -m0755 $(IDIR_XSUPPLICANT)/usr/bin
70 $(CP) $(PKG_INSTALL_DIR)/usr/bin/xsup_* $(IDIR_XSUPPLICANT)/usr/bin/
71 install -d -m0755 $(IDIR_XSUPPLICANT)/usr/sbin
72 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/xsupplicant $(IDIR_XSUPPLICANT)/usr/sbin/
73 $(RSTRIP) $(IDIR_XSUPPLICANT)
74 $(IPKG_BUILD) $(IDIR_XSUPPLICANT) $(PACKAGE_DIR)
This page took 0.055472 seconds and 5 git commands to generate.