Update dependencies on libspe2 and libpfm
[openwrt/svn-archive/archive.git] / libs / libspe2 / Makefile
1 #
2 # Copyright (C) 2006-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:=libspe2
11 PKG_VERSION:=2.3.0
12 PKG_MINOR_VERSION:=135
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).$(PKG_MINOR_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/libspe
17 PKG_MD5SUM:=c77dc69d3585d45f980e661232ae2b0b
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/libspe2
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=SPE Runtime Management Library for the Cell Broadband Engine
25 DEPENDS:=@TARGET_ps3||TARGET_ps3chk
26 URL:=http://sourceforge.net/projects/libspe/
27 endef
28
29 define Build/Compile
30 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" SYSROOT="" CROSS=$(TARGET_CROSS) all install
31 endef
32
33 define Build/InstallDev
34 echo "Build/InstallDev"
35 mkdir -p $(1)/usr/include
36 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
37 mkdir -p $(1)/usr/lib
38 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspe2* $(1)/usr/lib/
39 endef
40
41 define Package/libspe2/install
42 echo "Package/libspe2/install"
43 $(INSTALL_DIR) $(1)/usr/lib
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspe2* $(1)/usr/lib/
45 endef
46
47 $(eval $(call BuildPackage,libspe2))