use cp instead of $(CP), because bzImage might be a symlink
[openwrt.git] / package / foxboard-utils / 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: Makefile 7006 2007-04-19 12:06:39Z kaloz $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=foxboard-utils
12 PKG_VERSION:=1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=foxboard-utils.tar.bz2
16 PKG_SOURCE_URL:=http://www.acmesystems.it/download/owrt
17 PKG_MD5SUM:=
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/foxboard-utils
24 SECTION:=utils
25 CATEGORY:=Base system
26 TITLE:=Foxboard base tools
27 URL:=http://www.acmesystems.it
28 DEPENDS:=@TARGET_etrax
29 endef
30
31 define Package/foxboard-utils/description
32 This package contains a collection of tools for configuring the foxboard
33 gpio pins/leds.
34 endef
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) CFLAGS="$(TARGET_CFLAGS)" CC="$(TARGET_CC)"
38 $(MAKE) -C $(PKG_BUILD_DIR) PREFIX="$(PKG_INSTALL_DIR)" install
39 endef
40
41 define Package/foxboard-utils/install
42 $(INSTALL_DIR) $(1)/
43 $(CP) $(PKG_INSTALL_DIR)/* $(1)
44 mkdir -p $(1)/www/cgi-bin
45 cd $(1)/www/cgi-bin; ln -s ../../bin/editcgi.cgi .
46 endef
47
48 $(eval $(call BuildPackage,foxboard-utils))
This page took 0.043985 seconds and 5 git commands to generate.