1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/Mk/Uses/scons.mk
Jan Beich 043e020d24 Pass CFLAGS and LDFLAGS by default to scons build, again
This fixes r355494 regression.

PR:		193434
Differential Revision:	https://reviews.freebsd.org/D1602
Reviewed by:	bapt
Approved by:	bapt (mentor)
Approved by:	portmgr (bapt)
2015-01-22 18:52:26 +00:00

33 lines
794 B
Makefile

# $FreeBSD$
#
# Provide support to use the scons
#
# Feature: scons
# Usage: USES=scons
#
# MAINTAINER: python@FreeBSD.org
.if !defined(_INCLUDE_USES_SCONS_MK)
_INCLUDE_USES_SCONS_MK= yes
.if !empty(scons_ARGS)
IGNORE= Incorrect 'USES+= scons:${scons_ARGS}' scons takes no arguments
.endif
MAKEFILE= #
MAKE_FLAGS= #
ALL_TARGET= #
CCFLAGS?= ${CFLAGS}
LINKFLAGS?= ${LDFLAGS}
LIBPATH?= ${LOCALBASE}/lib
CPPPATH?= ${LOCALBASE}/include
SCONS= ${LOCALBASE}/bin/scons
BUILD_DEPENDS+= ${SCONS}:${PORTSDIR}/devel/scons
MAKE_CMD?= ${SCONS}
MAKE_ARGS+= CCFLAGS="${CCFLAGS}" CXXFLAGS="${CXXFLAGS}" \
LINKFLAGS="${LINKFLAGS}" PKGCONFIGDIR="${PKGCONFIGDIR}" \
CPPPATH="${CPPPATH}" LIBPATH="${LIBPATH}" PREFIX="${PREFIX}" \
CC="${CC}" CXX="${CXX}" ${DESTDIRNAME:tl}=${STAGEDIR}
.endif