1 include $(TOPDIR
)/rules.mk
7 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
8 PKG_SOURCE_URL
:=https
://codeload.github.com
/gperftools
/gperftools
/tar.gz
/$(PKG_NAME
)-$(PKG_VERSION
)?
9 PKG_HASH
:=3918ff2e21bb3dbb5a801e1daf55fb20421906f7c42fbb482bede7bdc15dfd2e
10 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_NAME
)-$(PKG_VERSION
)
12 PKG_MAINTAINER
:=John Audia
<therealgraysky@proton.me
>
13 PKG_LICENSE
:=BSD-3-Clause
14 PKG_LICENSE_FILES
:=COPYING
16 PKG_BUILD_FLAGS
:=no-mips16
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/gperftools-headers
27 TITLE
:=Gperftools Headers
28 URL
:=https
://github.com
/gperftools
/gperftools
29 DEPENDS
:= @
!(mips||mips64||mipsel||powerpc
)
32 define Package
/gperftools-runtime
35 TITLE
:=Gperftools Runtime
36 URL
:=https
://github.com
/gperftools
/gperftools
37 DEPENDS
:= +libunwind
+libstdcpp @
!(mips||mips64||mipsel||powerpc
)
40 define Package
/gperftools-headers
/description
41 Gperftools is a collection of a high-performance multi-threaded malloc
() implementation
, plus some pretty nifty performance analysis tools.
42 This package contains the headers.
45 define Package
/gperftools-runtime
/description
46 Gperftools is a collection of a high-performance multi-threaded malloc
() implementation
, plus some pretty nifty performance analysis tools.
47 This package contains the shared objects and bins.
51 --enable-frame-pointers \
53 --disable-deprecated-pprof
55 define Build
/InstallDev
56 $(INSTALL_DIR
) $(1)/usr
/lib
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtcmalloc.so
* $(1)/usr
/lib
/
60 define Package
/gperftools-headers
/install
61 $(INSTALL_DIR
) $(1)/usr
/include/google
62 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/google
/tcmalloc.h
$(1)/usr
/include/google
63 $(INSTALL_DIR
) $(1)/usr
/include/gperftools
64 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/include/gperftools
/tcmalloc.h
$(1)/usr
/include/gperftools
67 define Package
/gperftools-runtime
/install
68 $(INSTALL_DIR
) $(1)/usr
/lib
69 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libtcmalloc.so
* $(1)/usr
/lib
/
71 $(eval
$(call BuildPackage
,gperftools-headers
))
72 $(eval
$(call BuildPackage
,gperftools-runtime
))