summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2005-05-21For packages that use GNU configure scripts, pass the real commandjlam2-2/+51
paths for the tools that the package uses through the shell environment. We do this since these paths may be hardcoded into package scripts, and if they're not pre-specified, then they'll be searched for in the PATH, which would find the ones in ${TOOLS_DIR}. The variable names that GNU configure scripts expect are named in _TOOLS_VARNAME_GNU.* for the various tools.
2005-05-21Make a bad patch cause a fatal error again. This fixes a bug introducedjlam1-4/+8
in revision 1.5 and fixes PR pkg/30297.
2005-05-21Grammar 101 -- sentences should end in a period.jlam13-26/+26
2005-05-21Add TNF copyright to the new tools framework makefiles.jlam13-13/+480
2005-05-21In computing _REPLACE_LOCALEDIR_PATTERNS_FIND_cmd, make sure the :shjlam1-5/+10
operator does not result in an empty string as make(1) doesn't like them. Also, rewrite the variable substitution for the find(1) command to be more readable, and get rid of the extra grep(1) in favor of using :N.
2005-05-20Made sure the :sh operator does not result in an empty string. Rewrote therillig1-3/+7
variable substitution for the find(1) command to be more readable.
2005-05-20get rid of a spurious %%SUBDIR%% which found its way into the generated ↵dmcmahill1-2/+2
category README.html
2005-05-20Change instances where we stored `shell command` in a make variable intojlam3-35/+32
variables that use the :sh modifier. This still causes expansion to only happen when referenced, and has the advantage of being :Q-safe. Bring back the changes from revision 1.19 of mk/subst.mk now that the problem noted above has been fixed. This passes the buildlink-unwrap regression test.
2005-05-20Revert part of revision 1.18. The new quoting was breaking somejlam1-22/+23
assumptions being made by the USE_PKGLOCALEDIR code and the wrapper framework since it added backtick expressions to the SUBST_FILES.* variables, which were being mangled by the :Q modifier. This is evident when running "make regress" in regress/buildlink-unwrap. Mea culpa.
2005-05-20Rework how the lookup of binary packages in the cache is performed.dmcmahill1-46/+50
As data for a given binary package is loaded, increment a count stored with PKGPATH as the index. Then use a psuedo-multidimensional array with PKGPATH and the # as the index. This allows for much faster lookups and scales linearly with the number of packages. The old way scaled as the product of the number of pkgsrc entries and the total number of binary packages. Not a pretty value. This makes the actual README.html generation part run about 3x faster. Approach suggested by soda.
2005-05-20Only add the autoconf tool if the user also requested automake. Thisjlam1-3/+5
avoids making autoconf required by every package in pkgsrc.
2005-05-20Move the PLIST_SUBST lines that substitute for PERL5_* variables fromjlam1-1/+6
perl5/module.mk into tools/perl.mk so that the substitution occurs for all packages that use perl.
2005-05-20Properly quote dependency to avoid creating garbage files in the pkgsrcjlam1-2/+3
tree.
2005-05-20Based on the value of ${AUTOCONF_REQD}, choose the right autoconf tooljlam1-3/+13
to use. This fixes packages that want automake-1.4, but autoconf-2.50.
2005-05-19list all the extracted variables, not just some of themdillo1-1/+8
2005-05-19make local variables in a few functions be localdmcmahill1-4/+7
2005-05-19Use MACHINE_ARCH instead of arch to be consistent with things like thekristerw1-15/+15
subject line in the bulk mail. This also prevents the quoting problem on Darwin, where arch contains a space.
2005-05-19We can only use the subst.mk framework if the files are relative tojlam1-1/+8
${WRKSRC}. Just directly create the msgfmt wrapper in the proper target. Also, note that the msgfmt handling should eventually migrate to the tools framework so that build dependencies and binary paths are correct.
2005-05-19Convert the last remaining usage of GTAR to use PAX instead.kristerw1-2/+2
2005-05-19Use PAX instead of GTAR since pax is provided on all systems while gtarjlam1-3/+3
isn't.
2005-05-19wiz says ``avifile is dead; i killed it''dillo1-8/+1
2005-05-19Add ku locale, used by gnome-backgrounds-2.10.1.jmmv13-13/+65
2005-05-19PERL5_PKGSRCDIR is no more. Explicitly use "lang/perl58" for thejlam2-6/+4
location of the perl package to install for bulk builds.
2005-05-19allow spaces after the "=" in the .pkgcache files. This was noted withdmcmahill1-7/+7
some of the older packages on ftp.netbsd.org. For example, pkg_info -B ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5.2/vax/All/cascade-1.4.tgz will give OPSYS= NetBSD instead of OPSYS=NetBSD
2005-05-19Merge most of imake.mk into replace.mk and leave imake.mk to containjlam3-73/+75
the extra bits required by packages that use imake/xmkmf. This consolidates most of the replacement tools handling into replace.mk.
2005-05-19- if the mv of the temporary cache file to the real one fails, usuallydmcmahill1-4/+18
due to a directory permissions error, then error out. - when the master cache has just been newly created, don't also report that the master cache is up to date. Both were suggested by Christian Hattemer.
2005-05-19Merge most of perl.mk into replace.mk and leave perl.mk to containjlam3-40/+40
the extra bits required by packages that use perl. This causes PKGSRC_USE_TOOLS+=perl to work properly.
2005-05-19if the top level package cache file does not exist then exit withdmcmahill1-1/+2
a fatal error. Noted by Christian Hattemer.
2005-05-19Properly deal with case where TOOL_DEPENDS.* is a list of values byjlam1-4/+7
iterating over each dependency in the list.
2005-05-19The example is missing a definition for PKG_OPTIONS_VAR.jlam1-2/+3
2005-05-18Replaced the NO_WRKDIR_SYMLINK variable with CREATE_WRKDIR_SYMLINK, asrillig1-2/+3
suggested by Alistair. If you don't want the symlinks, set the variable to "no".
2005-05-18Goal: Remove USE_PERL5 from pkgsrc.jlam2-56/+15
Plan: (1) Change USE_PERL5=build into USE_TOOLS+=perl. (2) Change all other USE_PERL5 into including perl5/buildlink3.mk. Possibly, for packages that don't actually build anything with perl, but merely require it for the perl interpreter, we can instead do: USE_TOOLS+= perl TOOLS_DEPMETHOD.perl= DEPENDS but this is more verbose than simply including the perl5/buildlink3.mk file. Move the PERL5_REQD computation into a lang/perl5/version.mk file, and only do the USE_PERL5 logic in bsd.pkg.use.mk if we're not using the new tools framework. This consolidates all of the perl-handling into two places -- lang/perl5 and mk/tools/perl.mk.
2005-05-18Reinstall BULK_PREREQ before running the post-build script as there may besketch1-1/+10
dependancies required for that script, an smtpd for example, as well.
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