2009-06-04 17:07:23 -04:00
|
|
|
# $OpenBSD: cmake.port.mk,v 1.4 2009/06/04 21:07:23 ajacoutot Exp $
|
2006-07-20 05:23:13 -04:00
|
|
|
|
|
|
|
BUILD_DEPENDS+= ::devel/cmake
|
|
|
|
|
2007-03-26 17:27:44 -04:00
|
|
|
.for _n _v in ${SHARED_LIBS}
|
|
|
|
CONFIGURE_ENV+=LIB${_n}_VERSION=${_v}
|
|
|
|
MAKE_ENV+=LIB${_n}_VERSION=${_v}
|
|
|
|
.endfor
|
|
|
|
|
2006-07-20 05:23:13 -04:00
|
|
|
.if empty(CONFIGURE_STYLE)
|
|
|
|
CONFIGURE_STYLE= cmake
|
|
|
|
.endif
|
|
|
|
MODCMAKE_configure= cd ${WRKBUILD} && ${_SYSTRACE_CMD} ${SETENV} \
|
|
|
|
CC="${CC}" CFLAGS="${CFLAGS}" \
|
|
|
|
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
|
|
|
${CONFIGURE_ENV} ${LOCALBASE}/bin/cmake ${CONFIGURE_ARGS} ${WRKSRC}
|
|
|
|
|
|
|
|
REGRESS_TARGET?= test
|
2007-03-26 17:27:44 -04:00
|
|
|
|
2007-06-09 05:09:44 -04:00
|
|
|
.if defined(BATCH)
|
|
|
|
MODCMAKE_WANTCOLOR ?= No
|
2009-06-04 17:07:23 -04:00
|
|
|
MODCMAKE_VERBOSE ?= No
|
2007-06-09 05:09:44 -04:00
|
|
|
.else
|
|
|
|
MODCMAKE_WANTCOLOR ?= Yes
|
2009-06-04 17:07:23 -04:00
|
|
|
MODCMAKE_VERBOSE ?= Yes
|
2007-06-09 05:09:44 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MODCMAKE_WANTCOLOR:L} == "yes" && defined(TERM)
|
|
|
|
MAKE_ENV += TERM=${TERM}
|
|
|
|
.endif
|
2009-06-04 17:07:23 -04:00
|
|
|
|
|
|
|
.if ${MODCMAKE_VERBOSE:L} == "yes"
|
|
|
|
MAKE_ENV += VERBOSE=1
|
|
|
|
.endif
|