1 include $(TOPDIR
)/rules.mk
6 PKG_MD5SUM
:=0e9aaf83a11f8eaff7c6564a53c25d8e
8 PKG_SOURCE_URL
:=@SF
/open1x
9 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
13 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
15 include $(TOPDIR
)/package
/rules.mk
17 $(eval
$(call PKG_template
,XSUPPLICANT
,xsupplicant
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
19 $(PKG_BUILD_DIR
)/.configured
:
20 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
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" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
49 --with-openssl
="$(STAGING_DIR)/usr" \
50 --with-madwifi-path
="$(STAGING_DIR)/usr/include/madwifi" \
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
) \
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
)