2012-07-10 14:55:58 -04:00
|
|
|
# $OpenBSD: cmake.port.mk,v 1.14 2012/07/10 18:55:58 dcoppa 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} \
|
2012-07-10 11:20:24 -04:00
|
|
|
MODLUA_VERSION=${MODLUA_VERSION} \
|
2012-07-10 14:55:58 -04:00
|
|
|
MODLUA_BIN=${MODLUA_BIN} \
|
|
|
|
MODLUA_INCL_DIR=${MODLUA_INCL_DIR} \
|
2010-05-28 16:21:48 -04:00
|
|
|
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}" \
|
2011-11-01 07:10:33 -04:00
|
|
|
${CONFIGURE_ENV} ${LOCALBASE}/bin/cmake \
|
|
|
|
-DCMAKE_SKIP_INSTALL_ALL_DEPENDENCY:Bool=True \
|
|
|
|
${CONFIGURE_ARGS} ${WRKSRC}
|
2006-07-20 05:23:13 -04:00
|
|
|
|
2012-03-29 09:38:12 -04:00
|
|
|
SEPARATE_BUILD ?= Yes
|
2011-11-08 04:30:52 -05:00
|
|
|
|
|
|
|
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
|