openbsd-ports/devel/cmake/cmake.port.mk
espie e640d83dda allow cmake to proceed in color unless you `explicitly' ask it otherwise
(setting BATCH, for instance).

Synch FindQt4 with some of qt 4.3.0 stuff. Need to be fully synched with
qt 4.3.0 anyways...
2007-06-09 09:09:44 +00:00

29 lines
664 B
Makefile

# $OpenBSD: cmake.port.mk,v 1.3 2007/06/09 09:09:44 espie Exp $
BUILD_DEPENDS+= ::devel/cmake
.for _n _v in ${SHARED_LIBS}
CONFIGURE_ENV+=LIB${_n}_VERSION=${_v}
MAKE_ENV+=LIB${_n}_VERSION=${_v}
.endfor
.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
.if defined(BATCH)
MODCMAKE_WANTCOLOR ?= No
.else
MODCMAKE_WANTCOLOR ?= Yes
.endif
.if ${MODCMAKE_WANTCOLOR:L} == "yes" && defined(TERM)
MAKE_ENV += TERM=${TERM}
.endif