diff options
author | jmmv <jmmv@pkgsrc.org> | 2004-04-14 15:26:41 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2004-04-14 15:26:41 +0000 |
commit | 6bb0eff02e0f2c772b0ba3bc6cf6cf153aa53bd6 (patch) | |
tree | f6c7a498a69efa61adb9a84dba84dca241ea297b /misc/gnome-dirs/Makefile | |
parent | 34c7796109a07988ca0181707201e1730447c986 (diff) | |
download | pkgsrc-6bb0eff02e0f2c772b0ba3bc6cf6cf153aa53bd6.tar.gz |
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.
Diffstat (limited to 'misc/gnome-dirs/Makefile')
-rw-r--r-- | misc/gnome-dirs/Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/misc/gnome-dirs/Makefile b/misc/gnome-dirs/Makefile index 63ef27a4851..0eb0023678e 100644 --- a/misc/gnome-dirs/Makefile +++ b/misc/gnome-dirs/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.6 2004/02/15 12:12:32 jlam Exp $ +# $NetBSD: Makefile,v 1.7 2004/04/14 15:26:41 jmmv Exp $ # -DISTNAME= gnome-dirs-${GNOME_DIRS_VERSION} +DISTNAME= gnome-dirs-1.5 CATEGORIES= misc gnome MASTER_SITES= # empty DISTFILES= # empty @@ -12,15 +12,20 @@ COMMENT= Shared GTK/GNOME (v1 and v2) directories WRKSRC= ${WRKDIR} USE_LANGUAGES= # empty +USE_PKGINSTALL= yes +USE_X11BASE= yes NO_CHECKSUM= # defined NO_EXTRACT= # defined NO_BUILDLINK= # defined NO_CONFIGURE= # defined NO_BUILD= # defined -USE_X11BASE= YES +.include "dirs.mk" +.include "../../mk/bsd.prefs.mk" -GNOME_DIRS= ${GNOME_DIRS_COMMON} +_SORTED!= ${ECHO} ${GNOME_DIRS} | ${TR} -s ' \t' '\n' | ${SORT} +MAKE_DIRS+= ${_SORTED:S/^/${PREFIX}\//} + +do-install: # nothing -.include "Makefile.common" .include "../../mk/bsd.pkg.mk" |