aboutsummaryrefslogtreecommitdiff
path: root/graphics/caffe/Makefile
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2019-08-28 19:23:10 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2019-08-28 19:23:10 +0000
commit0d2e60d7e807fff5c6eea3ecf304528e0099f7c4 (patch)
tree4c57af33ef43a7e21632a35af0d0ca07d58d386b /graphics/caffe/Makefile
parente27ecb7d59ab231927a3eb4f4d2d508ae5e00d6c (diff)
downloadports-0d2e60d7e807fff5c6eea3ecf304528e0099f7c4.tar.gz
ports-0d2e60d7e807fff5c6eea3ecf304528e0099f7c4.zip
Notes
Diffstat (limited to 'graphics/caffe/Makefile')
-rw-r--r--graphics/caffe/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/graphics/caffe/Makefile b/graphics/caffe/Makefile
index 451a7524e917..01681747a3e8 100644
--- a/graphics/caffe/Makefile
+++ b/graphics/caffe/Makefile
@@ -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>