summaryrefslogtreecommitdiff
path: root/mk/buildlink3
AgeCommit message (Collapse)AuthorFilesLines
2011-09-08Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -iabs1-2/+2
to santise environment
2010-12-03Fix build on 64bit linux platforms. When buildlinking directories weabs1-3/+3
want ${BUILDLINK_DIR}/lib not ${BUILDLINK_DIR}/lib${LIBABISUFFIX} Tested on Linux x86_64 (Centos 5) and NetBSD
2010-08-21Support builtin library detection for Haiku.obache1-1/+15
A half of PR#43399.
2010-06-16Analogously to the case of modular xorg, do not use imake if it is notschwarz1-4/+10
available on the system (e.g. on MacOS 10.6). This prevents a circular dependency on such systems involving x11-links and imake.
2010-05-19Add BUILTIN_PKGS with the "builtin" package names to the build information.sbd1-1/+4
E.g if readline 6.0 and ncurses 5.7 are part of the system we get: BUILTIN_PKGS=readline-6.0 ncurses-5.7
2010-05-03Revert addition of support for Haiku OS (BEINCLUDES and BELIBRARIES).obache2-33/+8
Improve a port is not better than break others, and current BUILDLINK3 dose not fit such a environment. Thanks for tests and reviews after commit.
2010-05-03Indent.wiz1-13/+13
2010-05-03Replace __noexistent__ with __nonexistent__ to avoid possibilty of another ↵obache1-5/+5
confusion.
2010-05-02Fixes r1.3, and recommit.obache1-5/+18
Assign with expansion to avoid confusion if this file is included multiply.
2010-05-02Revert v1.3.wiz1-18/+5
It broke expat detection/usage on NetBSD with native X. See thread "intltool not building (expat problem)" on tech-pkg, started on May 1.
2010-05-02Fix typo in comment.wiz1-2/+2
2010-05-02Fix typo that changes behaviour (was this tested?)wiz1-2/+2
2010-04-28Use /boot/common as default BUILDLINK_PREFIX if /usr does not exist.obache1-1/+10
It's default location of posix packages for Haiku OS.
2010-04-28Use BEINCLUDES and BELIBRARIES to find header files and libs additionally.obache2-6/+31
They point to the location of builtin header files and libraries for Haiku OS. No objection over two and a half months in tech-pkg@.
2010-01-20Do not second guess the libtool mode if it was explicitly specified.joerg1-4/+8
For --mode=execute, it could result in incorrect dropping of arguments, which breaks mono.
2009-10-05Fix indentation of show-buildlink3, came from a typo.obache1-2/+2
2009-07-11Reformatted and extended the comment so that it can be found byrillig1-13/+28
"make help".
2009-03-20Restore duplication check for _BLNK_PACKAGES that got lost with earlierjoerg1-2/+2
versions and was not fatal.
2009-03-20Simply and speed up buildlink3.mk files and processing.joerg3-42/+55
This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time.
2009-03-16Move _SYS_VARS processing to a point where BUILDLINK_PACKAGES isjoerg1-14/+14
finalised.
2008-12-15Fixes typo, able to detect builtin libiconv again.obache1-2/+2
2008-12-14Add /usr/lib${LIBABISUFFIX} to the search pathjmcneill1-1/+3
2008-10-06Complete previous, by entering the package version definition if the filecube1-2/+4
looked up is not a pkgconfig one, at the condition that the version script is defined.
2008-10-06Allow the caller to override the script that extracts the version of thecube1-3/+10
built-in package. That means pkgconfig-builtin.mk can be used in even more situations now.
2008-10-05Merge cube-native-xorg, so that pkgsrc-current can be used with the nativecube1-0/+57
X.Org found in NetBSD-current. Thanks a lot to all who helped, especially Matthias Scheler who did repeated tests on Mac OS X and older versions of NetBSD to make sure the support for those platforms wouldn't be broken (or at least, not fatally, as I would still expect a few hiccups here and there, because there is only so much one can test in such limited time). On the infrastructure side, this branch brings pkgconfig-builtin.mk, in order to write very easily new builtin.mk files. It can actually handle more than just pkgconfig files, but it will provide a version if it finds such a file. x11.builtin.mk has also been made more useful and now all existing (and future!) native-X11-related builtin.mk files should include it.
2008-06-22When bombing out because the package we need isn't installed, printdholland1-2/+2
the full requirement rather than just the package name. This message should never be seen (after all, the package we need is supposed to *get* installed) but sometimes if things are screwed up in one way or another it does show up. Since often what's wrong is that the package that's installed is the wrong version, not that it's missing entirely, this way the error message makes a lot more sense. E.g. http://mail-index.netbsd.org/tech-pkg/2008/06/12/msg001126.html et seq. ok dillo@
2008-03-10Replace "pkg_admin -S lsbest" usage with pkg_info -E. The base strippingjoerg1-7/+5
in bsd.buildlink3.mk was broken with pkg_install-20080309 was it returned a relative path. It would have failed before e.g. with symbolic links in the path. pkg_info -E is simpler and was added exactly for this purpose. Fixes PR 38213 and PR 38211.
2008-02-19Check if BUILDLINK_AUTO_VARS.${_pkg_} is defined before testing itxtraeme1-2/+3
via !empty. This fixes a problem with gnome-panel and db1.
2008-02-07Replaced _PKG_SILENT and _PKG_DEBUG with RUN.rillig1-22/+22
2008-01-23Use bsd.fast.prefs.mk in some very commonly included locations.tnn1-2/+2
2007-12-05Escape colons in preprocessor, compiler or linker flags while checkingtron1-12/+12
their existances in other variables. This avoids parsing errors if e.g. "BUILDLINK_LDFLAGS.<pkg>" contains a colon.
2007-11-27Made the code a bit more readable by elimination common subexpressions.rillig1-7/+10
2007-10-07fix obsolete URLs for www.NetBSD.orgkano2-4/+4
close PR pkg/37071 reviewd by xtraeme@
2007-10-01Why don't we use pkg_info -qL instead of pkg_info -f?rillig1-1/+2
2007-08-02Add core of the infrastructure support for cross-compilation.joerg1-2/+2
- USE_CROSS_COMPILATION activates it, CROSS_DESTDIR specifies root of the target filesystem - derive _CROSS_DESTDIR from CROSS_DESTDIR or MAKEOBJDIR - buildlink3.mk prefixes the files to symlink with _CROSS_DESTDIR - compiler/gcc.mk knows about the target prefix (e.g. i386--netbsdelf) - PKG_DBDIR is prefixed with _CROSS_DESTDIR - package-install and bin-install are not called with su - install and strip are redirected to the tool version - links for the target specific ar, as, ld, nm, objdump, ranlib and strip are added - compiler wrapper detect if linking is requested or not - special command sinks for CPP and CC/CXX add the cross-compile magic: - modify include dirs to get the target /usr/include - modify linker dirs and runpath to use target /usr/lib at link time, but keep correct rpath entries Supported-by: Google SoC 2007 Basic tests by he@ on Sparc. Review from jlam@.
2007-07-27If using X11_TYPE=modular this means we have imake(1) from pkgsrc.tnn1-3/+7
We can't use our own imake to check for builtin packages so disable the check and always report that no builtin implementation exists. No objections on tech-pkg@
2007-07-27Remove remaining traces of BUILDLINK_TRANSFORM.${pkg}.joerg1-5/+1
2007-07-23*blush* One variable was missing for the !modular case.joerg1-1/+2
2007-07-23More aggressively conditionalize X11BASE handling. Only one casejoerg1-6/+28
is left now and that is hidden by LOCALBASE=X11BASE for modular Xorg.
2007-06-06Added _VARGROUPS.rillig1-1/+14
2007-04-09Remove special treatment of "DynaLoader.a" completely. It's not necessarytron1-16/+1
with current libtool version and breaks the build under Darwin 8.x and NetBSD 4.0_BETA2.
2007-03-12Don't handle Perl's "DynaLoader.a" specially under Mac OS X. It is nottron1-3/+5
necessary and doing so causes build problems. This fixes PR pkg/35990.
2007-01-25Absolute never use .x11-buildlink. Some cases get nasty to fix, sojoerg1-1/+5
back to this.
2007-01-17Renamed BUILDLINK_TRANSFORM.* to BUILDLINK_FNAME_TRANSFORM.*, to makerillig1-5/+9
clear that these variables are completely unrelated to BUILDLINK_TRANSFORM. Added a legacy check that catches appearances of BUILDLINK_TRANSFORM.*. XXX: Where should incompatible changes in pkgsrc be documented?
2006-12-20For modular Xorg disable xpkgwedge (will be made a hard error later).joerg1-12/+12
Don't add ${X11BASE}/bin to PATH, don't include mk/x11.buildlink3.mk when USE_X11BASE is set and don't use BUILDLINK_X11_DIR and related magic. OKed by wiz@
2006-12-15Remove trailing tabs.martti1-2/+2
2006-12-15Remove trailing spaces.martti1-2/+2
2006-11-17Added a check for whether X11BASE is set correctly. Currently the errorrillig1-1/+5
message is Syntax error: word unexpected (expecting ")") which is not helpful at all.
2006-11-09Fixed two scripts so that they also run when "set -u" is in effect.rillig2-4/+5
2006-11-05Special case LOCALBASE before X11BASE, as they can be identical injoerg1-1/+2
the case of modular Xorg and the latter is more specific.