Commit graph

74 commits

Author SHA1 Message Date
jlam
bf9129c41e Drop distinction between PKGSRC_USE_TOOLS and USE_TOOLS by making
PKGSRC_USE_TOOLS go away.  There is now only a single USE_TOOLS variable
that specifies all of the tools we need to build/run the package.
2005-07-15 18:27:48 +00:00
kristerw
7c61f75ec0 Add the crosspkgtools category. 2005-06-06 22:30:19 +00:00
wiz
6469e231c2 Recognize inet6 in PKG_SUPPORTED_OPTIONS as an indicator
that a package support IPv6 (for the README-IPv6.html generation).
2005-06-01 17:45:57 +00:00
dmcmahill
832614bc4c Rework the README.html generation code. Major changes are:
- 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-17 21:46:59 +00:00
wiz
78a75d6b01 Fix typo and remove duplicate word. 2005-05-16 19:59:54 +00:00
jlam
25f8d3548e Note the tools used by /usr/pkgsrc/Makefile. 2005-05-16 03:45:24 +00:00
jlam
c674177768 List the tools that are used by the files included by /usr/pkgsrc/Makefile.
This causes the relevant "TOOL" variable names to be defined by
bsd.prefs.mk (through including mk/tools/defaults.mk).
2005-05-14 20:50:02 +00:00
rillig
791533230e Fixed two quoting errors. Where $pkgdir had been written, $$pkgsrc had been
meant. Approved by jlam.
2005-02-14 22:47:11 +00:00
jlam
17c3aafac1 * Make PKGSRC_TOPDIR a private variable by renaming it to _PKGSRC_TOPDIR,
as it's only used internally by bsd.prefs.mk.

* Make _PKGSRCDIR a public variable by renaming it to PKGSRCDIR.
  Also, generate its value from ${_PKGSRC_TOPDIR} so it's less fragile
  than the old method of stripping off the last two components of
  ${.CURDIR}.  PKGSRCDIR may now be used after bsd.prefs.mk is defined.

* Change all references to _PKGSRCDIR to PKGSRCDIR.
2004-10-07 02:01:37 +00:00
jlam
d76ad0b5cd Add a new "regress" category for pkgsrc regression testing code. We
don't descend into this directory for anything since these packages aren't
packages in the normal sense, since they're not expected to install or
package correctly.
2004-08-27 21:32:55 +00:00
wiz
55c7d54bf3 Add show-deps target:
List all packages that depend on a particular package; needs the INDEX file
Usage: 'make show-deps PKG=openssl'
PKG: name of the package

No make dependency on INDEX by purpose, since INDEX generation
right now happens too often (too much phoniness, I guess).
2004-03-26 02:38:42 +00:00
grant
d066c9bb9a make PKGDB target .PHONY, so it is always rebuilt 2004-02-28 06:04:13 +00:00
grant
e6384805f9 s/Port/Pkg/ 2004-02-28 06:03:22 +00:00
jmmv
192bba3de9 Add a multimedia category. Ok'ed by agc@. 2004-01-26 11:32:06 +00:00
agc
0477235584 Add a geography category, in anticipatino of a number of pending packages. 2003-10-04 19:34:46 +00:00
jmmv
31f60e2cec Abort "make readme-all" before it fails (when there are no README.html files
available) and tell the user what to do.  Addresses PR pkg/22413.
2003-09-16 20:31:00 +00:00
grant
33bf53c28b style nit:
target:<space>depends, not <tab>
2003-07-25 02:44:09 +00:00
grant
cb087abb95 index target improvements:
* rename DEPENDSDB to PKGDB
* move build of PKGDB to its own target so make(1) removes it if it
  bombs.

ok'd by dmcmahill@.
2003-07-25 02:43:00 +00:00
dmcmahill
28fd31fa83 rework the INDEX file generation. The new approach speeds up things by
several orders of magnitude and 'make index' now takes 30 minutes or so
instead of several days on my test machine.  The approach now is to take
one pass through every package and extract some key information including
the explicitly listed dependencies.  After the data is extracted, the
dependencies are flattened in one step which avoids the extremely
inefficient recursive make that was previously used.
2003-07-23 09:41:23 +00:00
hubertf
d6fc5aa1e3 Sort SUBDIRs properly 2003-06-30 22:05:11 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
cjep
6fdda4978e Also include ${USER_ADDITIONAL_PKGS} in ${SUBDIR}. This makes it easy
to add local directories to the build hierarchy (e.g. wip, local).
2003-05-03 16:26:01 +00:00
wiz
246e1b5e85 s/${ENV}/${SETENV}/, noted by Kevin P. Neal in connection with PR 19586. 2003-02-09 14:38:51 +00:00
dmcmahill
742bcd19d1 Switch the top level pkgsrc 'readme' and 'cdrom-readme' targets to use the
new and much more efficient code.  Previously a 'make readme' took over
3 weeks on my SS5 and now takes < 3 hours.  The number of make calls has
been reduced from somewhere over 1,000,000 to one per package which is
around 3,000.  The mk/scripts/mkreadme script does all the work now.  This
script has been used in standalone form for a month or two on ftp.netbsd.org
and has had no problem.
2003-01-05 13:37:15 +00:00
salo
047886d903 Do not use commands directly, use ${COMMAND} instead.
Remove continuous blank lines.
2002-12-15 02:49:37 +00:00
dmcmahill
9f079dd858 use = instead of ?= when setting _PKGSRCDIR during the bulk-cache target.
Otherwise a bad value of _PKGSRCDIR will be used and the bulk cache creation
fails.  This didn't show up before because formerly _PKGSRCDIR was previously
set in bsd.pkg.mk instead of bsd.prefs.mk as it is now.

Should fix bulk build dependency problems noted recently by Hubert.
2002-12-01 05:51:33 +00:00
wiz
6c40f123f7 Some whitespace cleanup. 2002-09-24 13:59:20 +00:00
seb
4070cadb64 Retire japanese category.
Add the inputmethod category.
This is part of the japanese category retirement.
2002-05-31 15:26:50 +00:00
dmcmahill
daf35abedf replace some leading spaces with leading tabs. 2001-12-17 02:33:46 +00:00
dmcmahill
f68e56c389 - add 'bulk-cache' and 'clean-bulk-cache' targets to create and remove
the cache files used during a bulk pkgsrc build.

- replace the code in the build script that used to create the cache
  files with a 'make bulk-cache' call.
2001-12-17 02:32:22 +00:00
wiz
a654b3fa66 Use better expressions for grep, to avoid tagging non-IPv6 enabled packages
as IPv6-enabled. Fixes pkg/13394.
2001-07-17 13:11:51 +00:00
hubertf
f6885eefc6 echo -> ${ECHO} 2001-02-27 20:23:59 +00:00
wiz
572e80cd21 Move lots of packages to new time category; fix links; add time subcategory
to main Makefile.
2000-12-17 23:40:53 +00:00
wiz
48cf9d2f96 Move packages from 'net' into new 'chat' category. Add chat to main Makefile. 2000-12-15 00:41:00 +00:00
wiz
cfc8f98100 Retire plan9 sub-hierarchy. 2000-12-14 01:02:08 +00:00
wiz
5be08e0178 Added wm category to main Makefile; remove packages that have been moved
from x11 to wm; fix paths in packages that depend on the moved ones.
2000-12-12 02:10:16 +00:00
wiz
91cc83d59d Add new finance category to main Makefile; remove moved packages from old
locations (moved to finance).
2000-12-11 14:15:31 +00:00
fredb
3493b7ee58 Revert last change. I only tested this on netbsd-1-4; it doesn't seem to
work on netbsd-1-5 at all.
2000-09-07 02:29:40 +00:00
fredb
b2fd29e954 Introduce a new category, "crypto", with a special property: If the user
sets MKCRYPTO=no, packages in this category won't be fetched, installed,
built, or packaged. Also, binary package users forbidden, by law, from
using strong cryptography would presumably find the list on the category's
automatically generated web page useful for ensuring compliance.
2000-09-06 20:28:32 +00:00
sakamoto
658a216cfd Add and enable fonts. 2000-05-12 18:42:22 +00:00
agc
135787acdb Remove empty corba category. 2000-05-12 09:19:14 +00:00
agc
aac426a67b Introduce a new target "show-host-specific-pkgs", which uses the new
show-pkgsrc-dir target to compile a list of host specific package
directories from which the packages can be built and installed.
2000-05-11 11:25:18 +00:00
hubertf
204a64e7d7 Change detection of IPv6-enabled packages by searching for
"^BUILD_DEFS.*=.*USE_INET6" instead of just "USE_INET6" in the pkg's
Makefile.

Suggested by Jun-ichiro itojun Hagino <itojun@iijlab.net> on tech-pkg.
2000-03-30 13:01:49 +00:00
wiz
f895e15bb9 remove commented out SUBDIR += lines for packages that never got
converted from FreeBSD, or have been disabled since. Sorted lines
alphabetically, added some missing directories.
2000-02-25 01:04:11 +00:00
hubertf
05f8037daf Add "readme-ipv6" target, that will generate a list of IPv6 ready
packages.
2000-02-09 03:51:12 +00:00
hubertf
46f8efb26d Rewrite moving of old README-all.html aside.
Fixes PR 9120 by Michael Eriksson T/K 2 <Michael.Eriksson@era-t.ericsson.se>
2000-01-04 23:46:14 +00:00
hubertf
cbaef434fc Ignore case when sorting lines in README-all.html 1999-10-26 01:50:04 +00:00
hubertf
3e15e3b2f7 Include the total number of packages at the top of README-all.html, and
lose the <TD VALIGN=TOP> entries (the <TR VALIGN=TOP> should be sufficient).

Suggested by David Brownlee <abs@mono.org> on tech-pkg@netbsd.org.
1999-10-22 00:54:23 +00:00
hubertf
147fff6fb1 only mv README-all.html aside if it exists 1999-08-23 21:37:28 +00:00
hubertf
dc3aa46cc2 Collect information from pkgsrc/*/README.html into one long list
(README-all.html), and reference this file.
1999-08-22 01:30:15 +00:00