liburcu: moved to github
[openwrt.org/packages.git] / libs / libpfm / Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# Copyright (C) 2006-2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
 
include $(TOPDIR)/rules.mk
 
PKG_NAME:=libpfm
PKG_VERSION:=3.6
PKG_RELEASE:=1
 
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/perfmon2
PKG_MD5SUM:=5075fa45ddce4aa647b70e9f9446eacc
 
include $(INCLUDE_DIR)/package.mk
 
define Package/libpfm
  SECTION:=libs
  CATEGORY:=Libraries
  TITLE:=Perfmon2 Kernel performance monitoring interface
  URL:=http://perfmon2.sourceforge.net/
  DEPENDS:=@BROKEN
endef
 
define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) \
                ARCH=cell \
                CC=$(TARGET_CROSS)gcc \
                AR=$(TARGET_CROSS)ar \
                lib
endef
 
define Build/InstallDev
        echo "Build/InstallDev"
        $(MAKE) -C $(PKG_BUILD_DIR)/include \
                ARCH=cell \
                DESTDIR=$(1) \
                INCDIR=/usr/include \
                CONFIG_PFMLIB_ARCH_POWERPC=y \
                install
#       $(MAKE) -C $(PKG_BUILD_DIR)/lib \
#               ARCH=cell \
#               CC=$(TARGET_CROSS)gcc \
#               DESTDIR=$(1) \
#               LIBDIR=/usr/lib \
#               CONFIG_PFMLIB_ARCH_POWERPC=y \
#               CONFIG_PFMLIB_CELL=y \
#               CONFIG_PFMLIB_SHARED=y \
#               install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP)   $(PKG_BUILD_DIR)/lib/libpfm* $(1)/usr/lib/
endef
 
define Package/libpfm/install
        echo "Package/libpfm/install"
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_BUILD_DIR)/lib/libpfm* $(1)/usr/lib/
endef
 
$(eval $(call BuildPackage,libpfm))
 
comments