Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Dec 2013 00:04:50 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r336599 - head/devel/loki
Message-ID:  <201312160004.rBG04opD054444@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Mon Dec 16 00:04:50 2013
New Revision: 336599
URL: http://svnweb.freebsd.org/changeset/ports/336599

Log:
  Support stage
  Fix build on head
  Respect CXXFLAGS

Modified:
  head/devel/loki/Makefile
  head/devel/loki/pkg-descr

Modified: head/devel/loki/Makefile
==============================================================================
--- head/devel/loki/Makefile	Sun Dec 15 23:46:53 2013	(r336598)
+++ head/devel/loki/Makefile	Mon Dec 16 00:04:50 2013	(r336599)
@@ -7,24 +7,29 @@ CATEGORIES=	devel
 MASTER_SITES=	SF/${PORTNAME}-lib/Loki/Loki%20${PORTVERSION}
 
 MAINTAINER=	snnn119@gmail.com
-COMMENT=	A C++ library of common design patterns
+COMMENT=	C++ library of common design patterns
 
-USE_DOS2UNIX=	yes
-USE_GMAKE=	yes
+USES=		gmake dos2unix
 USE_LDCONFIG=	yes
 
+CXXFLAGS+=	-Wno-return-type
+
 DOCS=		README CHANGES doc/flex/flex_string.html \
 		doc/yasli/Notes.txt \
 		doc/yasli/yasli.html
 
-NO_STAGE=	yes
+post-patch:
+	@${REINPLACE_CMD} 's/bad_function_call/Loki::bad_function_call/g' \
+		${WRKSRC}/test/Function/FunctionTest.cpp
+	@${REINPLACE_CMD} -e '/CXXWARNFLAGS/s/$$/ ${CXXFLAGS}/g' \
+		-e 's/\$${PREFIX}/$${DESTDIR}$${PREFIX}/g' \
+		${WRKSRC}/Makefile.common
+
 post-install:
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for i in ${DOCS}
-	${INSTALL_MAN} ${WRKSRC}/${i} ${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
 
 .include <bsd.port.pre.mk>
 

Modified: head/devel/loki/pkg-descr
==============================================================================
--- head/devel/loki/pkg-descr	Sun Dec 15 23:46:53 2013	(r336598)
+++ head/devel/loki/pkg-descr	Mon Dec 16 00:04:50 2013	(r336599)
@@ -1,5 +1,4 @@
 A C++ library of designs, containing flexible implementations of
 common design patterns and idioms.
 
-
 WWW: http://sourceforge.net/projects/loki-lib/



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