Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107220428
D21396.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
866 B
Referenced Files
None
Subscribers
None
D21396.diff
View Options
Index: head/graphics/caffe/Makefile
===================================================================
--- head/graphics/caffe/Makefile
+++ head/graphics/caffe/Makefile
@@ -54,12 +54,20 @@
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 @@
@${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/* ${STAGEDIR}/${PREFIX}/lib/*.so.* \
${STAGEDIR}/${PYTHON_SITELIBDIR}/${PORTNAME}/*.so
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 4:02 PM (17 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15763549
Default Alt Text
D21396.diff (866 B)
Attached To
Mode
D21396: graphics/caffe: Respect CXX
Attached
Detach File
Event Timeline
Log In to Comment