aboutsummaryrefslogtreecommitdiff
path: root/devel/glog
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-12-20 18:16:04 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-12-20 18:16:04 +0000
commit7510804b48323e64a25df00346a2ea7942d1f430 (patch)
tree85b38116a07f00d6da7a196cdc5c715cf8a4a0f4 /devel/glog
parent430f92108cb3c6b6d045e31af930331acbd504e2 (diff)
- Add LICENSE
- Strip shared library - Sort USES - Use PORTDOCS - Simplify Makefile - Cosmetic change - Take maintainership
Notes
Notes: svn path=/head/; revision=375058
Diffstat (limited to 'devel/glog')
-rw-r--r--devel/glog/Makefile29
-rw-r--r--devel/glog/pkg-plist9
2 files changed, 14 insertions, 24 deletions
diff --git a/devel/glog/Makefile b/devel/glog/Makefile
index 57ee0f4ff3c4..90997ece610b 100644
--- a/devel/glog/Makefile
+++ b/devel/glog/Makefile
@@ -7,31 +7,30 @@ PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= GOOGLE_CODE
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Library of C++ classes for flexible logging
+LICENSE= BSD3CLAUSE
+
LIB_DEPENDS= libgflags.so:${PORTSDIR}/devel/gflags
-GNU_CONFIGURE= yes
-USES= execinfo pathfix libtool
-USE_LDCONFIG= yes
-PROJECTHOST= google-glog
+OPTIONS_DEFINE= DOCS
CPPFLAGS+= -I${LOCALBASE}/include
+GNU_CONFIGURE= yes
+INSTALL_TARGET= install-strip
LDFLAGS+= -L${LOCALBASE}/lib -lexecinfo
+USE_LDCONFIG= yes
+USES= execinfo libtool pathfix
-OPTIONS_DEFINE= DOCS
+PORTDOCS= *
-.include <bsd.port.pre.mk>
+PROJECTHOST= google-glog
post-patch:
- @${REINPLACE_CMD} -e 's|^docdir.*|docdir = ${DOCSDIR}|' ${WRKSRC}/Makefile.in
-.if ! ${PORT_OPTIONS:MDOCS}
- @${REINPLACE_CMD} -E -e '/^install-data-am/,/^$$/ s,install-(dist_doc|dist_html|html)DATA,,g' \
- ${WRKSRC}/Makefile.in
-.endif
+ @${REINPLACE_CMD} -e '/^docdir = / s| = .*| = ${DOCSDIR}|' ${WRKSRC}/Makefile.in
-regression-test:
- cd ${WRKSRC}; ${MAKE} check
+regression-test test: build
+ cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/devel/glog/pkg-plist b/devel/glog/pkg-plist
index 777bf5faf190..c1a125fc9e22 100644
--- a/devel/glog/pkg-plist
+++ b/devel/glog/pkg-plist
@@ -8,12 +8,3 @@ lib/libglog.so
lib/libglog.so.0
lib/libglog.so.0.0.0
libdata/pkgconfig/libglog.pc
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
-%%PORTDOCS%%%%DOCSDIR%%/INSTALL
-%%PORTDOCS%%%%DOCSDIR%%/NEWS
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/README.windows
-%%PORTDOCS%%%%DOCSDIR%%/designstyle.css
-%%PORTDOCS%%%%DOCSDIR%%/glog.html