aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.scons.mk
blob: ec31d9c4927269a8a8b2c7fc4a104c2ee67bac44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#-*- mode: Makefile; tab-width: 4; -*-
# ex:ts=4
#
# $FreeBSD$
#
# bsd.scons.mk - Python-based SCons build system interface.
# Author: Alexander Botero-Lowry <alexbl@FreeBSD.org>
#
# Please view me with 4 column tabs!

# Please make sure all changes to this file are passed through the maintainer.
SCONS_MAINTAINER=   alexbl@FreeBSD.org

#
# SCONS_BIN is the location where the scons port installs the scons
# executable.
#
# SCONS_PORT is where the scons port is located in the ports tree.
#
SCONS_BIN=  ${LOCALBASE}/bin/scons
SCONS_PORT= ${PORTSDIR}/devel/scons

#
# CCFLAGS is the scons equivalent of CFLAGS. So we should bring in our
# FreeBSD CFLAGS.
#
# LINKFLAGS is equivalent to LDFLAGS in make speak, so we bring in the
# FreeBSD default LDFLAGS.
#
# Some scons projects may honor PKGCONFIGDIR, which tells them where to
# look for, and install, pkgconfig files.
#
# LIBPATH is the search path for libraries. Bring in some safe defaults.
#
# CPPPATH is the search path for includes, Again, bring in some safe defaults.
#
CCFLAGS?=   ${CFLAGS}
LINKFLAGS?= ${LDFLAGS}
PKGCONFIGDIR?=  ${LOCALBASE}/libdata/pkgconfig
LIBPATH?=   ${LOCALBASE}/lib ${X11BASE}/lib
CPPPATH?=   ${LOCALBASE}/include ${X11BASE}/include

#
# SCONS_ENV is where we pass all the stuff that should be the
# same for any scons port to scons. Things like CCFLAGS, and LINKFLAGS
# go here.
#
# SCONS_ARG is where you pass port specific scons flags to the scons
# enviornment.
#
# SCONS_BUILDENV is where you pass variables you want to be in the
# System Enviornment instead of the SCons Enviornment.
#
# SCONS_TARGET is the same as MAKE_TARGET it is passed as the last
# argument to scons.
#
SCONS_ENV?= CCFLAGS="${CCFLAGS}" CXXFLAGS="${CXXFLAGS}" \
        LINKFLAGS="${LINKFLAGS}" PKGCONFIGDIR="${PKGCONFIGDIR}"  \
        CPPPATH="${CPPPATH}" LIBPATH="${LIBPATH}" PREFIX="${PREFIX}" \
        CC="${CC}" CXX="${CXX}"
SCONS_ARGS?=
SCONS_BUILDENV?=
SCONS_TARGET?=

#
# SCONS_INSTALL_TARGET is the default target to be used when
# installing a port using scons.
#
SCONS_INSTALL_TARGET?=  ${INSTALL_TARGET}

#
# Make sure we depend on scons
#
BUILD_DEPENDS+= ${SCONS_BIN}:${SCONS_PORT}

.if !target(do-build)
do-build:
    @cd ${BUILD_WRKSRC} && \
    ${SETENV} ${SCONS_BUILDENV} ${SCONS_BIN} ${SCONS_ENV} ${SCONS_ARGS} \
    ${SCONS_TARGET}
.endif

.if !target(do-install)
do-install:
    @cd ${INSTALL_WRKSRC} && ${SETENV} ${SCONS_BUILDENV} ${SCONS_BIN} \
    ${SCONS_ENV} ${SCONS_ARGS} ${SCONS_INSTALL_TARGET}
.endif

t/?id=44a52ecffa077c5534ce360185a37dfd28cb8e64'>Updated Macedonian TranslationIvan Stojmirov2005-08-281-7/+7 * Updated Thai translation.Theppitak Karoonboonyanan2005-08-282-1014/+1063 * Updated Macedonian TranslationIvan Stojmirov2005-08-281-1533/+1753 * Updated Romanian translationMugurel Tudor2005-08-282-1189/+731 * Translation updated by Tino Meinen.Vincent van Adrighem2005-08-272-833/+900 * Updated Greek TranslationKostas Papadimas2005-08-272-15/+13 * vi.po: Updated Vietnamese translation.Clytie Siddall2005-08-272-7/+11 * Updated Indonesian translation.Mohammad DAMT2005-08-272-127/+121 * Updated Romanian translation.Mugurel Tudor2005-08-272-5162/+3373 * Updated pt_BR translationRaphael Higino2005-08-272-719/+621 * Updated Albanian translation.Laurent Dhima2005-08-272-590/+361 * Updated Traditional chinese translation.Chao-Hsiung Liao2005-08-262-86/+88 * Fixes the 'Label disappears' problem in Tasks, Calendar and Contacts.Shakti Sen2005-08-262-3/+9 * Update references to bugzilla and related hyperlinks.Harish Krishnaswamy2005-08-262-6/+11 * Update documentation on behalf of Mark MoulderHarish Krishnaswamy2005-08-262-479/+961 * Proper ordering of column and field names in ETableSpecification.Sushma Rai2005-08-262-38/+45 * ** See bug #314440.Not Zed2005-08-263-8/+34 * Updated Russian translationLeonid Kanter2005-08-252-596/+529 * Need to set the account's linestatus to online as there is no way to getArunprakash2005-08-253-6/+25 * Added support for Unsubscribe to other user's Inbox.Shakti Sen2005-08-252-2/+135 * Enable building of exchange plugins by default.Sarfraaz Ahmed2005-08-252-9/+21 * Updated Catalan translation.Jordi Mallach2005-08-252-4/+8 * Fixes 313705Chenthill Palanisamy2005-08-253-0/+14 * add Punjabi (pa) by amanpreet Singh Brar AlamwaliaAmanpreet Singh Alam2005-08-251-1735/+2798 * vi.po: Updated Vietnamese translation.Clytie Siddall2005-08-252-689/+691 * Fixes #314352. if accessibility is enabled, we enable horizontal cusorLi Yuan2005-08-252-2/+13 * Updated Indonesian translation.Mohammad DAMT2005-08-252-443/+443 * Revert patchShreyas Srinivasan2005-08-242-26/+4 * Updated Traditional Chinese translation.Chao-Hsiung Liao2005-08-242-467/+474 * Updated Albanian translation.Laurent Dhima2005-08-242-925/+865 * Getting list of mail-ids instead of a single mail-id. Added support forShakti Sen2005-08-244-47/+96 * Updated Simplified Chinese translationFunda Wang2005-08-241-694/+693 * Removed the warning that are generated when compiled with GCC 4.Praveen Kumar2005-08-249-30/+53 * Translation updated by Ivar Smolin.Priit Laes2005-08-242-344/+356 * Dont call update. Just set the width on the bar.Srinivasa Ragavan2005-08-24