[package] add madwimax (#6167)
[packages.git] / net / madwimax / Makefile
1
2 # Copyright (C) 2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=madwimax
9 PKG_VERSION:=0.1.1
10 PKG_RELEASE:=1
11
12 PKG_SOURCE:=madwimax-0.1.1.tar.gz
13 PKG_SOURCE_URL:=http://madwimax.googlecode.com/files/
14 PKG_MD5SUM:=4ebd2d74e887e6f9d6f23067a4ad8272
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/madwimax
19   SECTION:=net
20   CATEGORY:=Network
21   TITLE:=driver for  WiMAX devices based on Samsung CMC-730 chip
22   URL:=http://code.google.com/p/madwimax/
23   DEPENDS:=+libusb-1.0 +kmod-tun +libpthread
24 endef
25
26 define Package/madwimax/description
27 madWiMAX is a reverse-engineered Linux driver for mobile WiMAX (802.16e) devices based on Samsung CMC-730 chip. These devices are currently supported:
28
29 Samsung SWC-U200
30 Samsung SWC-E100
31 Samsung SWM-S10R (built in Samsung NC-10 netbook)
32 endef
33
34 TARGET_CFLAGS += $(FPIC)
35
36 CONFIGURE_ARGS += --without-man-pages
37
38 define Package/madwimax/install
39         $(INSTALL_DIR) $(1)/usr/sbin
40         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/madwimax $(1)/usr/sbin/
41         $(INSTALL_DIR) $(1)/etc/madwimax
42         $(INSTALL_DIR) $(1)/etc/hotplug.d/usb
43         $(INSTALL_DIR) $(1)/etc/init.d
44         $(INSTALL_BIN) ./files/20-madwimax $(1)/etc/hotplug.d/usb/
45         $(INSTALL_BIN) ./files/event.sh $(1)/etc/madwimax/
46         $(INSTALL_BIN) ./files/madwimax $(1)/etc/init.d/
47 endef
48
49 $(eval $(call BuildPackage,madwimax))