66a93b8ba70af70c410b17b63bb0b19cdb8de749
[openwrt/svn-archive/archive.git] / package / ps3-utils / Makefile
1 #
2 # Copyright (C) 2008 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:=ps3-utils
11 PKG_VERSION:=6488134e48cf2d6f2d6471ced8346ac8cb1b855a
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://www.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-utils.git
16 PKG_SOURCE_PROTO:=git
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_VERSION:=$(PKG_VERSION)
19
20 PKG_FIXUP:=libtool
21 PKG_INSTALL=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/ps3-utils
26 SECTION:=utils
27 CATEGORY:=Utilities
28 TITLE:=PS3 Linux Utilities
29 URL:=http://kernel.org/pub/linux/kernel/people/geoff/cell/ps3-utils/
30 MAINTAINER:=Geoff Levand <geoffrey.levand@am.sony.com>
31 DEPENDS:=@TARGET_ps3||TARGET_ps3chk||TARGET_powerpc
32 endef
33
34 define Package/ps3-utils/description
35 The ps3-utils package is a set of system administration utilites for the
36 PS3 game console.
37 endef
38
39 define Build/Configure
40 (cd $(PKG_BUILD_DIR) && $(BASH) -x ./bootstrap)
41 $(call Build/Configure/Default)
42 endef
43
44 define Package/ps3-utils/install
45 $(INSTALL_DIR) $(1)/usr/sbin
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_DIR) $(1)/usr/lib
48
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ps3-boot-game-os $(1)/usr/sbin
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ps3-dump-bootloader $(1)/usr/sbin
51 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ps3-flash-util $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ps3-video-mode $(1)/usr/bin
53
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libps3-utils.so.* $(1)/usr/lib
55 endef
56
57 $(eval $(call BuildPackage,ps3-utils))