mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
bd9b99277f
PR: 256170 Differential Revision: https://reviews.freebsd.org/D30472
43 lines
896 B
Makefile
43 lines
896 B
Makefile
# Provide support to use the scons
|
|
#
|
|
# Feature: scons
|
|
# Usage: USES=scons
|
|
# Valid ARGS: none
|
|
#
|
|
# MAINTAINER: python@FreeBSD.org
|
|
|
|
.if !defined(_INCLUDE_USES_SCONS_MK)
|
|
_INCLUDE_USES_SCONS_MK= yes
|
|
|
|
. if !empty(scons_ARGS)
|
|
IGNORE+= USES=scons takes no arguments
|
|
. endif
|
|
|
|
_SCONS_PYTHON_VER= ${PYTHON3_DEFAULT}
|
|
|
|
_SCONS_PYTHON_FLAVOR= py${_SCONS_PYTHON_VER:S|.||}
|
|
|
|
SCONS= ${LOCALBASE}/bin/scons-${_SCONS_PYTHON_VER}
|
|
|
|
BUILD_DEPENDS+= ${SCONS}:devel/scons@${_SCONS_PYTHON_FLAVOR}
|
|
|
|
ALL_TARGET?= #
|
|
CCFLAGS?= ${CFLAGS}
|
|
CPPPATH?= ${LOCALBASE}/include
|
|
LIBPATH?= ${LOCALBASE}/lib
|
|
LINKFLAGS?= ${LDFLAGS}
|
|
MAKE_ARGS+= CC="${CC}" \
|
|
CCFLAGS="${CCFLAGS}" \
|
|
CPPPATH="${CPPPATH}" \
|
|
CXX="${CXX}" \
|
|
CXXFLAGS="${CXXFLAGS}" \
|
|
LIBPATH="${LIBPATH}" \
|
|
LINKFLAGS="${LINKFLAGS}" \
|
|
PKGCONFIGDIR="${PKGCONFIGDIR}" \
|
|
PREFIX="${PREFIX}" \
|
|
destdir=${STAGEDIR}
|
|
MAKE_CMD= ${SCONS}
|
|
MAKE_FLAGS= #
|
|
MAKEFILE= #
|
|
.endif
|