summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2005-05-18If NO_WRKDIR_SYMLINK is defined, no symlink to ${WRKSRC} is created whenrillig1-1/+3
the WRKOBJDIR is set explicitly. This allows for having pkgsrc mounted r/w without actually modifying it.
2005-05-18Since there may have been merge errors in libtool-base 1.5.18, forcetv1-2/+2
LIBTOOL_REQD to 1.5.18nb1.
2005-05-18Use nawk as the default "awk" replacement since it has no dependenciesjlam1-5/+5
and is still strong enough for pkgsrc use.
2005-05-18make use of the new tools framework via the prereq-readme package todmcmahill1-7/+21
extract tools needed for the README.html generation. Suggested by Johnny Lam and Rolland Illig.
2005-05-18Removed the quoting for SUBST_MESSAGE.<class>. Most packages unnecessarilyrillig1-2/+2
define that inside double quotes.
2005-05-18perl.mk was moved from being included by bsd.tools.mk to replace.mk.jlam1-6/+1
Since replace.mk has its own loop to add dependencies, we can remove the one from perl.mk.
2005-05-18Added the show-tools target, which emits a shell code fragment defining allrillig1-1/+14
tools known to the pkgsrc infrastructure.
2005-05-17If USE_TOOLS has "perl" then also define PERL5_PKGSRCDIR for use byjlam1-2/+6
mk/tools/perl.mk. This fixes broken dependencies on perl where the path to the package wasn't defined.
2005-05-17Make USE_TOOLS+=imake imply USE_X11BASE=yes, along with the otherjlam1-2/+2
variable definitions that apply when USE_IMAKE is defined.
2005-05-17_tar.gz is a recognized suffix, so recognize that we need the right tooljlam1-2/+3
to untar the archive.
2005-05-17Turn _MANCOMPRESSED into a strictly "yes" and "no" variablejlam1-2/+6
(case-sensitive) to simplify writing the do-install target code that automatically compresses or decompresses man pages after installation.
2005-05-17Rework the README.html generation code. Major changes are:dmcmahill4-179/+551
- completely redo the code which decides on the machine architecture, operating system, and operating system version for the binary packages. The old way just used to directory names to take a guess. The new way creates a cache file containing meta-data for all the binary packages in each "All" directory. This cache file is consulted when generating the lists of available binary packages. The meta-data is obtained with pkg_info so it should always be correct even if you do something silly like mix OS_VERSION or MACHINE_ARCH packages up in the same directory. Among the benefits are: works when PACKAGES is not $PKGSRC/packages, works with a more or less arbitrary subdirectory structure, works when there are subdirectories for multiple operating systems. This portion of the fix should address PR25390. The cache files are only updated when the contents of an "All" directory changes or if the cache file format changes. There is some room for improving the updating of the cache files, but its not too bad the way it is. - fix up some of the awk code so that generadme.awk works with Solaris nawk as well as NetBSD's nawk and gawk (for pre-2.0 systems). - remove some "if ! foo" shell constructs to increase portability. - be more consistent with what variables get passed to mkreadme from make and which ones are determined automatically. Mostly this meant moving stuff into mkreadme to make it easier to run it standalone.
2005-05-17Allow tweaking of options to pax/tar via EXTRACT_CMD_OPTS.*.jlam1-4/+4
2005-05-17Missed (harmless) rename of "fuzz" to "fuzz_flags".jlam1-2/+2
2005-05-17Simplify by using a for loop instead of "set -- ...; while ... done".jlam1-6/+7
Also, rename "fuzz" to "fuzz_flags" to clarify that it's a set of flags and should be used unquoted. Output from rilligd :)
2005-05-17The sunpro wrapper now creates aliases for gcc and g++, too. This is neededrillig1-3/+3
because the <sys.mk> Makefile fragment sets CC?=gcc.
2005-05-17Fixed shell quoting. Reviewed by jlam.rillig1-25/+27
2005-05-17Move perl handling into replace.mk. We now can specify USE_TOOLS+=perljlam4-16/+27
to note that we need the perl binary and the associated PERL5 and TOOLS_PERL5 variable definitions.
2005-05-17Excise DJB_CONFIG_DIR.schmonz1-3/+2
2005-05-17Save the names of the patches applied during the patch phase into thejlam2-3/+14
patch cookie file, one per line. A package with no patches applied will have a patch cookie file with no lines (zero bytes).
2005-05-17We only need to run the apply-pkgsrc-patches target if the patchesjlam1-1/+5
directory or the local patches directory exist. Also, emit the message informing the user that pkgsrc patches are being applied that was lost in the previous commit.
2005-05-17Split up the do-patch target into two distinct targets --jlam1-106/+89
apply-distribution-patches and apply-pkgsrc-patches. Rewrite the latter code to be more "whitespace-friendly" and to not need to invoke ${AWK} as many times. Drop support for PKGSRC_SHOW_PATCH_ERRORMSG and simply always show the error message.
2005-05-16When generating the report, add a list of top ten offenders at the top.jschauma1-7/+15
This makes it easy for people to track down which packages should receive immediate attention.
2005-05-16In the autoconf213 case, the AUTO* variables should point to thejlam1-4/+4
TOOLS_CMD.* variables for the -2.13 variants. Otherwise, they're empty, which causes errors for packages that use ${AUTOCONF}.
2005-05-16NetBSD's (and bootstrap's) pax-as-tar is GNUish enough to extract mostjlam2-8/+14
GNU tar archives. Create a new EXTRACT_USING value "nbtar" that causes tar/ustar archives to be extracted using pax-as-tar, which understands most GNU tar extensions. Default to EXTRACT_USING=nbtar, as quite a few packages are distributed in GNU tar archives.
2005-05-16USE_GNU_TOOLS+=m4 should translate to USE_TOOLS+=gm4 to get the samejlam1-2/+2
meaning.
2005-05-16Don't have USE_TOOLS+=imake replace USE_IMAKE. Rather let the formerjlam2-6/+3
specify that imake is used by the package, while the latter triggers the special do-configure process.
2005-05-16Add missing required argument to msg_log.jlam3-13/+13
2005-05-16Treat USE_GNU_TOOLS+=yacc the same as USE_TOOLS+=bison, since there isjlam1-2/+2
the implication that the system yacc(1) is not good enough anyway.
2005-05-16Fix mistake in previous commit -- expr is required by the wrapperjlam1-2/+5
framework. Problem & fix from tron@.
2005-05-16Changed option processing to evaluate the options strictly from left torillig1-24/+15
right in each variable, starting with the most generic one. Later definitions override earlier ones. This makes the ``order'' testcase in regress/pkg-options succeed.
2005-05-16No package seems to be using ${NICE} so don't require it.jlam1-3/+3
2005-05-16Don't require m4 for all packages, only for packages that use it.jlam1-3/+3
2005-05-16tee is only used by bsd.bulk-pkg.mk.jlam1-5/+5
2005-05-16We only need "date" to write the date into the +PRESERVE file.jlam1-4/+8
2005-05-16expr is only used by bsd.bulk-pkg.mk.jlam1-6/+6
2005-05-16tsort is only used by bsd.bulk-pkg.mk.jlam1-3/+8
2005-05-16Document EXTRACT_USING in bsd.pkg.extract.mk where it is used.jlam1-1/+6
2005-05-16Change the EXTRACT_USING_PAX defined/undefined option into a EXTRACT_USINGjlam9-41/+32
which can take multiple values -- "pax" or "gtar". The default value of EXTRACT_USING is "pax", which more closely matches reality since before, we were using bootstrap "tar" for ${GTAR} and it was actually pax-as-tar. Also, stop pretending pax-as-tar from the bootstrap kit or on NetBSD is GNU tar. Lastly, in bsd.pkg.extract.mk, note whether we need "pax" or "gtar" depending on what we need to extract the distfiles.
2005-05-16We only need mtree if NO_MTREE isn't defined.jlam1-4/+7
2005-05-16Consolidate the bits that add to PKGSRC_USE_TOOLS, and improve thejlam1-6/+8
comment for shlock.
2005-05-15Don't forcibly set XMKMF -- allow the package to override it if necessary.jlam1-2/+2
2005-05-15Asking the tools framework for "bison" now provides two distinct tools:jlam3-8/+26
"bison" and "bison-yacc". bison is just a symlink to the real bison, but "bison-yacc" provides a "yacc" in ${TOOLS_DIR} that does "bison -y". This allows the tools framework to provide everything that a package might look for when asking for "bison" and avoids relying on the bison being available in the PATH.
2005-05-15In the tools framework, check that the directory doesn't exist beforejlam1-2/+3
creating it in case ${MKDIR} can't handle that situation.
2005-05-15MAKE_PROGRAM:T isn't necessary... we can just call "make", and the PATHjlam1-2/+2
is already properly constructed to call the one in ${TOOLS_DIR}, which symlinks to the correct make tools. From rillig@ in private mail.
2005-05-15Linux xargs is probably GNU xargs, so we need to invoke it with "-r".jlam1-2/+2
From schwarz@ in private mail.
2005-05-15gzip-base installs "zcat" not "gzcat".jlam1-2/+2
2005-05-15We want to check if we're in gzip-base to avoid circular dependencies onjlam1-4/+4
gzip.
2005-05-15gzip and gunzip don't exist on IRIX 5 so wrap then in existence checks.jlam1-3/+9
Ditto for mailx. Lastly, /usr/bsd/zcat isn't gzcat (doesn't understand gzipped files), so don't use it as a gzcat replacement. Changes from Georg Schwarz in private email.
2005-05-15Fix the MANZ handling in bsd.pkg.mk. If MANZ is defined, then we wantjlam1-14/+43
the final man pages to be compressed. If MANZ is not defined, then we want the final man pages to be uncompressed. We need to figure out if during installation, we need either gunzip or gzip to decompress or compress the installed man pages. If a package sets MANCOMPRESSED to "yes" or "no", then it's an indication to the install code that the package itself installed the man pages either compressed or uncompressed. If a package sets MANCOMPRESSED_IF_MANZ, then the package uses BSD-style makefiles, so we need to determine if the BSD-style makefile causes the man pages to be compressed or not. In this case, we need to check in PKGMAKECONF whether MANZ is set or not. XXX Perhaps we should also check for MKMANZ if a package uses BSD-style XXX makefiles?