add a workaround preventing libtool from hardcoding library path in shared libs
[openwrt.git] / package / nvram / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=nvram
11 PKG_RELEASE:=1
12
13 include $(INCLUDE_DIR)/package.mk
14
15 define Package/nvram
16 SECTION:=utils
17 CATEGORY:=Utilities
18 DEPENDS:=@TARGET_brcm_2_4
19 TITLE:=Broadcom config utility
20 endef
21
22 define Package/nvram/description
23 This package contains an utility to control broadcom's 'nvram' config area.
24 endef
25
26 define Build/Prepare
27 mkdir -p $(PKG_BUILD_DIR)
28 $(CP) ./src/* $(PKG_BUILD_DIR)
29 endef
30
31 TARGET_CFLAGS += $(FPIC)
32
33 define Build/InstallDev
34 mkdir -p $(1)/usr/lib
35 $(CP) $(PKG_BUILD_DIR)/libnvram*.so $(1)/usr/lib/
36 endef
37
38 define Package/nvram/install
39 $(INSTALL_DIR) $(1)/etc/init.d
40 $(INSTALL_BIN) ./files/nvram.init $(1)/etc/init.d/nvram
41 $(INSTALL_DIR) $(1)/usr/lib
42 $(CP) $(PKG_BUILD_DIR)/libnvram*.so $(1)/usr/lib/
43 $(INSTALL_DIR) $(1)/usr/sbin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nvram $(1)/usr/sbin/
45 endef
46
47 $(eval $(call BuildPackage,nvram))
This page took 0.043959 seconds and 5 git commands to generate.