[packages] sysfsutils: don't blindly copy intermediate libtool files, use 'make insta...
[openwrt/svn-archive/archive.git] / utils / 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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=foxboard-utils
11 PKG_VERSION:=1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=foxboard-utils.tar.bz2
15 PKG_SOURCE_URL:=http://www.acmesystems.it/download/owrt
16 PKG_MD5SUM:=
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/foxboard-utils
23 SECTION:=utils
24 CATEGORY:=Base system
25 TITLE:=Foxboard base tools
26 URL:=http://www.acmesystems.it
27 DEPENDS:=@TARGET_etrax
28 endef
29
30 define Package/foxboard-utils/description
31 This package contains a collection of tools for configuring the foxboard
32 gpio pins/leds.
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) CFLAGS="$(TARGET_CFLAGS)" CC="$(TARGET_CC)"
37 $(MAKE) -C $(PKG_BUILD_DIR) PREFIX="$(PKG_INSTALL_DIR)" install
38 endef
39
40 define Package/foxboard-utils/install
41 $(INSTALL_DIR) $(1)/
42 $(CP) $(PKG_INSTALL_DIR)/* $(1)
43 $(INSTALL_DIR) $(1)/www/cgi-bin
44 cd $(1)/www/cgi-bin; ln -s ../../bin/editcgi.cgi .
45 endef
46
47 $(eval $(call BuildPackage,foxboard-utils))