Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Mar 2014 07:24:16 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r346599 - head/databases/kyototycoon
Message-ID:  <201403010724.s217OGbC034050@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Mar  1 07:24:16 2014
New Revision: 346599
URL: http://svnweb.freebsd.org/changeset/ports/346599
QAT: https://qat.redports.org/buildarchive/r346599/

Log:
  - Use BINMODE and DOCMODE
  - Simplify Makefile

Modified:
  head/databases/kyototycoon/Makefile

Modified: head/databases/kyototycoon/Makefile
==============================================================================
--- head/databases/kyototycoon/Makefile	Sat Mar  1 07:24:12 2014	(r346598)
+++ head/databases/kyototycoon/Makefile	Sat Mar  1 07:24:16 2014	(r346599)
@@ -25,13 +25,8 @@ REINPLACE_ARGS=	-i ''
 USE_LDCONFIG=	yes
 USES=		gmake pkgconfig
 
-.include <bsd.port.pre.mk>
-
 post-patch:
 	@${REINPLACE_CMD} -e 's|-lpthread|-pthread|g; s|-lstdc++ ||g' ${WRKSRC}/configure ${WRKSRC}/doc/spex.html ${WRKSRC}/example/Makefile
-.if !${PORT_OPTIONS:MDOCS}
-	@${REINPLACE_CMD} -e '/DOCDIR/d' ${WRKSRC}/Makefile.in
-.endif
 
 post-build:
 	@cd ${WRKSRC}/ && ${STRIP_CMD} ktplugdbvoid.so ktplugservmemc.so \
@@ -39,12 +34,10 @@ post-build:
 		ktutilmgr ktutilserv ktutiltest
 
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	${FIND} ${STAGEDIR}${DOCSDIR}/ -type d -exec ${CHMOD} 755 '{}' \;
-	${FIND} ${STAGEDIR}${DOCSDIR}/ -type f -exec ${CHMOD} 444 '{}' \;
-.endif
+	${FIND} ${STAGEDIR}${DOCSDIR}/ -type d -exec ${CHMOD} ${BINMODE} '{}' \;
+	${FIND} ${STAGEDIR}${DOCSDIR}/ -type f -exec ${CHMOD} ${DOCMODE} '{}' \;
 
 regression-test test: build
 	cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE} check
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403010724.s217OGbC034050>