2011-07-05 11:17:26 -04:00
|
|
|
# $OpenBSD: scons.port.mk,v 1.5 2011/07/05 15:17:26 sthen Exp $
|
2007-12-08 15:11:02 -05:00
|
|
|
|
2010-11-15 14:45:56 -05:00
|
|
|
BUILD_DEPENDS+= devel/scons
|
2007-12-08 15:11:02 -05:00
|
|
|
|
|
|
|
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" \
|
2007-12-12 05:39:20 -05:00
|
|
|
PREFIX="${PREFIX}" \
|
|
|
|
debug=0
|
2007-12-08 15:11:02 -05:00
|
|
|
|
|
|
|
MODSCONS_FLAGS?=
|
|
|
|
ALL_TARGET?=
|
2011-07-05 11:17:26 -04:00
|
|
|
NO_CCACHE?=Yes
|
2007-12-08 15:11:02 -05:00
|
|
|
|
|
|
|
.if !target(do-build)
|
|
|
|
do-build:
|
2007-12-12 09:46:41 -05:00
|
|
|
@${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} -C ${WRKSRC} \
|
2007-12-08 15:11:02 -05:00
|
|
|
${MODSCONS_ENV} ${MODSCONS_FLAGS} ${ALL_TARGET}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !target(do-install)
|
|
|
|
do-install:
|
2007-12-12 09:46:41 -05:00
|
|
|
@${SETENV} ${MAKE_ENV} ${MODSCONS_BIN} -C ${WRKSRC} \
|
2007-12-12 05:39:20 -05:00
|
|
|
${MODSCONS_ENV} ${MODSCONS_FLAGS} ${INSTALL_TARGET} \
|
|
|
|
DESTDIR=${WRKINST}
|
2007-12-08 15:11:02 -05:00
|
|
|
.endif
|