Commit graph

139 commits

Author SHA1 Message Date
rillig
245e6ba7ed mk/plist: fail fast on programming mistake 2020-09-12 06:55:08 +00:00
leot
fa8cb992c2 mk/plist: Add EARLY_PRINT_PLIST_AWK
EARLY_PRINT_PLIST_AWK is like PRINT_PLIST_AWK but operates before the
file/directory lists are sorted.

Discussed on tech-pkg@ mainly to address `print-PLIST' order problems for
Python 3 packages:

 <https://mail-index.NetBSD.org/tech-pkg/2020/05/27/msg023249.html>
2020-06-10 16:06:09 +00:00
rillig
8cfd3cfc77 mk/plist/print-plist.mk: add show-all-print-PLIST target
This makes it easier to see what happens during print-PLIST.
2020-04-18 10:54:21 +00:00
rillig
b9804ebb15 mk/plist/plist.mk: use less verbose code for picking up PLIST files
While here, add more verbose documentation on PLIST_SUBST since the way
from the package's PLIST file to the +PLIST file can easily be confused
with the other way round, which is handled by print-PLIST.
2020-03-30 22:54:24 +00:00
rillig
b1aad323dc mk/plist: make documentation for GENERATE_PLIST more precise 2020-01-05 21:38:54 +00:00
gutteridge
016d76c0b9 mk/plist/plist.mk: amend MACHINE_ARCH examples in a comment
To avoid potential confusion, amend the example MACHINE_ARCH to what it
really is. While here, fix a rather subtle typo.
2019-01-16 04:43:42 +00:00
rillig
858c6cfd69 mk/misc: make configuration for show-all targets more configurable
Up to now, there was a central list of variable name patterns that
defined whether a variable was printed as a sorted list, as a list or as
a single value.

Now each variable group decides on its own which of the variables are
printed in which way, using the usual glob patterns. This is more
flexible since different files sometimes differ in their naming
conventions.

Two variable groups are added: license (for everything related to
LICENSE) and go (for lang/go).
2018-11-30 18:38:19 +00:00
maya
6c25dec844 Remove clauses 3,4 from TNF-only copyright blocks.
This is based on the decision The NetBSD Foundation made in 2008 to
do so, which was already applied to src.

This change has been applied to code which is likely not in other
repositories.

ok board@, reviewed by riastradh@
2018-08-22 20:48:36 +00:00
rillig
3ea36ec82f mk/plist: make print-PLIST discoverable by "make help"
Because print-PLIST uses mixed case (unlike most of the other make
targets), it is not found by the keyword search of "make help".
2018-03-11 14:53:10 +00:00
prlw1
5c827f6f0e Essentially from OBATA Akio in private mail, June 2015:
Introduce Icon Theme cache handling framework

Icon Theme cache files are used by GTK+ and maintained with the
gtk-update-icon-cache tool.  Each Icon Theme package duplicates
its own maintainance scripts: only the specified icon theme directory
differs.  With this framework, if packages have ICON_THEMES=yes,
associated icon themes will be detected and their cache files will
be maintained automatically.

Change cache handling behaviour as follows:
* Icon theme caches will be updated if either gtk2+ or gtk3+
  gtk-update-icon-cache tool is available.
* With installation of gtk2+ package, not only hicolor icon theme but
  also any other icon theme cache files will be updated.
* Prevent removal of icon caches at deinstall, gtk3+ may be installed and
  using them.
* Ditto with gtk3+, gtk2+ may not be installed now, so caches must be
  maintained by gtk3+.
2017-06-14 16:23:09 +00:00
jperkin
9900231406 Support NetBSD man/html entries. Fixes deforaos-*. 2016-07-26 08:41:36 +00:00
wiz
c9148563a4 Remove special PRINT_PLIST_AWK for a couple of variables.
In particular:
OS_VERSION
MACHINE_GNU_PLATFORM
MACHINE_ARCH
MACHINE_GNU_ARCH
LOWER_OS_VERSION

Reason: Only very few packages really need these, many other have false
positives.

Ok jperkin@
2016-07-25 21:57:23 +00:00
joerg
6b5fefdd15 Honour ALL_ENV in print-PLIST. 2016-06-03 14:32:30 +00:00
jperkin
3b01e58d8a Restore print-PLIST @pkgdir functionality. This was lost in the @dirrm
cleanup as the implicit print action was removed.
2016-05-10 16:54:05 +00:00
jperkin
7f4b9e129e Handle MANZ for print-PLIST. 2016-05-04 11:17:41 +00:00
jperkin
283634a16c Re-arrange parsing order to fix various combinations of PKGMANDIR, MANZ,
and MKCATPAGES.
2016-04-11 12:29:53 +00:00
joerg
639d5b402f Remove support for USE_DESTDIR=no. 2016-04-10 15:58:02 +00:00
jperkin
a2a6924a60 Support .3am (lang/gawk) and .3f (math/udunits) cat/man page suffixes, fixing
builds with PKGMANDIR=share/man for those packages.

Put the regexes into variables to make it easier to add more in the future.
2015-10-07 09:56:14 +00:00
jperkin
1a8008f9b5 Support .so.* files if they exist and are explicitly listed in the
PLIST instead of just .so files.  Fixes a number of packages on Darwin.
2015-09-07 15:30:25 +00:00
joerg
11d2712a27 Remove USE_X11BASE and X11PREFIX. 2015-07-04 16:18:28 +00:00
joerg
92836a718c Garbage collect remaining part of the @dirrm logic. 2015-06-07 03:39:08 +00:00
wiz
627d407a75 Remove pkg_views support, second part: infrastructure. 2014-12-30 15:13:19 +00:00
wiz
e8647fedbb Remove SVR4_PKGNAME, per discussion on tech-pkg. 2014-10-09 13:44:32 +00:00
obache
1c90fa81ef Some improvements and changes for Haskell Cabal support.
* HASKELL_ENABLE_LIBRARY_PROFILING and HASKELL_ENABLE_HADDOCK_DOCUMENTATION
  are "User-settable variables", not "Package-settable variables".
* Change to HASKELL_ENABLE_HADDOCK_DOCUMENTATION=yes by default.
* Add HASKELL_ENABLE_SHARED_LIBRARY("yes" by default), to enable shlib support.
* Add support for dynamically conditional PLIST entries handling for
  HASKELL_ENABLE_SHARED_LIBRARY and HASKELL_ENABLE_LIBRARY_PROFILING.

discussed with pho@ and szptvlfn@.
2014-04-18 13:42:59 +00:00
jperkin
e393ce6d94 Introduce infrastructure support for SMF.
SMF is the Service Management Facility, the default init system in
Solaris and derivatives since version 10.  This adds "smf" to the list
of supported INIT_SYSTEM types, and makes it the default init system on
platforms where it is available.

Packages can introduce SMF support by providing a manifest file, by
default located in ${FILESDIR}/smf/manifest.xml but manifests under
${WRKSRC} can be used too if the package source includes one.

SMF method scripts are supported too if required, using SMF_METHODS in a
similar manner to RCD_SCRIPTS.

Many parts of the SMF infrastructure are configurable, see mk/smf.mk for
the full details.
2014-03-11 14:07:04 +00:00
obache
33f2f6860f Improve shlib name conversion for Cygwin.
* dll may be in ${PREFIX}/bin instead of ${PREFIX}/lib.
* dll name may be cygXXX.dll instead of libXXX.dll.
* versioning name may be foo-X.Y.Z.dll instead of foo.X.Y.Z.dll.
2014-03-08 08:52:25 +00:00
obache
45a19863bb Move PY_PEP3147 specific PRINT_PLIST handling from common mk/plist/print-plist.mk
to lang/python/extension.mk, handling reverse way.
2014-01-24 12:42:52 +00:00
wiz
b7ce74a7b4 Improve support for python-3.3. 2014-01-18 19:48:57 +00:00
jperkin
948c742e84 Introduce CATMAN_SECTION_SUFFIX which if set to 'yes' will ensure that
catman pages are installed with a suffix which matches their section
instead of the default '.0'.

Enable it by default on SunOS, which requires that particular layout.
2013-09-12 11:01:47 +00:00
jperkin
f9143d0209 Fix print-PLIST with a custom PKGGNUDIR. 2013-07-05 15:31:54 +00:00
obache
7a271a3091 * try to replace .so with .dll without `lib' prefix, like a plugins.
* also try to register DLL import library (.dll.a) from static library (.a).
2013-04-17 11:53:44 +00:00
obache
a0ce78347e switch to based on shlib-dylib.awk 2013-03-03 11:53:58 +00:00
obache
c236f11ea7 prevent to expand if dlname is empty. 2013-02-23 09:59:14 +00:00
wiz
7de9eb7274 Fix continuation for previous. 2013-02-20 09:19:08 +00:00
wiz
84c6700514 Remove OPSYS and LOWER_OPSYS substitutions in print-PLIST;
nowadays they cause more PLIST breakage than they fix.
2013-02-20 08:45:05 +00:00
obache
81c406794f Improve PLIST handling for Cygwin (SHLIB_TYPE=PEwin)
* also expand `dlname' in libtool archive
* executable binary files may have .exe extension
* rename shlib extension .so with .dll
2013-02-10 12:03:00 +00:00
sbd
a0f4340e1d Modify mk/plist/plist-gnu.mk to convert gnu/man to ${PKGGNUDIR}${PKGMANDIR}.
Also modify mk/install/install.mk to make the conversion when using
AUTO_MKDIRS.
2013-01-05 07:32:49 +00:00
jperkin
c6fe57f401 Introduce PKGGNUDIR as a way to control gnu prefix.
By default pkgsrc uses LOCABASE/gnu as a prefix for packages to install
native versions of GNU tools, which are them symbolically linked back to
the 'g' versions of the files in LOCALBASE, and users can then add
LOCALBASE/gnu/bin to PATH to pick up those tools.

On systems where the GNU environment is desired, PKGGNUDIR now allows
users to install the non-'g' files directly into LOCALBASE, making them
the default without having to alter PATH, whilst retaining the 'g' files
in order to ensure dependencies and tool paths remain the same.
2012-12-06 11:36:30 +00:00
cheusov
c8f63d3d1e "rebuild" and "retest" targets were added (by analogy with "reinstall").
rebuild is a special target to re-run the build target.
retest is a special target to re-run the test target.
2012-05-27 14:32:28 +00:00
jperkin
fda9afd836 typo. 2012-05-16 14:54:57 +00:00
obache
c1e494cad8 Allow to additional post-processing PLIST with PLIST_AWK and PLIST_AWK_ENV. 2012-05-13 12:39:47 +00:00
wiz
07ac64a423 Remove special handling for LOWER_VENDOR in print-PLIST, it hurts more
than it helps (e.g. replacing foo.pc with foo.${LOWER_VENDOR}).
2012-03-08 23:12:16 +00:00
tron
e97bea0dec Don't strip out "cat" manual pages if the package gets built via "imake".
The settings in "MANINSTALL" don't apply here.
2012-03-04 08:03:56 +00:00
abs
fc3bada41a Introduce PKGSRC_SETENV, defaulting to SETENV. Can be set to ${SETENV} -i
to santise environment
2011-09-08 20:17:15 +00:00
obache
49df322f3e escape `+' in DESTDIR for regex.
fixes PR#45245.
2011-08-30 11:19:51 +00:00
rillig
43f7a6c33c Handle MANINSTALL correctly for packages that USE_BSD_MAKEFILE.
Fixes PR 42714.
2010-02-20 07:05:52 +00:00
joerg
8e4b1dc7fa Kill more @dirrm logic. 2009-06-14 23:10:39 +00:00
joerg
76039544d1 Remove @dirrm related logic. 2009-06-14 22:57:58 +00:00
joerg
8a5245d7ec Don't generate @dirrm lines in print-PLIST, switch @exec mkdir lines to
@pkgdir.
2009-06-14 17:12:03 +00:00
wiz
49efd963a9 Add bem and crh locales for Gnome. 2009-05-20 08:24:29 +00:00