madwifi: minor cleanup for the channel handling patch
[openwrt.git] / package / pcmcia-cs / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=pcmcia-cs
12 PKG_VERSION:=3.2.8
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_MD5SUM:=0d6d65be8896eff081aee996049afaa5
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/pcmcia-cs
22 SECTION:=utils
23 CATEGORY:=Utilities
24 DEPENDS:=@LINUX_2_4 @PCMCIA_SUPPORT
25 TITLE:=PCMCIA/Cardbus management utilities
26 URL:=http://pcmcia-cs.sourceforge.net/
27 endef
28
29 $(STAMP_CONFIGURED): $(LINUX_DIR)/.config
30
31 define Build/Configure
32 ( cd $(PKG_BUILD_DIR); \
33 ./Configure \
34 --noprompt \
35 --kernel="$(LINUX_DIR)" \
36 --target="$(PKG_INSTALL_DIR)" \
37 --arch="$(ARCH)" \
38 --ucc="$(TARGET_CC)" \
39 --uflags="$(TARGET_CFLAGS)" \
40 --srctree \
41 --cardbus \
42 --noapm \
43 --nopnp \
44 --notrust \
45 --nox11 \
46 --rcdir="/etc" \
47 --sysv \
48 )
49 endef
50
51 define Build/Compile
52 rm -rf $(PKG_INSTALL_DIR)
53 mkdir -p $(PKG_INSTALL_DIR)
54 $(call Build/Compile/Default, \
55 CFLAGS="$(TARGET_CFLAGS)" \
56 all install \
57 )
58 endef
59
60 define Package/pcmcia-cs/install
61 $(INSTALL_DIR) $(1)/etc
62 $(CP) $(PKG_INSTALL_DIR)/etc/pcmcia $(1)/etc/
63 $(INSTALL_DIR) $(1)/usr/sbin
64 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/cardctl $(1)/usr/sbin/
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/cardmgr $(1)/usr/sbin/
66 endef
67
68 $(eval $(call BuildPackage,pcmcia-cs))
This page took 0.048244 seconds and 5 git commands to generate.