mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
- Update to 0.2
This commit is contained in:
parent
b7f1944644
commit
234f71359c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=227643
@ -6,21 +6,30 @@
|
||||
#
|
||||
|
||||
PORTNAME= glog
|
||||
DISTVERSION= 0.1.1
|
||||
DISTVERSION= 0.2
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://google-glog.googlecode.com/files/
|
||||
|
||||
MAINTAINER= clsung@FreeBSD.org
|
||||
COMMENT= A library of C++ classes for flexible logging
|
||||
|
||||
LIB_DEPENDS+= execinfo.1:${PORTSDIR}/devel/libexecinfo
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_LDCONFIG= yes
|
||||
USE_GCC= 4.2+
|
||||
|
||||
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib -lexecinfo"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${ARCH} == "amd64" || ${ARCH} =="ia64" || ${ARCH} =="sparc64"
|
||||
EXTRA_PATCHES= ${FILESDIR}/extra-patch-src-logging.cc \
|
||||
${FILESDIR}/extra-patch-src-raw_logging.cc
|
||||
${FILESDIR}/extra-patch-src-utilities.cc
|
||||
.endif
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src-utilities.h
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (glog-0.1.1.tar.gz) = 19c001eaf7a261cfeb34aa6b8da118aa
|
||||
SHA256 (glog-0.1.1.tar.gz) = 589933e86b3815577c5abb546db8624638e3bf1742dec20a73b15d769b4d1088
|
||||
SIZE (glog-0.1.1.tar.gz) = 436766
|
||||
MD5 (glog-0.2.tar.gz) = c0fe88ea51ba4e2328580cffc4856ca5
|
||||
SHA256 (glog-0.2.tar.gz) = d3a71c5a057a95ed1432bf52c00fb8b9b6c4ff7980f1f27f9a7e6a4537bb7df3
|
||||
SIZE (glog-0.2.tar.gz) = 478999
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- src/raw_logging.cc.orig 2008-10-03 13:32:50.000000000 +0800
|
||||
+++ src/raw_logging.cc 2008-10-14 13:34:22.000000000 +0800
|
||||
@@ -87,7 +87,7 @@
|
||||
DoRawLog(&buf, &size, "%c%02d%02d %02d%02d%02d %08x %s:%d] RAW: ",
|
||||
LogSeverityNames[severity][0],
|
||||
1 + t.tm_mon, t.tm_mday, t.tm_hour, t.tm_min, t.tm_sec,
|
||||
- int(pthread_self()),
|
||||
+ long(pthread_self()),
|
||||
basename(const_cast<char *>(file)), line);
|
||||
}
|
||||
va_list ap;
|
20
devel/glog/files/extra-patch-src-utilities.cc
Normal file
20
devel/glog/files/extra-patch-src-utilities.cc
Normal file
@ -0,0 +1,20 @@
|
||||
--- src/utilities.cc.orig 2009-01-23 09:37:14.000000000 +0800
|
||||
+++ src/utilities.cc 2009-02-04 11:25:50.000000000 +0800
|
||||
@@ -187,8 +187,6 @@
|
||||
#ifndef __NR_gettid
|
||||
#ifdef OS_MACOSX
|
||||
#define __NR_gettid SYS_gettid
|
||||
-#elif ! defined __i386__
|
||||
-#error "Must define __NR_gettid for non-x86 platforms"
|
||||
#else
|
||||
#define __NR_gettid 224
|
||||
#endif
|
||||
@@ -214,7 +212,7 @@
|
||||
return GetCurrentThreadId();
|
||||
#else
|
||||
// If none of the techniques above worked, we use pthread_self().
|
||||
- return (pid_t)pthread_self();
|
||||
+ return reinterpret_cast<unsigned long>(pthread_self());
|
||||
#endif
|
||||
}
|
||||
|
11
devel/glog/files/extra-patch-src-utilities.h
Normal file
11
devel/glog/files/extra-patch-src-utilities.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/utilities.h.orig 2009-01-22 06:17:01.000000000 +0800
|
||||
+++ src/utilities.h 2009-02-05 08:07:44.000000000 +0800
|
||||
@@ -72,7 +72,7 @@
|
||||
#if defined(HAVE_LIB_UNWIND)
|
||||
# define STACKTRACE_H "stacktrace_libunwind-inl.h"
|
||||
#elif !defined(NO_FRAME_POINTER)
|
||||
-# if defined(__i386__) && __GNUC__ >= 2
|
||||
+# if (defined(__i386__) || defined(__amd64__)) && __GNUC__ >= 2
|
||||
# define STACKTRACE_H "stacktrace_x86-inl.h"
|
||||
# elif defined(__x86_64__) && __GNUC__ >= 2
|
||||
# define STACKTRACE_H "stacktrace_x86_64-inl.h"
|
@ -13,6 +13,7 @@ lib/libglog.a
|
||||
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
|
||||
%%PORTDOCS%%%%DOCSDIR%%/NEWS
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README.windows
|
||||
%%PORTDOCS%%%%DOCSDIR%%/designstyle.css
|
||||
%%PORTDOCS%%%%DOCSDIR%%/glog.html
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user