@ -2,31 +2,29 @@ include $(TOPDIR)/rules.mk
PKG_NAME := glog
PKG_NAME := glog
PKG_VERSION := 0.4.0
PKG_VERSION := 0.4.0
PKG_RELEASE := 3
PKG_RELEASE := 4
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://codeload.github.com/google/glog/tar.gz/v$( PKG_VERSION) ?
PKG_SOURCE_URL := https://codeload.github.com/google/glog/tar.gz/v$( PKG_VERSION) ?
PKG_HASH := f28359aeba12f30d73d9e4711ef356dc842886968112162bc73002645139c39c
PKG_HASH := f28359aeba12f30d73d9e4711ef356dc842886968112162bc73002645139c39c
PKG_MAINTAINER := Amir Sabbaghi <asaba90@gmail.com>
PKG_LICENSE := BSD-3-Clause
PKG_LICENSE := BSD-3-Clause
PKG_LICENSE_FILES := COPYING
PKG_LICENSE_FILES := COPYING
PKG_FIXUP := autoreconf
PKG_FIXUP := autoreconf
PKG_BUILD_PARALLEL := 1
PKG_BUILD_PARALLEL := 1
PKG_INSTALL := 1
PKG_BUILD_DEPENDS := libgflags
CMAKE_INSTALL := 1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / c m a k e . m k
d e f i n e P a c k a g e / g l o g
d e f i n e P a c k a g e / g l o g
SECTION:= libs
SECTION:= libs
CATEGORY:= Libraries
CATEGORY:= Libraries
TITLE:= C++ implementation of the Google logging module
TITLE:= C++ implementation of the Google logging module
DEPENDS:= +libstdcpp +libpthread +gflags
DEPENDS:= +libstdcpp +libpthread +gflags
URL:= https://github.com/google/glog
URL:= https://github.com/google/glog
MAINTAINER:= Amir Sabbaghi <amir@pichak.co>
e n d e f
e n d e f
d e f i n e P a c k a g e / g l o g / d e s c r i p t i o n
d e f i n e P a c k a g e / g l o g / d e s c r i p t i o n
@ -34,23 +32,13 @@ define Package/glog/description
module. Documentation for the implementation is in doc/.
module. Documentation for the implementation is in doc/.
e n d e f
e n d e f
CONFIGURE_VARS += ac_cv_header_libunwind_h = 0
CMAKE_OPTIONS += \
-DBUILD_SHARED_LIBS= ON \
-DBUILD_TESTING= OFF \
-DUNWIND_LIBRARY= OFF
TARGET_CXXFLAGS += -std= c++11
TARGET_LDFLAGS += -lpthread
d e f i n e B u i l d / C o n f i g u r e
$( call Build/Configure/Default,)
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include/glog
$( CP) $( PKG_INSTALL_DIR) /usr/include/glog/*.h $( 1) /usr/include/glog
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libglog.{ a,so*} $( 1) /usr/lib
$( INSTALL_DIR) $( 1) /usr/lib/pkgconfig
$( CP) $( PKG_INSTALL_DIR) /usr/lib/pkgconfig/libglog.pc $( 1) /usr/lib/pkgconfig/
e n d e f
TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
TARGET_CFLAGS += -Wl,--gc-sections
d e f i n e P a c k a g e / g l o g / i n s t a l l
d e f i n e P a c k a g e / g l o g / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( INSTALL_DIR) $( 1) /usr/lib