Root/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
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=pcmcia-cs
12PKG_VERSION:=3.2.8
13PKG_RELEASE:=1
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17PKG_MD5SUM:=0d6d65be8896eff081aee996049afaa5
18
19include $(INCLUDE_DIR)/package.mk
20
21define 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/
27endef
28
29$(STAMP_CONFIGURED): $(LINUX_DIR)/.config
30
31define 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    )
49endef
50
51define 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    )
58endef
59
60define 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/
66endef
67
68$(eval $(call BuildPackage,pcmcia-cs))
69

Archive Download this file



interactive