pkgsrc/devel/buildtool/buildlink3.mk
jmmv a1f6f804cd Update to 0.16:
Sixteenth alpha version, released on 2004/07/04.

     o   Added preliminar support for work directories, which are used to put
         all temporary files created during a build in them.  This allows mak-
         ing the source tree read only, as it won't get polluted in any way.
         Note that existing packages may need some tweaks in their logic files
         to support this completely.  To help with testing, you should set the
         BT_USE_WORKDIR variable in bt_config.conf to `yes', so that this fea-
         ture is always used.

     o   Added a standard customizable `DOC' feature, which can be used by the
         end user to disable installation of documentation.  Existing packages
         may need to be fixed to honour this, though.

     o   bt_logic's core has been rewritten.  It is now much faster than
         before and has better dependency control, which solves many stupid
         bugs.

     o   A framework to run uninstalled programs (those which may be linked to
         uninstalled libraries) has been readded.  It is very similar to what
         libtool does with its .libs directory, and is completely transparent
         to the end user.

     o   Added (in fact, readded, as it was lost during the conversion to
         bt_logic) support to install packages in a fake root directory,
         needed in many package systems to support Buildtool-ized programs.

     o   Definitions' names (those written to the configuration header) have
         been changed to include the language name they refer to in them.
         This provides better support when the C and C++ compilers do not
         match.  Note that for this to take effect you need to set BT_REQUIRE
         to (at least) `0.16'; otherwise, the previous behavior is kept.

     o   Multiple fixes have been done in the bt_check_bits() function.

     o   Fixed the link command in bt_logic so that library directories
         appearing under the same project hierarchy (and manually specified by
         the -L flag) are not converted to an rpath.

     o   Fixed build under OpenBSD 3.4, HP-UX and Tru64.

     o   Added the bt_check_prog_make() check in bt_config, which looks for a
         make utility.

     o   Added the bt_echo() and bt_source() functions to bt_swcgen.

     o   The installation was changed to use unversioned directories and bina-
         ries.
2004-07-04 22:18:41 +00:00

47 lines
1.3 KiB
Makefile

# $NetBSD: buildlink3.mk,v 1.2 2004/07/04 22:18:41 jmmv Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
BUILDTOOL_BUILDLINK3_MK:= ${BUILDTOOL_BUILDLINK3_MK}+
.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+= buildtool
.endif
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nbuildtool}
BUILDLINK_PACKAGES+= buildtool
.if !empty(BUILDTOOL_BUILDLINK3_MK:M+)
BUILDLINK_DEPENDS.buildtool+= buildtool>=0.16
BUILDLINK_PKGSRCDIR.buildtool?= ../../devel/buildtool
BUILDLINK_DEPMETHOD.buildtool?= build
BUILDTOOL= ${BUILDLINK_PREFIX.buildtool}/bin/buildtool
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= ${BUILDTOOL} config
CONFIGURE_ENV+= BT_FLAGS_CC="${CFLAGS}"
CONFIGURE_ENV+= BT_FLAGS_CPP="${CPPFLAGS}"
CONFIGURE_ENV+= BT_FLAGS_CXX="${CXXFLAGS}"
CONFIGURE_ENV+= BT_FLAGS_LD="${LDFLAGS}"
CONFIGURE_ENV+= BT_PROG_AWK="${AWK}"
CONFIGURE_ENV+= BT_PROG_CC="${CC}"
CONFIGURE_ENV+= BT_PROG_CXX="${CXX}"
CONFIGURE_ENV+= BT_PROG_LD="${LD}"
CONFIGURE_ENV+= BT_PROG_M4="${M4}"
CONFIGURE_ARGS+= --prefix=${PREFIX}
.if !target(do-build)
do-build:
${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD}cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${BUILDTOOL} build
.endif
.if !target(do-install)
do-install:
${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD}cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${BUILDTOOL} install
.endif
.endif # BUILDTOOL_BUILDLINK3_MK
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}