port changes in whiterussian ([3341]) to trunk.
[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 PKG_MD5SUM:=0d6d65be8896eff081aee996049afaa5
9
10 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,PCMCIA_UTILS,pcmcia-utils,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 ( cd $(PKG_BUILD_DIR); \
23 ./Configure \
24 --noprompt \
25 --kernel="$(LINUX_DIR)" \
26 --target="$(PKG_INSTALL_DIR)" \
27 --arch="$(ARCH)" \
28 --ucc="$(TARGET_CC)" \
29 --uflags="$(TARGET_CFLAGS)" \
30 --srctree \
31 --cardbus \
32 --noapm \
33 --nopnp \
34 --notrust \
35 --nox11 \
36 --sysv --rcdir="/etc" \
37 )
38 touch $@
39
40 $(PKG_BUILD_DIR)/.built:
41 rm -rf $(PKG_INSTALL_DIR)
42 mkdir -p $(PKG_INSTALL_DIR)
43 $(MAKE) -C $(PKG_BUILD_DIR) \
44 CFLAGS="$(TARGET_CFLAGS)" \
45 all install
46 touch $@
47
48 $(IPKG_PCMCIA_UTILS):
49 install -m0755 -d $(IDIR_PCMCIA_UTILS)/etc
50 $(CP) $(PKG_INSTALL_DIR)/etc/pcmcia $(IDIR_PCMCIA_UTILS)/etc/
51 install -m0755 -d $(IDIR_PCMCIA_UTILS)/usr/sbin
52 $(CP) $(PKG_INSTALL_DIR)/sbin/cardctl $(IDIR_PCMCIA_UTILS)/usr/sbin/
53 $(CP) $(PKG_INSTALL_DIR)/sbin/cardmgr $(IDIR_PCMCIA_UTILS)/usr/sbin/
54 $(RSTRIP) $(IDIR_PCMCIA_UTILS)
55 $(IPKG_BUILD) $(IDIR_PCMCIA_UTILS) $(PACKAGE_DIR)
56
This page took 0.064601 seconds and 5 git commands to generate.