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_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
17 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
18 PKG_MD5SUM
:=0d6d65be8896eff081aee996049afaa5
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/pcmcia-cs
27 DEPENDS
:=@PCMCIA_SUPPORT
28 TITLE
:=PCMCIA
/Cardbus management utilities
29 DESCRIPTION
:=PCMCIA
/Cardbus management utilities
30 URL
:=http
://pcmcia-cs.sourceforge.net
/
33 define Build
/Configure
34 ( cd
$(PKG_BUILD_DIR
); \
37 --kernel
="$(LINUX_DIR)" \
38 --target
="$(PKG_INSTALL_DIR)" \
40 --ucc
="$(TARGET_CC)" \
41 --uflags
="$(TARGET_CFLAGS)" \
48 --sysv
--rcdir
="/etc" \
53 rm -rf
$(PKG_INSTALL_DIR
)
54 mkdir
-p
$(PKG_INSTALL_DIR
)
55 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
56 CFLAGS
="$(TARGET_CFLAGS)" \
60 define Package
/pcmcia-cs
/install
61 install -m0755
-d
$(1)/etc
62 $(CP
) $(PKG_INSTALL_DIR
)/etc
/pcmcia
$(1)/etc
/
63 install -m0755
-d
$(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
))