ports/184240: math/tvmet: Fix build with clang

KATO Tsuguru tkato432 at yahoo.com
Sun Nov 24 18:10:07 UTC 2013


>Number:         184240
>Category:       ports
>Synopsis:       math/tvmet: Fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 24 18:10:06 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p4 i386
>Organization:
>Environment:
>Description:
- Fix build with clang

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/math/tvmet/Makefile math/tvmet/Makefile
--- /usr/ports/math/tvmet/Makefile	2013-11-06 22:04:31.000000000 +0900
+++ math/tvmet/Makefile	2013-11-25 00:00:00.000000000 +0900
@@ -9,40 +9,43 @@
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Tiny Vector and Matrix template library
 
+LICENSE=	LGPL21 # (or later)
+
+OPTIONS_DEFINE=	CPPUNIT DEBUG DOCS EXAMPLES
+
 USE_BZIP2=	yes
-USE_GMAKE=	yes
+USES=		gmake
 USE_AUTOTOOLS=	libtool
-MAKE_ARGS=	CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
+CONFIGURE_ARGS=	--with-cxx=${CXX}
 
-MAN1=		tvmet-config.1
+.include <bsd.port.options.mk>
 
-.if defined(WITH_CPPUNIT)
-LIB_DEPENDS+=	cppunit-1.10.2:${PORTSDIR}/devel/cppunit
+.if ${PORT_OPTIONS:MCPPUNIT}
+LIB_DEPENDS+=	libcppunit-1.12.so:${PORTSDIR}/devel/cppunit
 CONFIGURE_ARGS+=	--with-cppunit-prefix=${LOCALBASE}
 .else
 CONFIGURE_ENV+=	ac_cv_path_CPPUNIT_CONFIG=no
 .endif
 
-.if defined(WITH_DEBUG)
+.if ${PORT_OPTIONS:MDEBUG}
 CXXFLAGS+=	-DTVMET_DEBUG
 .else
 CXXFLAGS+=	-DTVMET_OPTIMIZE
 .endif
 
-NO_STAGE=	yes
 post-patch:
 	@${REINPLACE_CMD} -e 's|= -O |= |g' ${WRKSRC}/doc/Makefile.in
 
 post-install:
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for ext in dox cc css h png
-	${INSTALL_DATA} ${WRKSRC}/doc/*.${ext} ${DOCSDIR}
+	(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.${ext} \
+		${STAGEDIR}${DOCSDIR})
 .endfor
-	@${MKDIR} ${EXAMPLESDIR}
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 .for ext in cc
-	${INSTALL_DATA} ${WRKSRC}/examples/*.${ext} ${EXAMPLESDIR}
+	(cd ${WRKSRC}/examples && ${INSTALL_DATA} *.${ext} \
+		${STAGEDIR}${EXAMPLESDIR})
 .endfor
-.endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/math/tvmet/pkg-plist math/tvmet/pkg-plist
--- /usr/ports/math/tvmet/pkg-plist	2013-11-06 22:04:31.000000000 +0900
+++ math/tvmet/pkg-plist	2013-11-25 00:00:00.000000000 +0900
@@ -1,5 +1,6 @@
 @comment $FreeBSD: head/math/tvmet/pkg-plist 300896 2012-07-14 13:54:48Z beat $
 bin/tvmet-config
+man/man1/tvmet-config.1.gz
 include/tvmet/AliasProxy.h
 include/tvmet/BinaryFunctionals.h
 include/tvmet/CommaInitializer.h
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list