Age | Commit message (Collapse) | Author | Files | Lines |
|
prepending an underscore to their names. The values are not meant to be
set by Makefiles or buildlink.mk files. However, the values are exported
through CONFIGURE_ENV and MAKE_ENV so that they may be used during the
respective processes.
|
|
BUILDLINK_LDFLAGS to CFLAGS, CPPFLAGS, CXXFLAGS, LDFLAGS from
bsd.buildlink.mk to bsd.pkg.mk. They're unnecessary after the recent
changes to bonobo/buildlink.mk and to libglade/buildlink.mk that removed
their settings of BUILDLINK_CPPFLAGS.
|
|
"${CPPFLAGS}", "${CXXFLAGS}" respectively "${LDFLAGS}" in "bsd.pkg.mk" and
not in "bsd.buildlink.mk" because "${BUILDLINK_CPPFLAGS}" and
"${BUILDLINK_LDFLAGS}" might get changed several times by the
"buildlink.mk" files of various packages.
|
|
after the configure step. There's a growing number of GNU configure
scripts that find a library in -L/path and automatically add -R/path to
the linker flags. We need to make sure this doesn't happen to buildlink
directories.
|
|
expanded from some expensive operation, it isn't evaluated if it's not
needed. Also fix the replace-buildlink target where we were potentially
evaluating ${REPLACE_BUILDLINK} twice when only once was enough.
|
|
out some common code, and this is a start to make different code pieces
look more alike.
|
|
MAKEFILE_PATTERNS. Also replace -R${BUILDLINK_DIR}/lib with
-R${LOCALBASE}/lib on all the REPLACE_BUILDLINK files to prevent rpath
references to ${BUILDLINK_DIR} from getting into things like config
scripts.
|
|
REPLACE_BUILDLINK
REPLACE_BUILDLINK_PATTERNS
REPLACE_BUILDLINK_SED
REPLACE_LIBNAMES
REPLACE_LIBNAMES_PATTERNS
REPLACE_LIBNAMES_SED
BUILDLINK_CONFIG_WRAPPER_SED
Also prepend an underscore to REPLACE_LIBNAME_SCRIPT as it's not a variable
we're exporting.
|
|
|
|
is supposed to do: filter out libtool archives from the list of files
to link into ${BUILDLINK_DIR}.
|
|
REPLACE_LIBNAMES_PATTERNS
REPLACE_BUILDLINK_PATTERNS
They are space-separated lists of shell glob patterns representing files
in which we substitute with REPLACE_LIBNAMES_SED (for replacing buildlink
library names with the true library names) and REPLACE_BUILDLINK_SED (for
replacing references to buildlink directories with the true install
locations). This generalizes the variables (which may still be used):
REPLACE_LIBNAMES, REPLACE_BUILDLINK,
that contained the actual filenames.
REPLACE_BUILDLINK_PATTERNS contains *.lai, *-config, *Conf.sh, and *.pc.
|
|
and use it instead. Also subsititute for library names in the installed
libtool archives. This last bit is to fix instances where "-lncurses" has
been hard-coded into *.lai files, but we are actually using -lcurses in
reality (devel/tvision is one example). Problem noted by Thomas Klausner
(hi wiz!).
|
|
BUILDLINK_CONFIG_WRAPPER_POST_SED. Also some minor formatting changes.
|
|
|
|
post-configure. Also make sure ${BUILDLINK_DIR} is created prior to
trying to create the cookie files.
|
|
place in the linked object, so even if the library is a symlink with a
different name from the true library, the correct soname is recorded in
the object. On a.out, there is no soname, so the linker just records the
specified library name + major number into the object, which can cause the
incorrect library name to be recorded. Fix this problem on a.out by
replacing the specified library names with the true library names in all of
the Makefiles in a post-configure step. Additional files may be added to
the list of files on which replacement is done by setting REPLACE_LIBNAMES
in each package that needs it.
This should fix pkg/13402 by John Klos <john@sixgirls.org>.
|
|
|
|
to aid in debugging problems.
|
|
dependencies on the package are added through buildlink. Also show how
to use EVAL_PREFIX to set BUILDLINK_PREFIX.foo.
|
|
|
|
|
|
into one target: replace-buildlink. Get rid of BUILDLINK_FIX_LIBTOOL_SED
as it can be handled with REPLACE_BUILDLINK_SED.
|
|
package buildlink.mk file. Also change
BUILDLINK_CONFIG_WRAPPER_SED.<pkgname> to BUILDLINK_CONFIG_WRAPPER_SED.
|
|
automatically.
|
|
to the sed expression used in the generated config script wrappers.
|
|
|
|
mangling "lib/libaviplay.so.0.0" to "y.so.0.0". Thanks to Tomasz Luchowski
<zuntum@netbsd.org> for finding this.
|
|
replace ${BUILDLINK_DIR} in config scripts.
|
|
BUILDLINK_FIX_LIBTOOL_SED, that may be appended to.
|
|
into ${LOCALBASE} in libtool archives if USE_LIBTOOL is defined.
|
|
|
|
as they often add extra -L options to the compiler flags, which goes
against the buildlink.mk philosophy.
|
|
|
|
shell variable manipulation, e.g. ${parameter##word} and ${parameter%word}.
Change instances such constructs to use ${DIRNAME} and ${SED} to make the
same manipulations. This is the second part of pkg/13236 by Stoned Elipot
<Stoned.Elipot@script.jussieu.fr> with minor changes by me. Also explictly
create ${BUILDLINK_DIR} at start of _BUILDLINK_USE target to better handle
NO_DEPENDS= cases.
|
|
we don't create an empty directory with no files to populate in it.
|
|
by wrapping them in another script that converts references to ${LOCALBASE}
to ${BUILDLINK_DIR}.
|
|
CFLAGS/CPPFLAGS/CXXFLAGS/LDFLAGS.
|
|
MAKE_ENV.
|
|
|
|
|
|
BUILDLINK_TRANSFORM.<pkgname> sed arguments used to transform the name of
the source filename into a destination
filename
|
|
file does 3 things:
(1) Defines a macro target, _BUILDLINK_USE, that symlinks package files
into a new hierarchy under ${BUILDLINK_DIR};
(2) Adds -I${BUILDLINK_DIR}/include to CPPFLAGS, CFLAGS, and CXXFLAGS;
(3) Adds -L${BUILDLINK_DIR}/lib to LDFLAGS.
This file might be absorbed into bsd.pkg.mk at a future date.
|