add a default for PKG_BUILD_DIR and PKG_INSTALL_DIR (will use KERNEL_BUILD_DIR if...
[openwrt.git] / package / pcmcia-cs / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=pcmcia-cs
12 PKG_VERSION:=3.2.8
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
17 PKG_MD5SUM:=0d6d65be8896eff081aee996049afaa5
18 PKG_CAT:=zcat
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/pcmcia-cs
23 SECTION:=utils
24 CATEGORY:=Utilities
25 DEPENDS:=@PCMCIA_SUPPORT
26 TITLE:=PCMCIA/Cardbus management utilities
27 URL:=http://pcmcia-cs.sourceforge.net/
28 endef
29
30 $(PKG_BUILD_DIR)/.configured: $(LINUX_DIR)/.config
31
32 define Build/Configure
33 ( cd $(PKG_BUILD_DIR); \
34 ./Configure \
35 --noprompt \
36 --kernel="$(LINUX_DIR)" \
37 --target="$(PKG_INSTALL_DIR)" \
38 --arch="$(ARCH)" \
39 --ucc="$(TARGET_CC)" \
40 --uflags="$(TARGET_CFLAGS)" \
41 --srctree \
42 --cardbus \
43 --noapm \
44 --nopnp \
45 --notrust \
46 --nox11 \
47 --rcdir="/etc" \
48 --sysv \
49 )
50 endef
51
52 define Build/Compile
53 rm -rf $(PKG_INSTALL_DIR)
54 mkdir -p $(PKG_INSTALL_DIR)
55 $(call Build/Compile/Default, \
56 CFLAGS="$(TARGET_CFLAGS)" \
57 all install \
58 )
59 endef
60
61 define Package/pcmcia-cs/install
62 $(INSTALL_DIR) $(1)/etc
63 $(CP) $(PKG_INSTALL_DIR)/etc/pcmcia $(1)/etc/
64 $(INSTALL_DIR) $(1)/usr/sbin
65 $(CP) $(PKG_INSTALL_DIR)/sbin/cardctl $(1)/usr/sbin/
66 $(CP) $(PKG_INSTALL_DIR)/sbin/cardmgr $(1)/usr/sbin/
67 endef
68
69 $(eval $(call BuildPackage,pcmcia-cs))
This page took 0.039113 seconds and 5 git commands to generate.