Automatic conversion of the NetBSD pkgsrc CVS module, use with care
71b4b7e8bc
multimedia/ffmpeg4 does not need -std=gnu99, only ffplay4 does. Since mk/compiler.mk is protected by a multiple-inclusion guard, any later assignment to USE_LANGUAGES has no effect except being confusing. The additional languages show up in "bmake show-var" but at the point of evaluation, they had not been set yet. This can be detected by several pkgsrc tools: pkglint says: WARN: ../../multimedia/ffmpeg4/Makefile.common:14: Modifying USE_LANGUAGES after including ../../mk/compiler.mk has no effect. Adding a manual check to mk/compiler.mk results in: bmake[1]: "mk/compiler.mk" line 273: warning: For multimedia/ffmpeg4, only languages "c" are used, the others in "c99" were defined too late. Making the variable USE_LANGUAGES read-only after including mk/compiler.mk results in: bmake[1]: "multimedia/ffmpeg4/Makefile.common" line 14: Read-only USE_LANGUAGES cannot be set (The latter two checks are not yet in the official pkgsrc tree.) |
||
---|---|---|
archivers | ||
audio | ||
benchmarks | ||
biology | ||
bootstrap | ||
cad | ||
chat | ||
comms | ||
converters | ||
cross | ||
databases | ||
devel | ||
distfiles | ||
doc | ||
editors | ||
emulators | ||
filesystems | ||
finance | ||
fonts | ||
games | ||
geography | ||
graphics | ||
ham | ||
inputmethod | ||
lang | ||
licenses | ||
math | ||
mbone | ||
meta-pkgs | ||
misc | ||
mk | ||
multimedia | ||
net | ||
news | ||
packages | ||
parallel | ||
pkgtools | ||
regress | ||
security | ||
shells | ||
sysutils | ||
templates | ||
textproc | ||
time | ||
wm | ||
www | ||
x11 | ||
Makefile | ||
pkglocate | ||
README.md |
pkgsrc
pkgsrc is a framework for building software for a variety of UNIX-like systems.
It produces binary packages, which can be managed with tools such as pkgin.
Bootstrapping
To use pkgsrc on operating systems other than NetBSD, you first need to bootstrap:
cd pkgsrc/bootstrap
./bootstrap
Note that this is only for the most simple case, using pkgsrc's defaults.
Please consult bootstrap/README
and bootstrap/README.OS
for detailed
information about bootstrapping.
Building packages
cd pkgsrc/category/package-name
$PREFIX/bin/bmake install
Where $PREFIX
is where you've chosen to install packages
(typically /usr/pkg
)
On NetBSD, bmake
is simply the built-in make
tool.
To build packages in bulk, tools such as pkgtools/pbulk
and
pkgtools/pkg_comp
can be used.
Troubleshooting
- Join the community IRC channel #pkgsrc @ freenode.
- Subscribe to the pkgsrc-users mailing list
- Send bugs and patches via web form (use the
pkg
category).
Latest sources
To fetch the main CVS repository:
cvs -d anoncvs@anoncvs.NetBSD.org:/cvsroot checkout -P pkgsrc
To work in the Git mirror, which is updated every few hours from CVS:
git clone https://github.com/NetBSD/pkgsrc.git
Additional links
- The pkgsrc guide
- pkgsrc in the NetBSD Wiki
- Searchable index of packages in pkgsrc
- pkgsrc-wip - a project to get more people actively involved with creating packages for pkgsrc
- pkgsrc on Twitter
- pkgsrcCon