summaryrefslogtreecommitdiff
path: root/misc/xorg-dirs
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-07-29 07:26:03 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-07-29 07:26:03 +0000
commitd886f67dfb38b277249d1c7d658e49c6c3f6e209 (patch)
tree2b5190dab98c8e0e03bf7be146a23aa44d8fdcfe /misc/xorg-dirs
parent02247e7bd0507747fd00e55740616ef960972475 (diff)
downloadpkgsrc-d886f67dfb38b277249d1c7d658e49c6c3f6e209.tar.gz
Initial import of xorg-dirs-1.0.
xorg-dirs handles the X11 directories.
Diffstat (limited to 'misc/xorg-dirs')
-rw-r--r--misc/xorg-dirs/DESCR1
-rw-r--r--misc/xorg-dirs/Makefile31
-rw-r--r--misc/xorg-dirs/PLIST1
-rw-r--r--misc/xorg-dirs/dirs.mk41
4 files changed, 74 insertions, 0 deletions
diff --git a/misc/xorg-dirs/DESCR b/misc/xorg-dirs/DESCR
new file mode 100644
index 00000000000..f7b96ef5206
--- /dev/null
+++ b/misc/xorg-dirs/DESCR
@@ -0,0 +1 @@
+xorg-dirs handles the X11 directories.
diff --git a/misc/xorg-dirs/Makefile b/misc/xorg-dirs/Makefile
new file mode 100644
index 00000000000..7dafb507473
--- /dev/null
+++ b/misc/xorg-dirs/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/07/29 07:26:03 xtraeme Exp $
+#
+
+DISTNAME= xorg-dirs-1.0
+CATEGORIES= misc
+MASTER_SITES= # empty
+DISTFILES= # empty
+
+MAINTAINER= xtraeme@NetBSD.org
+HOMEPAGE= # empty
+COMMENT= Shared X.org directories
+
+NO_BUILD= # defined
+NO_BUILDLINK= # defined
+NO_CHECKSUM= # defined
+NO_CONFIGURE= # defined
+NO_EXTRACT= # defined
+NO_XORG_TARGETS= # defined
+USE_PKGINSTALL= yes
+WRKSRC= ${WRKDIR}
+
+XORG_ONLY_DIRS= # defined
+.include "../../mk/bsd.prefs.mk"
+.include "dirs.mk"
+
+_SORTED!= ${ECHO} ${XORG_DIRS} | ${TR} -s ' \t' '\n' | ${SORT}
+MAKE_DIRS+= ${_SORTED:S/^/${X11ROOT}\//}
+
+do-install: # nothing
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/xorg-dirs/PLIST b/misc/xorg-dirs/PLIST
new file mode 100644
index 00000000000..e686aa64e5d
--- /dev/null
+++ b/misc/xorg-dirs/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/07/29 07:26:03 xtraeme Exp $
diff --git a/misc/xorg-dirs/dirs.mk b/misc/xorg-dirs/dirs.mk
new file mode 100644
index 00000000000..a3766c1effb
--- /dev/null
+++ b/misc/xorg-dirs/dirs.mk
@@ -0,0 +1,41 @@
+# $NetBSD: dirs.mk,v 1.1.1.1 2004/07/29 07:26:03 xtraeme Exp $
+#
+
+.if !defined(DIRS_XORG_MK)
+DIRS_XORG_MK= # defined
+
+oldval:= ${XORG_ONLY_DIRS}
+XORG_ONLY_DIRS:= YES
+.include "../../meta-pkgs/xorg/Makefile.common"
+XORG_ONLY_DIRS:= ${oldval}
+.undef oldval
+
+XORG_DIRS= bin
+XORG_DIRS+= include
+XORG_DIRS+= include/X11
+XORG_DIRS+= include/X11/bitmaps
+XORG_DIRS+= lib
+XORG_DIRS+= lib/X11
+XORG_DIRS+= lib/X11/app-defaults
+XORG_DIRS+= lib/X11/config
+XORG_DIRS+= lib/X11/doc
+XORG_DIRS+= lib/X11/etc
+XORG_DIRS+= lib/X11/fonts
+XORG_DIRS+= lib/X11/fs
+XORG_DIRS+= ${MAN_DIR}
+XORG_DIRS+= ${LIBMAN_DIR}
+XORG_DIRS+= ${KERNMAN_DIR}
+XORG_DIRS+= ${FILEMAN_DIR}
+XORG_DIRS+= ${MISCMAN_DIR}
+
+.if defined(_USE_XORG_DIRS) && !empty(_USE_XORG_DIRS)
+DEPENDS+= xorg-dirs>=${_USE_XORG_DIRS}:../../misc/xorg-dirs
+
+. for dir in ${XORG_DIRS}
+PRINT_PLIST_AWK+= /^@dirrm ${dir:S|/|\\/|g}$$/ \
+ { print "@comment in xorg-dirs: "$$0; next; }
+. endfor
+. undef dir
+.endif
+
+.endif # !defined(DIRS_XORG_MK)