mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-05 11:35:01 +00:00
graphics/caffe: Respect CXX
Don't use clang, unconditionally, respect CXX to fix build on GCC architectures. PR: 238884 Approved by: eric@camachat.org (maintainer timeout), linimon (mentor) Differential Revision: https://reviews.freebsd.org/D21396
This commit is contained in:
parent
e27ecb7d59
commit
0d2e60d7e8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=510093
@ -54,12 +54,20 @@ PLIST_SUB= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} DATADIR=${DATADIR}
|
||||
GH_ACCOUNT= BVLC
|
||||
USE_GITHUB= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${CHOSEN_COMPILER_TYPE} == clang
|
||||
TRUE_CXX= clang++
|
||||
.else
|
||||
TRUE_CXX= g++${GCC_DEFAULT}
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
@${CP} -v ${.CURDIR}/files/Makefile.config ${WRKSRC}/
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} \
|
||||
-e "s|%%CXX%%|clang++|g" \
|
||||
-e "s|%%CXX%%|${TRUE_CXX}|g" \
|
||||
-e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
|
||||
-e "s|%%DATADIR%%|${DATADIR}|g" \
|
||||
-e "s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|g" \
|
||||
@ -75,4 +83,4 @@ post-install:
|
||||
@${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/* ${STAGEDIR}/${PREFIX}/lib/*.so.* \
|
||||
${STAGEDIR}/${PYTHON_SITELIBDIR}/${PORTNAME}/*.so
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
x
Reference in New Issue
Block a user