e31200b87c
and into their own directories. Also do some cleanups with build/_build and pkginstall -- we get rid of _build and simply run pkginstall as part of the "build" target. Introduce a new mechanism to handle varying directory depths under ${WRKSRC} in which we find files to override, e.g. configure, config.*, libtool, etc. OVERRIDE_DIRDEPTH is a package-settable variable that specifies how far under ${WRKSRC} the various targets should look, and it defaults to "2". We preserve the meaning of the various *_OVERRIDE variables, so if they are defined, then their values supersede the OVERRIDE_DIRDEPTH mechanism. devel/tla will need to specially set OVERRIDE_DIRDEPTH to 3 (see log for revision 1.1857 for bsd.pkg.mk -- to be done in a separate commit.
27 lines
941 B
Makefile
27 lines
941 B
Makefile
# $NetBSD: bsd.configure-vars.mk,v 1.1 2006/07/05 06:09:15 jlam Exp $
|
|
#
|
|
# CONFIGURE_DIRS is the list of directories in which to run the
|
|
# configure process. If the directories are relative paths,
|
|
# then they are assumed to be relative to ${WRKSRC}.
|
|
#
|
|
# SCRIPTS_ENV is the shell environment passed to scripts invoked
|
|
# by pkgsrc, including xmkmf (used by the configure process).
|
|
#
|
|
CONFIGURE_DIRS?= ${WRKSRC}
|
|
SCRIPTS_ENV?= # empty
|
|
|
|
SCRIPTS_ENV+= ${ALL_ENV}
|
|
SCRIPTS_ENV+= _PKGSRCDIR=${_PKGSRCDIR}
|
|
SCRIPTS_ENV+= ${BATCH:DBATCH=yes}
|
|
SCRIPTS_ENV+= CURDIR=${.CURDIR}
|
|
SCRIPTS_ENV+= DEPENDS=${DEPENDS:Q}
|
|
SCRIPTS_ENV+= DISTDIR=${DISTDIR}
|
|
SCRIPTS_ENV+= FILESDIR=${FILESDIR}
|
|
SCRIPTS_ENV+= LOCALBASE=${LOCALBASE}
|
|
SCRIPTS_ENV+= PATCHDIR=${PATCHDIR}
|
|
SCRIPTS_ENV+= PKGSRCDIR=${PKGSRCDIR}
|
|
SCRIPTS_ENV+= SCRIPTDIR=${SCRIPTDIR}
|
|
SCRIPTS_ENV+= VIEWBASE=${VIEWBASE}
|
|
SCRIPTS_ENV+= WRKDIR=${WRKDIR}
|
|
SCRIPTS_ENV+= WRKSRC=${WRKSRC}
|
|
SCRIPTS_ENV+= X11BASE=${X11BASE}
|