af9c755c1d29642c457939994e00983c43be43e6
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=pcmcia-cs
13 PKG_VERSION:=3.2.8
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
18 PKG_MD5SUM:=0d6d65be8896eff081aee996049afaa5
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/pcmcia-cs
23 SECTION:=utils
24 CATEGORY:=Utilities
25 DEPENDS:=@LINUX_2_4 @PCMCIA_SUPPORT
26 TITLE:=PCMCIA/Cardbus management utilities
27 URL:=http://pcmcia-cs.sourceforge.net/
28 endef
29
30 $(STAMP_CONFIGURED): $(LINUX_DIR)/.config
31
32 define Build/Configure
33 ( cd $(PKG_BUILD_DIR); \
34 ./Configure \
35 --noprompt \
36 --kernel="$(LINUX_DIR)" \
37 --target="$(PKG_INSTALL_DIR)" \
38 --arch="$(ARCH)" \
39 --ucc="$(TARGET_CC)" \
40 --uflags="$(TARGET_CFLAGS)" \
41 --srctree \
42 --cardbus \
43 --noapm \
44 --nopnp \
45 --notrust \
46 --nox11 \
47 --rcdir="/etc" \
48 --sysv \
49 )
50 endef
51
52 define Build/Compile
53 rm -rf $(PKG_INSTALL_DIR)
54 mkdir -p $(PKG_INSTALL_DIR)
55 $(call Build/Compile/Default, \
56 CFLAGS="$(TARGET_CFLAGS)" \
57 all install \
58 )
59 endef
60
61 define Package/pcmcia-cs/install
62 $(INSTALL_DIR) $(1)/etc
63 $(CP) $(PKG_INSTALL_DIR)/etc/pcmcia $(1)/etc/
64 $(INSTALL_DIR) $(1)/usr/sbin
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/cardctl $(1)/usr/sbin/
66 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/sbin/cardmgr $(1)/usr/sbin/
67 endef
68
69 $(eval $(call BuildPackage,pcmcia-cs))
This page took 0.040917 seconds and 3 git commands to generate.