- New, optional Makefile variable HOMEPAGE, specifies a URL for
the home page of the software if it has one.
- The value of HOMEPAGE is used to add a link from the
README.html files.
- pkglint updated to know about it. The "correct" location for
HOMEPAGE in the Makefile is after MAINTAINER, in that same
section.
the "cross" subdirectory. Defaults to ${LOCALBASE}/cross.
- PREFIX is not user settable. Do not conditionally set it such that
environment variables and mk.conf can override it. Issue an error if
PREFIX is attempted to be set from mk.conf, environment, or command line.
The matching package name is useful to check for any bogus matches, is
consistent with the BUILD_DEPENDS and RUN_DEPENDS matching, and will
be necessary when wildcard matching is introduced. It is benign in
pre-fnmatching pkg_info(1)s, and useful in post-fnmatching ones.
Remove test which made MAINTAINER field mandatory - it's not a field that's
critical to the build or installation of a package, and is redundant given
a default value.
X11BASE alone and, when set, sets PREFIX to LOCALBASE and adds a build
dependency on xpkgwedge
- Nuke last vestiges of the ${ARCH} variable, and replace it with the
binary compatibility identifier ${MACHINE_ARCH}.
- Include bsd.prefs.mk early in bsd.pkg.mk. (Needed by xpkgwedge change.)
- Look for Motif/lesstif in both X11BASE and LOCALBASE
- Add rpath (-Wl,-R) options for MOTIFLIB
- Nuke obsolete EXEC_DEPENDS cruft
whitespace-delimited list, and details which types of licences are
allowed. Package Makefiles with non-standard licences (shareware,
non-commercial-use only) should have a LICENCE= <type> added. Normal
package Makefiles remain unchanged.
Add logic to bsd.pkg.mk to check, if LICENCE is defined, that the package
is acceptable.
the directory created in $WRKOBJDIR, to allow using the same obj-dir for
several architectures at once (e.g. via NFS or with cross compiling).
Inspired by Bill Studenmund <skippy@macro.stanford.edu>.
handling. Also, use two regexps when creating the work/.PLIST file,
rather than the four original ones (necessary because the MANLANG
definition has now gone away too).
the MANx and CATx definitions in package Makefiles - if neither MANx
or CATx is specified, the PLIST will be searched for the package's
manual pages. If automatic manual page handling is in operation, and
PKG_VERBOSE is set, echo the manual page names.
explicitly in the commands before ${MAKEFILE}; modify package
Makefiles to conform to this rationalisation. This was used
inconsistently in many packages, some including it, some not.
Get rid of HAVE_MOTIF, MOTIF_STATIC, REQUIRES_MOTIF and MOTIF_ONLY.
Standardise on USE_MOTIF, which uses the pkgsrc dependency checks to
use Motif, if it's available, or Lesstif, if not.
before the comment character - make(1) interprets these tabs as precursors
of a shell command. Change the tabs to spaces, so that mk.conf.example
can actually be used as /etc/mk.conf.
into one file, located in the pkgsrc tree. Thus one file simply needs
to be included before any .if* statements in the package Makefile,
rather than a large number of ad-hoc methods of doing this.
As this file may be used on hosts which are not NetBSD-current, add a
check that a version of -current is being used before setting UVM
dependent on platform.
environment, or /etc/mk.conf, and is used to specify -p to ftp(1) when
fetching distfiles from behind a filtering firewall. Document
PASSIVE_FETCH in mk.conf.example. Suggested by Bill Coldwell.
This will result in the pkgsrc/README.html _not_ being removed, even if
some "make readme" in any of the pkgs fails. (That's the reason there
was no toplevel README.html when I postet this first :)
- ${GNU_ARCH.${TARGET_ARCH}} will produce a target architecture name in
mainline sources
- ${MACHINE_GNU_ARCH} is equivalent to ${GNU_ARCH.${MACHINE_ARCH}}
s/PORTSDIR/PKGSRCDIR/g
(PKGSRCDIR should not be set by users - bsd.pkg.mk sets it automatically).
Also clear up some comments, and move USE_GTEXINFO to use DEPENDS, and
move USE_PERL5 to use DEPENDS.
definition accordingly.
Modify check in LIB_DEPENDS, RUN_DEPENDS and BUILD_DEPENDS, so that
the first component is considered to be a file name if it contains a
'/' character anywhere within it, not just the first character.
Implement a new DEPENDS definition, which looks for an installed
package, building it if not present, and use it in preference to
LIB_DEPENDS. This should make the package collection more useful on
NetBSD ELF ports.
include it, rather than the copy in /usr/share/mk. This should fix the
last remaining "sync" problems between pkgsrc and /usr/share/mk.
XXX pkgsrc/mk/bsd.own.mk will go away in 1.4 XXX
This was all done by Hubert Feyrer.
bsd.port.subdir.mk to bsd.pkg.subdir.mk. Remove the Makefile that was
used to install the old files, as we use the files in place in the
pkgsrc tree now.
gtar. pax has problems extracting certain archives which were made by
gtar and contain trailing trash at the end - gtar ignores this dross,
pax thinks it's valid, and prompts for the second volume.
current package (IF called from a package dir and not via bsd.port.subdir.mk;
in the latter case it's assumed that the dependent packages will be scanned
later anyways).
This fixes PR 4992 by Mario Kemper <magick@bundy.lip.owl.de>.
characters escaped with a backslash, but recognise the backslashes for
backwards compatibility. When matching names, do any escaping of
the regexp '.' metacharacter automatically, if needed.
When a shared object dependency is printed out, use a form that does
not have the backslashes in it, for readability.
Print out the full pathname of the matching shared object, for clarity.
to "no" in a package's Makefile when the authors have placed
restrictions on the redistribution of the distfiles. (Thanks to Jason
Thorpe for the idea).
Add a `mirror' target, which will do a "make fetch" if the package's
distfile is allowed to be redistributed. This is for use on sites
which mirror package distfiles. (Thanks to Charles Hannum for the
idea).
- Document NO_IGNORE, __ARCH_OK
- Make __ARCH_OK overridable, so it can be set to YES e.g. for fetching
all distfiles.
- Move ".ifndef(__ARCH_OK): block, so some targets like clean work
in any case.
- Add LOCALBASE and X11BASE to PATH in MAKE_ENV, CONFIGURE_ENV and
SCRIPT_ENV; this fixes PR 4573
bsd.port.mk, but this time use a definition before the inclusion,
which stops <bsd.own.mk> defining its own install target when
using the package system.
This makes the package system take notice of the definitions in
/etc/mk.conf
one if the categories directories, will call "make readme" in
any subdirectories.
I thought that this was suggested by Chris Demetriou, but I can't find
any PR backing this up. So my apologies to the person who did suggest
this.
characters, and avoids the wrong interpretation of magic HTML
characters in DESCR files or categories.
Forwarded to me by Chris Demetriou, and refers to PR 4341.
- Fixup documentation for CAT<sect>, CATPREFIX.
(these two changes were accidentally committed to the 1.3 branch
as revisions 1.13.2.3 and 1.13.2.4 before!)
+ set MAKE_PROGRAM variable in bsd.port.mk to either ${GMAKE} or
${MAKE}, and use it in do-build and do-install targets
+ if X11 package, and man pages are installed, add install.man to
${INSTALL_TARGET}, rather than using a separate command to do this.
Also added CATn= blah.0, similar to MANn= blah.1, which installs
pre-formatted man pages, like the ones imake produces.
bsd.port.mk would always find the executable (using which), even if
there wasn't an executable in the $PATH. I've modified bsd.port.mk to
look for the executable directly, and simplified the shell code
somewhat in the process. There may be a lurking bug in shell exit
status handling here.
Noted by matthew green <mrg@madrugada.eterna.com.au> and Chris
Demetriou <cgd@netbsd.org> (PR pkg/4337) but I was too stupid to
realise what was happening. That, and a copy of gmake in
/usr/local/bin.
Change <$ARCH> into bsd.port.mk's ${ARCH} value (uname -m) when
constructing the derived PLIST, so that we can use packages on
non-i386 NetBSD architectures and have the correct file names in the
installed inventory.
PLIST before applying.
It is assumed that ports do install manpages uncompressed, if not
they have to set MANCOMPRESSED. Upon that, the pages will be
(un)compressed according to the setting of MANZ.
<bsd.own.mk> defines its own `install' target if none is defined,
which conflicts with the default one we define later on in bsd.port.mk.
This may nuke any WRKOBJDIR definitions (which I have yet to encounter),
but enables "make install" to work as expected.
+ Add temporary mtree file for any X11 packages (like xpm, jpeg etc),
which require a default X11 tree. This will change when we get a NetBSD
x11.dist mtree file.
+ Define SHAREOWN, SHAREGRP and SHAREMODE (in NetBSD) to be the same as
DOCOWN, DOCGRP and DOCMODE respectively.
- Changes from FreeBSD's V1.164:
* Warn if mtree-file not found
* On 'make reinstall' gets DEPENDS_TARGET set
to 'reinstall' instead of 'install'
- Changes from OpenBSD's V1.14:
* Documentation and implementation for ONLY_FOR_ARCHS
* Documentation and implementation for WRKOBJDIR
* Documentation on HAVE_MOTIF and MOTIF_STATIC:
set in /etc/mk.conf, not /etc/make.conf
* Set NOMANCOMPRESS=no to still compress man-pages
(should probably be set to 'yes')
* DEF_UMASK=022
* add ${MACHINE} suffix to WRKDIR if OBJMACHINE is set
* .include <bsd.own.mk>