summaryrefslogtreecommitdiff
path: root/mk/bsd.buildlink.mk
AgeCommit message (Collapse)AuthorFilesLines
2001-10-09Make the variables BUILDLINK_CPPFLAGS and BUILDLINK_LDFLAGS private byjlam1-17/+17
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.
2001-10-09Back out last change that moved the prepending of BUILDLINK_CPPFLAGS andjlam1-1/+6
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.
2001-10-05Prepend "${BUILDLINK_CPPFLAGS}" and "${BUILDLINK_LDFLAGS}" to "${CFLAGS}",tron1-6/+1
"${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.
2001-10-05Substitute for rpath references to buildlink directories in Makefilesjlam1-6/+42
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.
2001-10-05Move the setting of replace_files within the cookie check so that if it'sjlam1-25/+27
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.
2001-10-05Rename some replace_* variables to replace_files. I'm trying to factorjlam1-10/+10
out some common code, and this is a start to make different code pieces look more alike.
2001-10-05Factor out the pattern representing Makefiles into its own variablejlam1-6/+9
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.
2001-10-04Document the following variables:jlam1-5/+38
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.
2001-10-04Fix typo in previous commit.jlam1-2/+2
2001-10-03Make explicit what the mammoth sed expression in the _BUILDLINK_USE targetjlam1-5/+12
is supposed to do: filter out libtool archives from the list of files to link into ${BUILDLINK_DIR}.
2001-10-03Invent new variables:jlam1-26/+39
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.
2001-10-02Factor out the common code for the replace-libnames targets into a variablejlam1-54/+51
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!).
2001-08-22Change a = to a += to allow adding to the value ofjlam1-6/+8
BUILDLINK_CONFIG_WRAPPER_POST_SED. Also some minor formatting changes.
2001-07-27Add back commented code.jlam1-3/+3
2001-07-27Separate library name replacement into two parts, pre-configure andjlam1-7/+39
post-configure. Also make sure ${BUILDLINK_DIR} is created prior to trying to create the cookie files.
2001-07-27On ELF, the linker extracts the soname from the specified libraries tojlam1-2/+38
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>.
2001-07-24Add more debugging code to note when a file to be linked can't be found.jlam1-1/+4
2001-07-23Record files that are linked into ${BUILDLINK_DIR} in the cookie filesjlam1-4/+8
to aid in debugging problems.
2001-07-20Make the example buildlink.mk file more complete by showing howjlam1-2/+5
dependencies on the package are added through buildlink. Also show how to use EVAL_PREFIX to set BUILDLINK_PREFIX.foo.
2001-07-06Fix quoting problem in Solaris's "/bin/sh".tron1-2/+2
2001-07-02For aesthetic reasons, sort the *.lai files found during replace-buildlink.jlam1-2/+3
2001-07-02Merge buildlink-fix-libtool-archives and buildlink-fix-config-scriptsjlam1-41/+25
into one target: replace-buildlink. Get rid of BUILDLINK_FIX_LIBTOOL_SED as it can be handled with REPLACE_BUILDLINK_SED.
2001-07-01Change example to have bsd.buildlink.mk file included at start of ajlam1-7/+11
package buildlink.mk file. Also change BUILDLINK_CONFIG_WRAPPER_SED.<pkgname> to BUILDLINK_CONFIG_WRAPPER_SED.
2001-06-29If USE_BUILDLINK_ONLY is set, then also set USE_CONFIG_WRAPPERjlam1-1/+9
automatically.
2001-06-28Create new variable BUILDLINK_CONFIG_WRAPPER_SED.<pkgname> that is addedjlam1-3/+7
to the sed expression used in the generated config script wrappers.
2001-06-26Remove a debugging printf/echo.jlam1-2/+1
2001-06-26Fix bug in the sed expression used to filter out libtool archives. It wasjlam1-2/+3
mangling "lib/libaviplay.so.0.0" to "y.so.0.0". Thanks to Tomasz Luchowski <zuntum@netbsd.org> for finding this.
2001-06-26Add code, similar to REPLACE_NCURSES, called REPLACE_BUILDLINK, thatjlam1-3/+30
replace ${BUILDLINK_DIR} in config scripts.
2001-06-23Factor out the sed expression used to fix libtool archives into a variable,jlam1-3/+6
BUILDLINK_FIX_LIBTOOL_SED, that may be appended to.
2001-06-21Add code that runs at post-build time to fix references to ${BUILDLINK_DIR}jlam1-1/+23
into ${LOCALBASE} in libtool archives if USE_LIBTOOL is defined.
2001-06-20Relax libtool archive regexp to match more .la files.jlam1-2/+2
2001-06-20Filter out libtool archive files from being linked into ${BUILDLINK_DIR}jlam1-3/+7
as they often add extra -L options to the compiler flags, which goes against the buildlink.mk philosophy.
2001-06-19Add BUILDLINK_DIR to the CONFIGURE_ENV and MAKE_ENV automatically.jlam1-1/+3
2001-06-18On some platforms, /bin/sh is feebler than NetBSD's /bin/sh with respect tojlam1-4/+9
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.
2001-06-18Move the MKDIR line to after we test if the source file exists or not, sojlam1-2/+2
we don't create an empty directory with no files to populate in it.
2001-06-16Add code to handle GTK-style config scripts (gtk-config --cflags/--libs)jlam1-2/+36
by wrapping them in another script that converts references to ${LOCALBASE} to ${BUILDLINK_DIR}.
2001-06-15Automatically prepend ${BUILDLINK_CPPFLAGS} and ${BUILDLINK_LDFLAGS} tojlam1-11/+7
CFLAGS/CPPFLAGS/CXXFLAGS/LDFLAGS.
2001-06-15Pass BUILDLINK_CPPFLAGS and BUILDLINK_LDFLAGS through CONFIGURE_ENV andjlam1-1/+6
MAKE_ENV.
2001-06-13Use ECHO_MSG instead of ECHO for informational message.jlam1-2/+2
2001-06-11Document BUILDLINK_CPPFLAGS and BUILDLINK_LDFLAGS.jlam1-4/+7
2001-06-11The variables that may optionally be defined are:jlam1-2/+15
BUILDLINK_TRANSFORM.<pkgname> sed arguments used to transform the name of the source filename into a destination filename
2001-06-11This Makefile fragment is included by package buildlink.mk files. Thisjlam1-0/+83
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.