mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
31 lines
650 B
Makefile
31 lines
650 B
Makefile
|
# $FreeBSD$
|
||
|
#
|
||
|
# Provide support to use the scons
|
||
|
#
|
||
|
# MAINTAINER: python@FreeBSD.org
|
||
|
#
|
||
|
# Feature: scons
|
||
|
# Usage: USES=scons
|
||
|
#
|
||
|
|
||
|
.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}
|
||
|
MAKE_ENV+= PKGCONFIGDIR="${PKGCONFIGDIR}" \
|
||
|
CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" \
|
||
|
LIBPATH="${LIBPATH}" CPPPATH="${CPPPATH}"
|
||
|
|
||
|
.endif
|