blob: 8f0c3c61db0ac952e86ac687009df14a1b8cc06f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# $FreeBSD$
#
# handle enforcing localbase in path
#
# Feature: localbase
# Usage: USES=localbase
# Valid ARGS: none
#
# MAINTAINER: portmgr@FreeBSD.org
.if !defined(_INCLUDE_USES_LOCALBASE_MK)
_INCLUDE_USES_LOCALBASE_MK= yes
CPPFLAGS+= -isystem ${LOCALBASE}/include
CFLAGS+= -isystem ${LOCALBASE}/include
CXXFLAGS+= -isystem ${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
# Use CONFIGURE_ENV instead of CMAKE_ARGS because devel/cmake itself also needs
# this, and CMAKE_ARGS is not used when bootstrapping CMake.
CONFIGURE_ENV+= CMAKE_PREFIX_PATH="${LOCALBASE}"
.endif
|