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
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
17 PKG_MD5SUM
:=0d6d65be8896eff081aee996049afaa5
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/pcmcia-cs
24 DEPENDS
:=@PCMCIA_SUPPORT
25 TITLE
:=PCMCIA
/Cardbus management utilities
26 URL
:=http
://pcmcia-cs.sourceforge.net
/
29 $(PKG_BUILD_DIR
)/.configured
: $(LINUX_DIR
)/.config
31 define Build
/Configure
32 ( cd
$(PKG_BUILD_DIR
); \
35 --kernel
="$(LINUX_DIR)" \
36 --target
="$(PKG_INSTALL_DIR)" \
38 --ucc
="$(TARGET_CC)" \
39 --uflags
="$(TARGET_CFLAGS)" \
52 rm -rf
$(PKG_INSTALL_DIR
)
53 mkdir
-p
$(PKG_INSTALL_DIR
)
54 $(call Build
/Compile
/Default
, \
55 CFLAGS
="$(TARGET_CFLAGS)" \
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 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/cardctl
$(1)/usr
/sbin
/
65 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/cardmgr
$(1)/usr
/sbin
/
68 $(eval
$(call BuildPackage
,pcmcia-cs
))