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 $(TOPDIR
)/package
/rules.mk
19 define Package
/pcmcia-cs
23 TITLE
:=PCMCIA
/Cardbus management utilities
24 DESCRIPTION
:=PCMCIA
/Cardbus management utilities
25 URL
:=http
://pcmcia-cs.sourceforge.net
/
28 define Build
/Configure
29 ( cd
$(PKG_BUILD_DIR
); \
32 --kernel
="$(LINUX_DIR)" \
33 --target
="$(PKG_INSTALL_DIR)" \
35 --ucc
="$(TARGET_CC)" \
36 --uflags
="$(TARGET_CFLAGS)" \
43 --sysv
--rcdir
="/etc" \
48 rm -rf
$(PKG_INSTALL_DIR
)
49 mkdir
-p
$(PKG_INSTALL_DIR
)
50 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
51 CFLAGS
="$(TARGET_CFLAGS)" \
55 define Package
/pcmcia-cs
/install
56 install -m0755
-d
$(1)/etc
57 $(CP
) $(PKG_INSTALL_DIR
)/etc
/pcmcia
$(1)/etc
/
58 install -m0755
-d
$(1)/usr
/sbin
59 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/cardctl
$(1)/usr
/sbin
/
60 $(CP
) $(PKG_INSTALL_DIR
)/sbin
/cardmgr
$(1)/usr
/sbin
/
63 $(eval
$(call BuildPackage
,pcmcia-cs
))