Merge pull request #4981 from stintel/issue4917
[feed/packages.git] / libs / libglog / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=glog
4 PKG_RELEASE:=1
5 PKG_SOURCE_PROTO:=git
6 PKG_SOURCE_URL:=https://github.com/google/glog.git
7 PKG_SOURCE_VERSION:=v0.3.5
8 PKG_MIRROR_HASH:=4677fba927e2d9cdcbc518c34c88465260d506d88072ea16217a8171310b9a1c
9
10 PKG_FIXUP:=autoreconf
11 PKG_INSTALL:=1
12
13 PKG_LICENSE_FILE:=COPYING
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/glog
18 SECTION:=libs
19 CATEGORY:=Libraries
20 TITLE:=C++ implementation of the Google logging module
21 DEPENDS:= +libstdcpp +libpthread
22 URL:=https://github.com/google/glog
23 MAINTAINER:=Amir Sabbaghi <amir@pichak.co>
24 endef
25
26 define Package/glog/description
27 This repository contains a C++ implementation of the Google logging
28 module. Documentation for the implementation is in doc/.
29 endef
30
31 TARGET_CXXFLAGS+=-std=c++11
32 TARGET_LDFLAGS+=-lpthread
33
34 define Build/Configure
35 $(call Build/Configure/Default,)
36 endef
37
38 define Build/InstallDev
39 $(INSTALL_DIR) $(1)/usr/include/glog
40 $(CP) $(PKG_INSTALL_DIR)/usr/include/glog/*.h $(1)/usr/include/glog
41 $(INSTALL_DIR) $(1)/usr/lib
42 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libglog.{a,so*} $(1)/usr/lib
43 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libglog.pc $(1)/usr/lib/pkgconfig/
45 endef
46
47 define Package/glog/install
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libglog.so.* $(1)/usr/lib/
50 endef
51
52 $(eval $(call BuildPackage,glog))