2013-10-03 06:25:13 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Provide support to use the scons
|
|
|
|
#
|
|
|
|
# Feature: scons
|
|
|
|
# Usage: USES=scons
|
|
|
|
#
|
2014-03-15 10:31:54 +00:00
|
|
|
# MAINTAINER: python@FreeBSD.org
|
2013-10-03 06:25:13 +00:00
|
|
|
|
|
|
|
.if !defined(_INCLUDE_USES_SCONS_MK)
|
|
|
|
_INCLUDE_USES_SCONS_MK= yes
|
|
|
|
|
|
|
|
.if defined(scons_ARGS)
|
|
|
|
IGNORE= Incorrect 'USES+= scons:${scons_ARGS}' scons takes no arguments
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MAKEFILE= #
|
|
|
|
MAKE_FLAGS= #
|
|
|
|
ALL_TARGET= #
|
|
|
|
LIBPATH?= ${LOCALBASE}/lib
|
|
|
|
CPPPATH?= ${LOCALBASE}/include
|
|
|
|
SCONS= ${LOCALBASE}/bin/scons
|
|
|
|
BUILD_DEPENDS+= ${SCONS}:${PORTSDIR}/devel/scons
|
|
|
|
MAKE_CMD?= ${SCONS}
|
2014-05-27 12:13:05 +00:00
|
|
|
MAKE_ARGS+= CCFLAGS="${CCFLAGS}" CXXFLAGS="${CXXFLAGS}" \
|
|
|
|
LINKFLAGS="${LINKFLAGS}" PKGCONFIGDIR="${PKGCONFIGDIR}" \
|
|
|
|
CPPPATH="${CPPPATH}" LIBPATH="${LIBPATH}" PREFIX="${PREFIX}" \
|
|
|
|
CC="${CC}" CXX="${CXX}"
|
|
|
|
|
2013-10-03 06:41:54 +00:00
|
|
|
.if !defined(NO_STAGE)
|
2014-05-05 09:45:36 +00:00
|
|
|
MAKE_ARGS+= ${DESTDIRNAME:tl}=${STAGEDIR}
|
2013-10-03 06:41:54 +00:00
|
|
|
.endif
|
2013-10-03 06:25:13 +00:00
|
|
|
|
|
|
|
.endif
|