summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2004-03-08 19:27:53 +0000
committerjmmv <jmmv@pkgsrc.org>2004-03-08 19:27:53 +0000
commit8627a6c336aa49b726cb9891b5c81ebc08385251 (patch)
tree3da8159f1536fb9fdba49a3ac6c847e084045944
parentb97abaf7aaa54339398de4fb3437a8e41ff7c541 (diff)
downloadpkgsrc-8627a6c336aa49b726cb9891b5c81ebc08385251.tar.gz
Register the following new directories:
share/application-registry share/icons share/images share/mime-info share/pixmaps share/sounds share/themes Bump version to 1.1 due to this. While here, split the Makefile to ease the addition of xdg-x11-dirs.
-rw-r--r--misc/xdg-dirs/Makefile24
-rw-r--r--misc/xdg-dirs/Makefile.common31
2 files changed, 35 insertions, 20 deletions
diff --git a/misc/xdg-dirs/Makefile b/misc/xdg-dirs/Makefile
index 7fd66fd2f92..608e6d70cdf 100644
--- a/misc/xdg-dirs/Makefile
+++ b/misc/xdg-dirs/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.2 2004/02/15 18:08:03 jmmv Exp $
+# $NetBSD: Makefile,v 1.3 2004/03/08 19:27:53 jmmv Exp $
#
-DISTNAME= xdg-dirs-1.0
+DISTNAME= xdg-dirs-${XDG_DIRS_VERSION}
CATEGORIES= misc gnome kde
MASTER_SITES= # empty
DISTFILES= # empty
@@ -12,23 +12,7 @@ COMMENT= Shared XDG directories
CONFLICTS= gnome2-dirs<=1.2
-WRKSRC= ${WRKDIR}
-USE_LANGUAGES= # empty
-NO_EXTRACT= # defined
-NO_CHECKSUM= # defined
-NO_BUILDLINK= # defined
-NO_CONFIGURE= # defined
-NO_BUILD= # defined
-
-.include "../../mk/bsd.prefs.mk"
-
-XDG_DIRS= share/applications
-
-_SORTED!= ${ECHO} ${XDG_DIRS} | ${TR} -s ' \t' '\n' | ${SORT}
-
-USE_PKGINSTALL= yes
-MAKE_DIRS+= ${_SORTED:S/^/${PREFIX}\//}
-
-do-install: # nothing
+XDG_DIRS_REGISTER= yes
+.include "Makefile.common"
.include "../../mk/bsd.pkg.mk"
diff --git a/misc/xdg-dirs/Makefile.common b/misc/xdg-dirs/Makefile.common
new file mode 100644
index 00000000000..e8ebcc7384a
--- /dev/null
+++ b/misc/xdg-dirs/Makefile.common
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile.common,v 1.1 2004/03/08 19:27:53 jmmv Exp $
+#
+
+XDG_DIRS_VERSION= 1.1
+
+WRKSRC= ${WRKDIR}
+USE_LANGUAGES= # empty
+USE_PKGINSTALL= yes
+NO_EXTRACT= # defined
+NO_CHECKSUM= # defined
+NO_BUILDLINK= # defined
+NO_CONFIGURE= # defined
+NO_BUILD= # defined
+
+XDG_DIRS+= share/application-registry
+XDG_DIRS+= share/applications
+XDG_DIRS+= share/icons
+XDG_DIRS+= share/images
+XDG_DIRS+= share/mime-info
+XDG_DIRS+= share/pixmaps
+XDG_DIRS+= share/sounds
+XDG_DIRS+= share/themes
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${XDG_DIRS_REGISTER} == "yes"
+_SORTED!= ${ECHO} ${XDG_DIRS} | ${TR} -s ' \t' '\n' | ${SORT}
+MAKE_DIRS+= ${_SORTED:S/^/${PREFIX}\//}
+.endif
+
+do-install: # nothing