add INCLUDE_DIR variable for $(TOPDIR)/include
[openwrt.git] / package / nvram / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=nvram
6 PKG_RELEASE:=1
7
8 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
9
10 include $(INCLUDE_DIR)/package.mk
11
12 define Package/nvram
13 SECTION:=base
14 DEPENDS:=@LINUX_2_4_BRCM
15 TITLE:=Broadcom config utility
16 DESCRIPTION:=control utility for broadcom's 'nvram' config area
17 endef
18
19 define Build/Prepare
20 mkdir -p $(PKG_BUILD_DIR)
21 $(CP) ./src/* $(PKG_BUILD_DIR)
22 endef
23
24 define Package/nvram/install
25 install -d -m0755 $(1)/usr/lib
26 $(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(1)/usr/lib/
27 install -d -m0755 $(1)/usr/sbin
28 install -m0755 $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
29 endef
30
31 define Build/InstallDev
32 mkdir -p $(STAGING_DIR)/usr/lib
33 $(CP) $(PKG_BUILD_DIR)/lib{nvram,shared}*.so $(STAGING_DIR)/usr/lib/
34 endef
35
36 define Build/UninstallDev
37 rm -f $(STAGING_DIR)/usr/lib/lib{nvram,shared}*.so
38 endef
39
40 $(eval $(call BuildPackage,nvram))
This page took 0.043319 seconds and 5 git commands to generate.