summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
AgeCommit message (Collapse)AuthorFilesLines
2004-04-15Provide a quick fix for PR pkg/25187 so that "make update" DTRT withtv1-2/+2
dependencies again. This is not a good long term solution; I'm still working on that as an option to pkg_info to recurse the dependency tree.
2004-04-14Only do the dirs.mk dance when PKG_INSTALLATION_TYPE is overwrite.jmmv1-2/+3
The -dirs packages are simply useless in a pkgviews world.
2004-04-14Rework the way to use the -dirs packages (ATM, xdg-dirs, xdg-x11-dirs,jmmv1-1/+5
gnome1-dirs and gnome2-dirs): - Introduce a global USE_DIRS variable, which takes pairs of names and versions. For example, an xdg-1.1 value will request the use of the xdg-dirs package, at least version 1.1. This variable must always be appended to. If there are duplicates with different versions, the one with the higher number will be picked up. - Introduce the mk/dirs.mk file, which is automatically included by bsd.pkg.mk when USE_DIRS is not empty. It parses the variable's value and includes the required dirs.mk files, present in each -dirs package. - For each -dirs package, add a dirs.mk file that defines a variable holding the list of directories provided by it, adds a dependency on that package, and modifies the PRINT_PLIST_AWK variable to output comments for the directories handled by it. - Drop some Makefile.common files that only make things difficult and more confusing now (in favour of the new dirs.mk files). The only thing to worry about is to keep version numbers consistent across xdg-* and gnome*-* packages, but that will be easier to handle. The main reason for this change is to be able to modify PRINT_PLIST_AWK in a clean way, but I hope this will improve clarity too. Also, this simplifies the addition of future -dirs packages (if needed) in a consistent way.
2004-04-12Introduce support for the PRINT_PLIST_AWK variable. This can be used tojmmv1-2/+5
provide extra awk expressions that are used while generating the PLIST with the print-PLIST target (before the final 'print' is done), so that it is closer to reality. Ok'ed by wiz@ and hubertf@.
2004-04-11egrep -x 'RE'jschauma1-3/+3
is the same as egrep '^RE$' Not all egrep's know the '-x' flag, so use the latter.
2004-04-07Convert "${ECHO} -n" to "${ECHO_N}", and introduce that into the defs.*tv1-29/+29
files. On most platforms this resolves back to "${ECHO} -n".
2004-04-05Support DEPENDS_TARGET="install clean"; from Allan Barrett inxtraeme1-7/+7
PR pkg/25059.
2004-04-03To view the license, use "${MAKE} show-license" not "make show-license".reed1-2/+2
This is consistent with other messages shown to user.
2004-04-02Undo implicit recursive package registration. The buildlink[23] system istv1-18/+4
already taking care of this where it's truly needed. OK'd by agc.
2004-03-31Get rid of dd workaround for old paxes (last seen in NetBSD before 1.5;wiz1-6/+4
bootstrap pax doesn't need it either). Closes PR 18814 by Greg A. Woods.
2004-03-31if NO_BUILD is defined, default to an empty USE_LANGUAGES.grant1-1/+6
2004-03-31tweak whitespace in commentgrant1-2/+2
2004-03-31fix comment about needing patch(1).grant1-2/+2
2004-03-29Use X11_TYPE check instead of USE_PKGSRC_XFREE86. It's safe to use thejlam1-8/+8
value of X11_TYPE here since it's defined in bsd.buildlink3.mk which is included before this check. This fixes breakage for packages that set USE_X11 due to USE_PKGSRC_XFREE86 not being defined before it's used.
2004-03-29Make lang/perl58 the default perl package installed when a package needsjlam1-16/+2
Perl as a dependency.
2004-03-29Set DFLT_PKG_SYSCONDIR to the location that PKG_SYSCONFDIR would havejlam1-20/+20
been set to if it hadn't been overridden by PKG_SYSCONFDIR.<pkg>. This can be used in /etc/mk.conf to re-override certain PKG_SYSCONFDIR.<pkg> in /etc/mk.conf from various package Makefiles, e.g. PKG_SYSCONFDIR.openssl= ${DFLT_PKG_SYSCONFDIR} PKG_SYSCONFDIR.tcp_wrappers= ${DFLT_PKG_SYSCONFDIR}
2004-03-27wrap a long line in BUILD_DEFS output, tweak the message slightly.grant1-3/+4
2004-03-22Due to the special handling of pkgtools/digest in pkgsrc (it must bejlam1-11/+18
installed before the normal dependency checks), on a system without any packages installed, we can run into the problem where digest won't install because it has already been installed as part of installing a build dependency. This can happen if, e.g., PKGSRC_COMPILER is set to "ccache gcc", and you try to build devel/gmake. Change the way that the uptodate-digest target installs pkgtools/digest by ensuring that pkgtools/digest is deinstalled just before installing it.
2004-03-19When using imake and buildlink together, assert our definitions ofdanw1-1/+4
CC and CXX on the make command line, in case imake's definitions use complete paths (which would get around the buildlink wrappers)
2004-03-17fix a file descriptor leak in the darwin PLIST so->dylib translationdanw1-3/+5
script that broke packages that installed too many shared libraries (eg libwww).
2004-03-13Test was reversed.jlam1-2/+2
2004-03-13If USE_DIGEST is "no", then skip the check for an up-to-date digest.jlam1-1/+7
XXX These changes should be removed once we have a working XXX pkgsrc/bootstrap.
2004-03-13Discard unused error messages from "pkg_admin pmatch".jlam1-2/+2
2004-03-11Get rid of all occurrences of cpp-like tests for ${OPSYS} inagc1-8/+4
bsd.pkg.mk, and use the abstracted means of determining generic shared lib type per operating system.
2004-03-11Interix libs are close enough to ELF that only file(1) knows the difference.tv1-1/+3
Call it ELF.
2004-03-11Use ${DO_NADA} to introduce a do-nothing line (as is done elsewhere intv1-11/+12
pkgsrc); simply # makes older bmake hork up in combination with some shells.
2004-03-09Change LIBTOOL_REQD to recent libtool version, 1.5.2nb4. (Thisreed1-2/+2
libtool-base includes "Fix version_type settings for the non-NetBSD platforms in the CXX and F77 cases." And "Pull in the fix for the symlink vulnerability.") Several packages have been changed to reflect the better libtool-base, but old LIBTOOL_REQD allowed old 1.4.2 version. So new packages had wrong library versioning like: libasprintf.so.0.0, libsvn_delta-1.so.0.0, and libXrender.so.0.0. Okayed by wiz@.
2004-03-09Remove "ftp.gwdg.de" from "MASTER_SITE_GNU" because its mirror istron1-2/+1
apparently not updated any more.
2004-03-02extend REPLACE_INTERPRETER to accept shell wildcardsdrochner1-3/+5
2004-02-28need to escape ) in the awk regex in do-config-status-override target;jdolecek1-2/+2
some pickier awks (e.g nawk) refuse the regex otherwise
2004-02-27Instead of wrapping the config.status script, edit it directly to preventjlam1-16/+8
--recheck from re-executing the configure script by inserting "exit 0" judiciously. This works with configure scripts generated by autoconf>=2.13 and fixes problems with running config.status on Solaris systems where /bin/sh isn't POSIX enough.
2004-02-25s/netbsd.org/NetBSD.org/, s/freebsd.org/FreeBSD.org/grant1-8/+8
2004-02-21Rename PATH_ENV to BUILD_ENV, which better expresses what it's for.jlam1-9/+12
BUILD_ENV is used to set the environment for the sub-make processes that are invoked for each phase after and including buildlink.
2004-02-18* Move pkgsrc/mk/compiler/bsd.compiler.mk to pkgsrc/mk/compiler.mk.jlam1-8/+11
Package Makefiles may now directly include compiler.mk. * Don't include compiler.mk within bsd.prefs.mk any longer. It was only included for the purposes of defining CC_VERSION. Packages that want to test the value of CC_VERSION should now first include "../../mk/compiler.mk". Any GCC_REQD statements in package Makefiles should be set before compiler.mk is included. * Simpllfy pkgsrc/mk/compiler/*.mk files as a result of not needing to be included indirectly by bsd.prefs.mk. We remove the special handling associated with detecting whether the file was included from within bsd.prefs.mk. These files are now much more straightforward to write and understand. * G/C the BSD_PREFS_MK stack mechanism as the only users (compiler/*) no longer need it. * Ensure that directories are prepended to the PATH only from within bsd.pkg.mk.
2004-02-17G/C the unused GNU_MISSING_OVERRIDE logic, as we don't need it anymorejlam1-14/+1
after the changes in revision 1.27 of tools.mk to hide the auto* tools between pre-configure and do-configure.
2004-02-16Be less aggressive about overriding all of the functionality ofjlam1-4/+15
config.status. Instead, only block "config.status --recheck", which re-executes the GNU configure script. This still allows config.status to overwrite post-configure changes to Makefiles and config.h files, so those changes should (properly) be applied to Makefile.in and config.h.in instead.
2004-02-16Handle compressed info files in PLIST handling.seb1-4/+5
2004-02-16Quote '+' in awk regexp related to PLIST and INFO_FILES.seb1-3/+3
As seen in devel/libg++ with its libg++.info file...
2004-02-14Use relative to ${WRKSRC} pathnames in do-gnu-missing-override targetseb1-6/+5
by cd'ing into it. Also symlink the missing script instead of copying it.
2004-02-14Make LIBTOOL_OVERRIDE more powerful by taking a list of shell globsjlam1-21/+22
relative to ${WRKSRC}. Also automaticslly set LIBTOOL_OVERRIDE if USE_LIBTOOL is defined, as the vast majority of packages need both if they need USE_LIBTOOL. The default LIBTOOL_OVERRIDE overrides libtool scripts up to a directory depth of 2 within ${WRKSRC}. Note that SHLIBTOOL_OVERRIDE must still be set manually in package Makefiles that need it; however, it's also been changed to be a list of shell globs relative to ${WRKSRC}.
2004-02-14Make CONFIG_{GUESS,SUB}_OVERRIDE slighly more powerful by allowing them tojlam1-11/+23
be lists of shell globs relative to ${WRKSRC}.
2004-02-14Change into ${WRKSRC} first so that shell globs expand properly.jlam1-6/+6
2004-02-14Some shells barf if the for loop list is empty, so avoid that.jlam1-3/+3
2004-02-14Default to overriding config.status after GNU configure has been run. Wejlam1-7/+20
don't want it to execute during the build phase as it might overwrite post-configure changes we might have made to the generated files. Packages that don't want this behaviour can simply set: CONFIG_STATUS_OVERRIDE= # empty in the package Makefile.
2004-02-14deprecate Zoularis: remove any tests for ZOULARIS* and bomb ifgrant1-20/+4
${LOCALBASE}/bsd/share/mk/zoularis.mk exists.
2004-02-14GNU configure scripts generated by newer autoconf sometimes try tojlam1-5/+5
save the value of LDFLAGS, CPPFLAGS, etc. in the config.cache file. However, they don't store the value correctly if it contains leading spaces. This leads to sub-configure scripts that examine to cache to error out saying that the build environment changed. Use a make variable trick to strip off all of the leading spaces on these variables when passing them via CONFIGURE_ENV.
2004-02-14if using GNU configure and CONFIG_{GUESS,SUB}_OVERRIDE is not defined,grant1-1/+8
default to overriding ${WRKSRC}/config.{guess,sub} so packages can recognise platforms such as NetBSD/shark.
2004-02-13Fix spelling of "suffixes". From Todd Vierling in PR 24400.wiz1-11/+11
2004-02-13Allow more case variations on "Makefile" to be included in USE_PKGLOCALEDIRsketch1-3/+3
transformations.
2004-02-12typo in commentjlam1-2/+2