2010-11-26 02:18:59 -05:00
|
|
|
# $OpenBSD: cmake.port.mk,v 1.9 2010/11/26 07:18:59 espie Exp $
|
2006-07-20 05:23:13 -04:00
|
|
|
|
2010-11-26 02:18:59 -05:00
|
|
|
BUILD_DEPENDS+= devel/cmake>=2.8.0
|
2006-07-20 05:23:13 -04:00
|
|
|
|
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
|
|
|
|
|
2010-05-28 16:21:48 -04:00
|
|
|
CONFIGURE_ENV += MODJAVA_VER=${MODJAVA_VER} \
|
|
|
|
MODPY_VERSION=${MODPY_VERSION} \
|
|
|
|
MODPY_BIN=${MODPY_BIN} \
|
|
|
|
MODPY_INCDIR=${MODPY_INCDIR} \
|
|
|
|
MODPY_LIBDIR=${MODPY_LIBDIR} \
|
|
|
|
MODTCL_VERSION=${MODTCL_VERSION} \
|
|
|
|
MODTK_VERSION=${MODTK_VERSION} \
|
|
|
|
MODTCL_INCDIR=${MODTCL_INCDIR} \
|
|
|
|
MODTK_INCDIR=${MODTK_INCDIR} \
|
|
|
|
MODTCL_LIBDIR=${MODTCL_LIBDIR} \
|
|
|
|
MODTK_LIBDIR=${MODTK_LIBDIR} \
|
|
|
|
MODTCL_LIB=${MODTCL_LIB} \
|
|
|
|
MODTK_LIB=${MODTK_LIB}
|
|
|
|
|
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
|
|
|
MODCMAKE_WANTCOLOR ?= No
|
2009-06-04 17:07:23 -04:00
|
|
|
MODCMAKE_VERBOSE ?= Yes
|
2007-06-09 05:09:44 -04:00
|
|
|
|
|
|
|
.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
|