Commit graph

13 commits

Author SHA1 Message Date
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
rillig
c987b02ad4 Replaced "# defined" with "yes" where appropriate. 2005-09-28 19:51:27 +00:00
jlam
cf4dfe44a5 Use REQD_DIRS instead of MAKE_DIRS for directories under ${PREFIX} so
that these directories will be conditionally removed (based on reference
counts), regardless of the value of PKG_CONFIG.  Bump the PKGREVISION
for packages that were modified as a result.
2005-08-20 19:16:21 +00:00
jmmv
dba1dd4b42 Fix print-PLIST generation (broken by incorrect regexp in MKDIR handling). 2005-06-04 11:20:22 +00:00
jlam
95fd1f6ec9 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated.  These
changes affect about 1000 files.

The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk.  bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files.  Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred.  This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.

The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages.  Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc.  This modification is a nod toward LOCALBASE=/usr.  The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.

The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc.  The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.

The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files.  Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories.  These files are used as input
to imake since imake can't use stdin for that purpose.

The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead.  This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed.  Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries.  Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
2005-06-01 18:02:37 +00:00
jmmv
0dcda0ebc1 During PLIST generation, suppress MKDIR lines that create directories
handled by these packages.  Found by wiz@.
2005-05-31 18:53:32 +00:00
jlam
ae5b29e125 We don't need ${SORT} to sort a list .. just use the :O modifier instead. 2005-04-28 23:06:01 +00:00
wiz
0310837d14 Update to 1.2: add share/desktop-directories.
Okayed by jmmv@.
2005-04-19 13:06:49 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
jmmv
9c98bbb2c8 Now pick maintainership, to let people know who to bla^Wcomment to. 2004-04-14 15:31:09 +00:00
jmmv
6bb0eff02e Rework the way to use the -dirs packages (ATM, xdg-dirs, xdg-x11-dirs,
gnome1-dirs and gnome2-dirs):

- Introduce a global USE_DIRS variable, which takes pairs of names and
  versions.  For example, an xdg-1.1 value will request the use of the
  xdg-dirs package, at least version 1.1.  This variable must always be
  appended to.  If there are duplicates with different versions, the
  one with the higher number will be picked up.

- Introduce the mk/dirs.mk file, which is automatically included by
  bsd.pkg.mk when USE_DIRS is not empty.  It parses the variable's value
  and includes the required dirs.mk files, present in each -dirs package.

- For each -dirs package, add a dirs.mk file that defines a variable
  holding the list of directories provided by it, adds a dependency on
  that package, and modifies the PRINT_PLIST_AWK variable to output
  comments for the directories handled by it.

- Drop some Makefile.common files that only make things difficult and
  more confusing now (in favour of the new dirs.mk files).  The only thing
  to worry about is to keep version numbers consistent across xdg-* and
  gnome*-* packages, but that will be easier to handle.

The main reason for this change is to be able to modify PRINT_PLIST_AWK in
a clean way, but I hope this will improve clarity too.  Also, this simplifies
the addition of future -dirs packages (if needed) in a consistent way.
2004-04-14 15:26:41 +00:00
jmmv
f73d0d91ed Initial import of xdg-x11-dirs, version 1.1:
xdg-x11-dirs installs a set of shared directories used by freedesktop.org
XDG based systems (kde 3.2 and gnome 2.4).  It is useful to simplify PLIST
handling in other packages.

This package differs from xdg-dirs in that shared directories are created
under X11's tree.  Has no effect if using xpkgwedge, other than depending
directly on xdg-dirs.
2004-03-08 19:29:05 +00:00