3 include $(TOPDIR
)/rules.mk
9 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
10 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
11 PKG_SOURCE_URL
:=@SF
/$(PKG_NAME
)
12 PKG_MD5SUM
:=0d6d65be8896eff081aee996049afaa5
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(INCLUDE_DIR
)/package.mk
19 define Package
/pcmcia-cs
21 DEPENDS
:=@PCMCIA_SUPPORT
22 TITLE
:=PCMCIA
/Cardbus management utilities
23 DESCRIPTION
:=PCMCIA
/Cardbus management utilities
24 URL
:=http
://pcmcia-cs.sourceforge.net
/
27 define Build
/Configure
28 ( cd
$(PKG_BUILD_DIR
); \
31 --kernel
="$(LINUX_DIR)" \
32 --target
="$(PKG_INSTALL_DIR)" \
34 --ucc
="$(TARGET_CC)" \
35 --uflags
="$(TARGET_CFLAGS)" \
42 --sysv
--rcdir
="/etc" \
47 rm -rf
$(PKG_INSTALL_DIR
)
48 mkdir
-p
$(PKG_INSTALL_DIR
)
49 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
50 CFLAGS
="$(TARGET_CFLAGS)" \
54 define Package
/pcmcia-cs
/install
55 install -m0755
-d
$(1)/etc
56 $(CP
) $(PKG_INSTALL_DIR
)/etc
/pcmcia
$(1)/etc
/
57 install -m0755
-d
$(1)/usr
/sbin
58 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/cardctl
$(1)/usr
/sbin
/
59 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/cardmgr
$(1)/usr
/sbin
/
62 $(eval
$(call BuildPackage
,pcmcia-cs
))