summaryrefslogtreecommitdiff
path: root/package/wireless-tools/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/wireless-tools/Makefile')
-rw-r--r--package/wireless-tools/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/wireless-tools/Makefile b/package/wireless-tools/Makefile
new file mode 100644
index 000000000..ca9a84809
--- /dev/null
+++ b/package/wireless-tools/Makefile
@@ -0,0 +1,37 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= wireless-tools
+PKG_VERSION:= 29
+PKG_RELEASE:= 1
+PKG_MD5SUM:= e06c222e186f7cc013fd272d023710cb
+PKG_DESCR:= Linux wireless tools (for older wireless drivers)
+PKG_SECTION:= base
+PKG_SITES:= http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/
+
+DISTFILES:= wireless_tools.${PKG_VERSION}.tar.gz
+WRKDIST= ${WRKDIR}/wireless_tools.29
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,WIRELESS_TOOLS,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= manual
+MAKE_FLAGS+= CC="${TARGET_CC}" CFLAGS="${TARGET_CFLAGS} -I."
+ALL_TARGET:= libiw.so.29 iwmulticall
+FAKE_FLAGS:= INSTALL_DIR="${WRKINST}/usr/sbin" \
+ INSTALL_LIB="${WRKINST}/usr/lib" \
+ INSTALL_INC="${WRKINST}/usr/include"
+INSTALL_TARGET:= install-iwmulticall install-hdr install-dynamic
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_WIRELESS_TOOLS}/usr/sbin
+ ${INSTALL_DIR} ${IDIR_WIRELESS_TOOLS}/usr/lib
+ ${INSTALL_DATA} ${WRKINST}/usr/lib/libiw.so.* \
+ ${IDIR_WIRELESS_TOOLS}/usr/lib/
+ ${CP} ${WRKINST}/usr/sbin/iw* ${IDIR_WIRELESS_TOOLS}/usr/sbin/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
+