2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
18 PKG_MD5SUM
:=0d6d65be8896eff081aee996049afaa5
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/pcmcia-cs
25 DEPENDS
:=@LINUX_2_4 @PCMCIA_SUPPORT
26 TITLE
:=PCMCIA
/Cardbus management utilities
27 URL
:=http
://pcmcia-cs.sourceforge.net
/
30 $(STAMP_CONFIGURED
): $(LINUX_DIR
)/.config
32 define Build
/Configure
33 ( cd
$(PKG_BUILD_DIR
); \
36 --kernel
="$(LINUX_DIR)" \
37 --target
="$(PKG_INSTALL_DIR)" \
39 --ucc
="$(TARGET_CC)" \
40 --uflags
="$(TARGET_CFLAGS)" \
53 rm -rf
$(PKG_INSTALL_DIR
)
54 mkdir
-p
$(PKG_INSTALL_DIR
)
55 $(call Build
/Compile
/Default
, \
56 CFLAGS
="$(TARGET_CFLAGS)" \
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
/
69 $(eval
$(call BuildPackage
,pcmcia-cs
))