Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/mitsuba/Makefile
Show All 35 Lines | |||||
MAKE_JOBS_UNSAFE= yes | MAKE_JOBS_UNSAFE= yes | ||||
HG_REVISION= 11ee1d7236f3 | HG_REVISION= 11ee1d7236f3 | ||||
FETCH_ARGS= -o ${DISTNAME}${EXTRACT_SUFX} | FETCH_ARGS= -o ${DISTNAME}${EXTRACT_SUFX} | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
# Unfortunately, the code is not GCC 4.2.1 compatible (due to bugs in GCC | # Unfortunately, the code is not GCC 4.2.1 compatible (due to bugs in GCC | ||||
# itself). Try to use system compiler if it is Clang, otherwise fallback | # itself). Use system compiler if it is Clang. | ||||
# to modern GCC (on older versions of FreeBSD). | .if ${OSVERSION} < 1000024 | ||||
.if ${OSVERSION} < 900014 | |||||
USE_GCC= yes | |||||
.elif ${OSVERSION} < 1000024 | |||||
CC= clang | CC= clang | ||||
CXX= clang++ | CXX= clang++ | ||||
CPP= clang-cpp | CPP= clang-cpp | ||||
.endif | .endif | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e '/CMAKE_SYSTEM_NAME/s,Linux,${OPSYS},' \ | @${REINPLACE_CMD} -e '/CMAKE_SYSTEM_NAME/s,Linux,${OPSYS},' \ | ||||
${WRKSRC}/data/cmake/MitsubaExternal.cmake \ | ${WRKSRC}/data/cmake/MitsubaExternal.cmake \ | ||||
Show All 10 Lines |