fix install of in-tree modules ipkgs
[openwrt.git] / package / pcmcia-cs / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=pcmcia-cs
6 PKG_VERSION:=3.2.8
7 PKG_RELEASE:=1
8
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
13 PKG_CAT:=zcat
14
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 define Package/pcmcia-cs
20 SECTION:=base
21 DEPENDS:=@PCMCIA_SUPPORT
22 TITLE:=PCMCIA/Cardbus management utilities
23 DESCRIPTION:=PCMCIA/Cardbus management utilities
24 URL:=http://pcmcia-cs.sourceforge.net/
25 endef
26
27 define Build/Configure
28 ( cd $(PKG_BUILD_DIR); \
29 ./Configure \
30 --noprompt \
31 --kernel="$(LINUX_DIR)" \
32 --target="$(PKG_INSTALL_DIR)" \
33 --arch="$(ARCH)" \
34 --ucc="$(TARGET_CC)" \
35 --uflags="$(TARGET_CFLAGS)" \
36 --srctree \
37 --cardbus \
38 --noapm \
39 --nopnp \
40 --notrust \
41 --nox11 \
42 --sysv --rcdir="/etc" \
43 )
44 endef
45
46 define Build/Compile
47 rm -rf $(PKG_INSTALL_DIR)
48 mkdir -p $(PKG_INSTALL_DIR)
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 CFLAGS="$(TARGET_CFLAGS)" \
51 all install
52 endef
53
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/
60 endef
61
62 $(eval $(call BuildPackage,pcmcia-cs))
This page took 0.059954 seconds and 5 git commands to generate.