usbmuxd: Update to latest git
[feed/packages.git] / libs / libglog / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=glog
4 PKG_VERSION:=0.3.5
5 PKG_RELEASE:=3
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=https://codeload.github.com/google/glog/tar.gz/v$(PKG_VERSION)?
9 PKG_HASH:=7580e408a2c0b5a89ca214739978ce6ff480b5e7d8d7698a2aa92fadc484d1e0
10
11 PKG_LICENSE:=BSD-3-Clause
12 PKG_LICENSE_FILE:=COPYING
13
14 PKG_FIXUP:=autoreconf
15
16 PKG_BUILD_PARALLEL:=1
17 PKG_INSTALL:=1
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/glog
22 SECTION:=libs
23 CATEGORY:=Libraries
24 TITLE:=C++ implementation of the Google logging module
25 DEPENDS:= +libstdcpp +libpthread
26 URL:=https://github.com/google/glog
27 MAINTAINER:=Amir Sabbaghi <amir@pichak.co>
28 endef
29
30 define Package/glog/description
31 This repository contains a C++ implementation of the Google logging
32 module. Documentation for the implementation is in doc/.
33 endef
34
35 CONFIGURE_VARS+=ac_cv_header_libunwind_h=0
36
37 TARGET_CXXFLAGS+=-std=c++11
38 TARGET_LDFLAGS+=-lpthread
39
40 define Build/Configure
41 $(call Build/Configure/Default,)
42 endef
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include/glog
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/glog/*.h $(1)/usr/include/glog
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libglog.{a,so*} $(1)/usr/lib
49 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libglog.pc $(1)/usr/lib/pkgconfig/
51 endef
52
53 define Package/glog/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libglog.so.* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,glog))