summaryrefslogtreecommitdiff
path: root/mk/tools
AgeCommit message (Collapse)AuthorFilesLines
2005-05-26Teach the tools framework about nroff.jlam12-12/+37
2005-05-23Work around brokenness in GNU configure scripts generated by autoconf-2.59ajlam1-3/+3
-- the checks for grep and egrep are broken because when passed GREP and EGREP in the environment, the script causes GREP and EGREP to be set to empty strings, which causes GNU configure scripts to hang or break. Pass the real paths to grep and egrep through using ac_cv_path_GREP and ac_cv_path_EGREP as well to avoid the brokenness. This fixes the build of textproc/gsed.
2005-05-23Teach the tools framework about "flex" so that packages can specifyjlam6-6/+33
that they require flex instead of any old lex.
2005-05-22Remove USE_TBL from pkgsrc and replace with USE_TOOLS+=tbl.jlam1-6/+3
2005-05-22Don't add "INSTALL" to CONFIGURE_ENV as bsd.pkg.mk adds special valuesjlam1-2/+1
for INSTALL by itself during the configure stage. This fixes problems with GNU configure scripts using the wrong value of INSTALL.
2005-05-22Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:jlam1-6/+3
USE_GNU_TOOLS -> USE_TOOLS awk -> gawk m4 -> gm4 make -> gmake sed -> gsed yacc -> bison
2005-05-22Do not enable _IMAKE_TOOLS unless imake is used. Otherwise, packagesminskim1-1/+3
would always be built with gmake on Linux.
2005-05-22Some packages want to embed the path to the perl tool in scripts butjlam1-1/+13
don't want to depend on perl, e.g. devel/cvs. Provide values for TOOLS_PERL5 and PERL5 even if the package doesn't ask for the perl tool.
2005-05-22The path to perl is now passed via CONFIGURE_ENV as of revision 1.9 ofjlam1-7/+1
mk/tools/replace.mk.
2005-05-22Allow a tool to be passed to GNU configure scripts under more thanjlam1-5/+5
one name.
2005-05-22Add a few more tools for GNU configure scripts: grep, env, xmkmf.jlam1-1/+4
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-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-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-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-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-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-19Properly deal with case where TOOL_DEPENDS.* is a list of values byjlam1-4/+7
iterating over each dependency in the list.
2005-05-18Goal: Remove USE_PERL5 from pkgsrc.jlam1-9/+7
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-18Use nawk as the default "awk" replacement since it has no dependenciesjlam1-5/+5
and is still strong enough for pkgsrc use.
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-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-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-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 formerjlam1-4/+1
specify that imake is used by the package, while the latter triggers the special do-configure process.
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-16Change the EXTRACT_USING_PAX defined/undefined option into a EXTRACT_USINGjlam6-18/+6
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-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-15If we're using xpkgwedge, we need to force using pkgxmkmf so that wejlam1-17/+17
pick up the xpkgwedge imake config files.
2005-05-15Old versions of pax-as-tar don't do the right thing when invoked asjlam1-1/+8
"gtar". Force the gtar in the tools directory to be a wrapper script so that we invoke the (possibly) pax-as-tar as "tar".
2005-05-15Make TOOLS_REAL_CMDLINE_DFLT.<tool> into a publicly-readable value.jlam1-4/+4
2005-05-15Make implementation match documentation for when a wrapper is created andjlam1-8/+11
when a symlink is created.
2005-05-14BUILDLINK_DEPENDS.* can be lists, so iterate over the lists when creatingjlam2-4/+14
a proper BUILD_DEPENDS or DEPENDS list.
2005-05-14Consider ${TAR} differently from ${GTAR}. Currently, mark pkgsrc downjlam12-49/+82
as needing both (no impact since they're both satisfied by the tar binary installed by the bootstrap kit). There's some funniness in the extraction code where we check for pax or GNU tar that needs to be resolved. Remove the TAR=${GTAR} hack since it's no longer needed after these changes. XXX Later, a sweep needs to be made to see where we actually need GTAR XXX and where we only need TAR, probably triggered by whether we call it XXX with the "z" option or not. Packages that need GTAR should explicitly XXX add USE_TOOLS+=gtar to the package Makefile.
2005-05-14Temporarily define TAR here until I figure out a better way to dealjlam1-1/+6
with TAR vs. GTAR. This fixes pkg_install not being created with a tar command.
2005-05-14The mk/tools/defaults.mk is included by bsd.prefs.mk, so it must includejlam1-4/+4
other files without making assumptions about the location of the top of the pkgsrc tree. This fixes problems with running "make bulk-cache" in /usr/pkgsrc (PR pkg/30288).
2005-05-14Typo: if exists /bin/gzip, use /bin/gzip (not /usr/bin/gzip).rillig1-2/+2
2005-05-14Fixed a typo: now using /usr/sbin/gzcat, like in platform/IRIX.mk.rillig1-2/+2
2005-05-14Fixed a typo when looking for /usr/bin/cmp.rillig1-2/+2