summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
AgeCommit message (Collapse)AuthorFilesLines
2000-01-14Introduce another definition, FATAL_OBJECT_FMT_SKEW, defaulting to "yes".agc1-2/+7
This halts the execution if an installed package's object format is not the same as the object format currently in use. It can be set to "no" on the rare occasion where the interface to the pre-requisite packages is one of a binary, not a library.
2000-01-14Add a check, inspired by Thor Lancelot Simon:agc1-2/+11
When an installed package is found as part of a DEPENDS pre-requisite, check its object format. If there is none in the installed package, that package was probably built before 29th September 1999, which was when the OBJECT_FMT definition was added to the BUILD_DEFS, so print a warning and continue. If the object format of the installed package and ${OBJECT_FMT} are the same, then continue. If the object format of the installed package and ${OBJECT_FMT} differ, then print an error message explaining the error, and exit.
2000-01-13Add a USE_JAVA= variable for packages which use java, and a PKG_JVM variablejwise1-1/+19
for users to choose their own JVM. USE_JAVA sets up DEPENDS and $JAVA_HOME appropriately, based on PKG_JVM. Currently sane values of PKG_JVM are `jdk' and `kaffe', where the default is `jdk' on NetBSD-*-i386, and `kaffe' elsewhere.
2000-01-11Fix the clean-depends target by using make(1) modifiers before variablehubertf1-2/+5
expansion, instead of letting sh(1) DTWT. Noted by Kazuki Sakamoto <sakamoto@cec.co.jp>
2000-01-11adjust date for size code, also fix the commenthubertf1-6/+6
2000-01-11The size options have only available in pkg_create since 23rd Novemberagc1-3/+3
1999, so make that the date for the test, not 9th September 1999.
2000-01-10When checking and registerring dependencies, recognize dependencies thathubertf1-3/+14
match more than one package, and warn about it: *** WARNING: Dependency on 'gnome-*' expands to several installed packages ( gnome-libs-1.0.53 gnome-core-1.0.53 gnome-print-0.9 ). Please check if this is really intended! In such a case, the pattern ('gnome-*') should be tightened to only match what's really intended (e.g. 'gnome-[0-9]*').
2000-01-10Split print-pkg-depend-sizes into two pkgs, to work make processing ofhubertf1-14/+17
$DEPENDS with wildcards and relational depends possible. (The previous solution with :Q was not useful as this also quoted the seperator between the single depends, making the DEPENDS useless).
2000-01-10Properly protect any wildcards from being expanded (or attempted to ... :)hubertf1-2/+2
by the shell.
2000-01-10Use _PKG_SILENT and _PKG_DEBUG in print-pkg-size, to aid debugging.agc1-4/+6
Make the print-pkg-size target work on Solaris if there are no pre-requisite packages.
2000-01-09Fix size-registering code.hubertf1-69/+69
(Need to test PKGTOOLS_VERSION, not PKGTOOLS_REQD, to see if the new code is present; for PKGTOOLS_VERSION to get defined, some code needs to get moved around a bit, though)
2000-01-07Calculate current pkgtools version once (inline rather than viaabs1-21/+21
additional make call), and pass it in the environment to any recursive make calls. 'make fetch' in gnumeric on my system is now > 15% faster checking dependencies.
2000-01-06protect some more wildcard dependencies from interacting with the shell.hubertf1-2/+2
fixes pr 9106 by abs@netbsd.org.
2000-01-05Add quotes round one place where it may be useful, and add a "plist"hubertf1-2/+3
target to create the PLIST on the fly. (This is just an alias for the existing ${PLIST} target, but with that you have to type the full path which is inconvenient).
1999-12-29Use dot-files for the BUILD_VERSION- and BUILD_INFO_FILE.bad1-3/+3
1999-12-28${FIND} addedwiz1-1/+4
1999-12-23sort the list of binary packages when generating README.htmldmcmahill1-2/+2
1999-12-16This patch cleans up our message for unacceptable licenses:hubertf1-6/+13
miyu% make ===> xephem-3.1 Unacceptable license: no-commercial-use. To build this package, add this line to your /etc/mk.conf: ACCEPTABLE_LICENSES+=no-commercial-use To do this, we need to change the semantics of the IGNORE variable. It is no longer taken as one variable, but rather as one variable with several lines, seperated by whitespace. Each line will be printed on it's own. In addition, the code for the IGNORE_FAIL has been slightly moved around so IGNORE_SILENT can be used together with IGNORE_FAIL now. (does someone use this?).
1999-12-07Added LTCONFIG_OVERRIDE and LIBTOOL_OVERRIDE definition tosakamoto1-1/+17
substitute pkglibtool for the pkg's own libtool. "ltconfig" is script to make "libtool" script. "ltconfig" is executed by GNU's "configure" script at "do-configure" target. if USE_LIBTOOL and LTCONFIG_OVERRIDE defined, specified "ltconfig" is overrided to symlink pkglibtool to "libtool" instead of making "libtool" before executing "configure". if USE_LIBTOOL and LIBTOOL_OVERRIDE defined, specified "libtool" is removed, and symlinked from pkglibtool after executing "configure" (and "ltconfig").
1999-11-30DTRT in package-depends if RUN_DEPENDS and PACKAGE_DEPENDS_WITH_PATTERNShubertf1-2/+6
are set.
1999-11-29Add code to include the size of a package into both thehubertf1-20/+82
installed version and binary packages. The size can be queried then via pkg_info: xfeyrer @ noon% pkg_info -s xv Information for xv-3.10apl1: Size of this package in bytes: 4670692 xfeyrer @ noon% pkg_info -S xv Information for xv-3.10apl1: Size in bytes including required pkgs: 14610165 While doing work on the size code, support for the @src directive was removed (formerly enabled with the pkg_create -s switch, but unused in our pkg system). The new pkg_info -s and -S switches were tested on installed, local (file) and remote (ftp) packages. In bsd.pkg.mk, take special care for pkg_* versions that do not have the pkg_create -s and -S switches and do not record size information there.
1999-11-23add "" around ${F77} and ${FC} when adding to MAKE_ENV. This way if someonedmcmahill1-3/+3
specifies flags in PKG_FC, they are properly handled.
1999-11-22- Add USE_FORTRAN variable. In packages which need a fortran compiler to build,dmcmahill1-1/+18
USE_FORTRAN should be set in the package Makefile. The logic added by this commit will choose a fortran compiler to use and set the correct dependency rather than having this selection scattered across each package which needs a fortran compiler. - Add PKG_FC variable. By setting PKG_FC in /etc/mk.conf, users can force the selection of which fortran compiler gets used by the package system. If not specified, PKG_FC defaults to f2c-f77 on pre-1.4 systems that did not include /usr/bin/f77. In addition PKG_FC defaults to f2c-f77 on newer systems since f77 is still somewhat buggy. When /usr/bin/f77 becomes more stable, the default should be changed from f2c-f77 to f77.
1999-11-22Cosmetic change - the list of installed packages includes a trailingagc1-2/+2
whitespace - don't duplicate the whitespace.
1999-11-22When we're making a _binary_ package, say so.hubertf1-2/+2
1999-11-20Automatically set MASTER_SITE_LOCAL from MASTER_SITE_BACKUP, and make surehubertf1-8/+9
MASTER_SITE_BACKUP doesn't end in //. For this, any setting of MASTER_SITE_LOCAL in /etc/mk.conf must no longer include ${DIST_SUBDIR} - this will be added automatically, if needed.
1999-11-12Use asterisks, which are more visible, when flagging a bad fuzz factoragc1-2/+2
in a package patch.
1999-11-12Introduce a variable called PATCH_FUZZ_FACTOR, default "", and use itagc1-4/+8
if patch(1) is smart enough (i.e. not Solaris by default). Also introduce a second patch stage (in the package patch phase, not the distribution patches), whereby a misapplied patch with ${PATCH_FUZZ_FACTOR} will be tried again without a fuzz factor. This will fail on package patches which patch many files, but these should be fixed anyway.
1999-11-10Use fuzz factor 0 when patching on NetBSD and Linux. Solaris, of course,agc1-3/+3
has a patch(1) that doesn't recognise a fuzz-factor option. Pointed out by Frank van der Linden.
1999-11-10Add a MOTIFBASE definition, to allow Motif libraries and headers to beagc1-5/+15
picked up from a different directory (typically, this is /usr/dt on Solaris).
1999-11-01Recognise "lib" entries with two or more version numbers, in theagc1-5/+4
PLIST, as shared objects. Tested with both GNU egrep and Solaris XPG4 egrep. Not the most compact of regular expressions, due to non-portability of {n,m} repetition atoms between different versions of egrep.
1999-10-31Change the "update" target so it becomes more useful (and less dangerous!).rh1-6/+52
Here is a summary of the changed behaviour: * A "make update" will no longer clean the subtree before running. * If called a second time, it will resume package installation, in case a previous "make update" was interrupted for some reason. (just make sure you don't call "make clean" in between ;-) * Unless "NOCLEAN" is set, "make update" will clean up the subtree after successfully updating _all_ packages (to avoid a dirty directory structure for future makes). * A "clean-update" target has been introduced to clean up the subtree that gets updated. This should be used prior to an initial "make update" if you suspect that one of the packages that get updated may be dirty. XXX: this still does not automatically check for or update any obsolete ´upstream' packages (e.g., if gtk depends on glib, a "make update" in the gtk directory won't automatically update glib, you have to do it the other way round).
1999-10-22As pointed out by Hubert Feyrer, the pattern that pkg_info takes (in theagc1-2/+2
show-downlevel target) is a shell glob pattern, not a regular expression, so wildcards are '*', not '.*'. Due to the format of package names, the regular expression will match in most cases (a single digit major version number), but that's no excuse.
1999-10-21Be more careful when matching packages in show-downlevel target - applyagc1-2/+2
the fix from The Wiz in pkg PR 8597. This will still produce erroneous results for the foo-current vs. foo package discrepancy, but that's left as an exercise for a later day.
1999-10-21Optimise some of the ELF shared object awk script.agc1-9/+4
1999-10-20Make ELF shared object links work again using nawk as well as gawk.agc1-33/+37
Use awk more efficiently.
1999-10-19Re-enable shared lib handling on Solaris as well as NetBSD.agc1-2/+2
"Someone" owes me big-time for this.
1999-10-19Be a bit more efficient when calculating whether patch-sum files haveagc1-5/+7
changed, and avoid extraneous gibberish at the end of a cmp(1) command, so that patch-sum creation works on Solaris.
1999-10-14Update "makepatchsum" target to produce a placeholder patch-sum filefredb1-13/+36
if and only if there are no patches and patch-sum already exists. This is necessary to meet the original purpose of that target, which is to "catch" users who happen to have old patches lying around, for whatever reason. Also, don't update patch-sum if it wouldn't change.
1999-10-13When appending some files to PLIST for shared lib handling, escape anyhubertf1-3/+13
characters special to REs (e.g. libncurses++.so). Fixes PR 8612 by SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
1999-10-07Back out revision 1.351 which added XPKGBASE. This seems to be an issue ofjlam1-8/+4
some contention, so better leave changes for till after all the dust settles.
1999-10-05Support using a preinstalled Motif installation instead of Lesstif again.tron1-10/+13
1999-10-05New variable XPKGBASE automatically set to ${LOCALBASE} or ${X11BASE} basedjlam1-4/+8
on value of USE_LOCALBASE_FOR_X11. This points to the installation path of X11 packages built via pkgsrc.
1999-10-04Replace the dead GNU mirror on "ftp.informatik.tu-muenchen.de" by thetron1-2/+2
one on "ftp.gwdg.de".
1999-09-29Add OBJECT_FMT to the list of BUILD_DEFS placed in the BuildInfo file.agc1-1/+2
1999-09-29Use pkglibtool on Solaris as well as NetBSD.agc1-2/+2
1999-09-28Correct typo in previous target addition.agc1-2/+2
1999-09-28Add a convenience target called "show-var", which will echo a make(1)agc1-1/+6
variable from the command line: i.e. "make show-var VARNAME=var" will echo var's value
1999-09-27Abolish old-style bundled args for ${GTAR}. The purpose is to permitfredb1-2/+2
EXTRACT_ELEMENTS to contain getopts style args and long args, specifically "-X foo" and "--exclude foo". Addresses PR pkg/8498.
1999-09-24Replace the call to "sed" used to modify the package list during automatictron1-3/+3
ELF shared object handling by a call to "awk" to avoid clobbering exclamation marks in the package list.