f5cca2b075
(the waf version actually works, contrary to my former patch, as CONFIGURE_STYLE must be set before modules)
39 lines
865 B
Makefile
39 lines
865 B
Makefile
# $OpenBSD: scons.port.mk,v 1.6 2013/07/02 08:36:16 espie Exp $
|
|
|
|
BUILD_DEPENDS+= devel/scons
|
|
|
|
MODSCONS_BIN= ${LOCALBASE}/bin/scons
|
|
|
|
MODSCONS_ENV?= CC="${CC}" \
|
|
CXX="${CXX}" \
|
|
CCFLAGS="${CFLAGS}" \
|
|
CXXFLAGS="${CXXFLAGS}" \
|
|
LINKFLAGS="${LDFLAGS}" \
|
|
CPPPATH="${LOCALBASE}/include ${X11BASE}/include" \
|
|
LIBPATH="${LOCALBASE}/lib ${X11BASE}/lib" \
|
|
PREFIX="${PREFIX}" \
|
|
debug=0
|
|
|
|
MODSCONS_FLAGS?=
|
|
ALL_TARGET?=
|
|
NO_CCACHE?=Yes
|
|
|
|
MODSCONS_BUILD_TARGET = \
|
|
${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} -C ${WRKSRC} \
|
|
${MODSCONS_ENV} ${MODSCONS_FLAGS} ${ALL_TARGET}
|
|
|
|
MODSCONS_INSTALL_TARGET = \
|
|
${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} -C ${WRKSRC} \
|
|
${MODSCONS_ENV} ${MODSCONS_FLAGS} ${INSTALL_TARGET} \
|
|
DESTDIR=${WRKINST}
|
|
|
|
.if !target(do-build)
|
|
do-build:
|
|
@${MODSCONS_BUILD_TARGET}
|
|
.endif
|
|
|
|
.if !target(do-install)
|
|
do-install:
|
|
@${MODSCONS_INSTALL_TARGET}
|
|
.endif
|