standardize Makefile, change section from base to utils, remove dup description
[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_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
18 PKG_MD5SUM:=0d6d65be8896eff081aee996049afaa5
19 PKG_CAT:=zcat
20
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/pcmcia-cs
26 SECTION:=utils
27 CATEGORY:=Utilities
28 DEPENDS:=@LINUX_2_4&&PCMCIA_SUPPORT
29 TITLE:=PCMCIA/Cardbus management utilities
30 URL:=http://pcmcia-cs.sourceforge.net/
31 endef
32
33 define Build/Configure
34 ( cd $(PKG_BUILD_DIR); \
35 ./Configure \
36 --noprompt \
37 --kernel="$(LINUX_DIR)" \
38 --target="$(PKG_INSTALL_DIR)" \
39 --arch="$(ARCH)" \
40 --ucc="$(TARGET_CC)" \
41 --uflags="$(TARGET_CFLAGS)" \
42 --srctree \
43 --cardbus \
44 --noapm \
45 --nopnp \
46 --notrust \
47 --nox11 \
48 --rcdir="/etc" \
49 --sysv \
50 )
51 endef
52
53 define Build/Compile
54 $(call Build/Compile/Default, \
55 CFLAGS="$(TARGET_CFLAGS)" \
56 all install \
57 )
58 endef
59
60 define Package/pcmcia-cs/install
61 install -d -m0755 $(1)/etc
62 $(CP) $(PKG_INSTALL_DIR)/etc/pcmcia $(1)/etc/
63 install -d -m0755 $(1)/usr/sbin
64 $(CP) $(PKG_INSTALL_DIR)/sbin/cardctl $(1)/usr/sbin/
65 $(CP) $(PKG_INSTALL_DIR)/sbin/cardmgr $(1)/usr/sbin/
66 endef
67
68 $(eval $(call BuildPackage,pcmcia-cs))
This page took 0.050052 seconds and 5 git commands to generate.