summaryrefslogtreecommitdiff
path: root/misc/xdg-dirs/Makefile
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2004-04-14 15:26:41 +0000
committerjmmv <jmmv@pkgsrc.org>2004-04-14 15:26:41 +0000
commit86b7cbd71b6c148587b4f9111260d9a0da763c21 (patch)
treef6c7a498a69efa61adb9a84dba84dca241ea297b /misc/xdg-dirs/Makefile
parent8cbbbc4da0284dcdc7965d032606032bf8435e40 (diff)
downloadpkgsrc-86b7cbd71b6c148587b4f9111260d9a0da763c21.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/xdg-dirs/Makefile')
-rw-r--r--misc/xdg-dirs/Makefile22
1 files changed, 18 insertions, 4 deletions
diff --git a/misc/xdg-dirs/Makefile b/misc/xdg-dirs/Makefile
index 608e6d70cdf..6b1e0e65272 100644
--- a/misc/xdg-dirs/Makefile
+++ b/misc/xdg-dirs/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2004/03/08 19:27:53 jmmv Exp $
+# $NetBSD: Makefile,v 1.4 2004/04/14 15:26:41 jmmv Exp $
#
-DISTNAME= xdg-dirs-${XDG_DIRS_VERSION}
+DISTNAME= xdg-dirs-1.1
CATEGORIES= misc gnome kde
MASTER_SITES= # empty
DISTFILES= # empty
@@ -12,7 +12,21 @@ COMMENT= Shared XDG directories
CONFLICTS= gnome2-dirs<=1.2
-XDG_DIRS_REGISTER= yes
+NO_BUILD= # defined
+NO_BUILDLINK= # defined
+NO_CONFIGURE= # defined
+NO_CHECKSUM= # defined
+NO_EXTRACT= # defined
+USE_LANGUAGES= # empty
+USE_PKGINSTALL= yes
+WRKSRC= ${WRKDIR}
+
+.include "dirs.mk"
+.include "../../mk/bsd.prefs.mk"
+
+_SORTED!= ${ECHO} ${XDG_DIRS} | ${TR} -s ' \t' '\n' | ${SORT}
+MAKE_DIRS+= ${_SORTED:S/^/${PREFIX}\//}
+
+do-install: # nothing
-.include "Makefile.common"
.include "../../mk/bsd.pkg.mk"