summaryrefslogtreecommitdiff
path: root/misc/gnome-dirs/Makefile.common
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2003-01-27 09:35:25 +0000
committerjmmv <jmmv@pkgsrc.org>2003-01-27 09:35:25 +0000
commit532ed206962eb079ff4fe7c75d9896b0de7beaf7 (patch)
treeef737b9077fd7ca2fc1d24a3bdd43b7ef2634c24 /misc/gnome-dirs/Makefile.common
parent5266ae1ed9d97d78d84cbdf53cf36c786deb6b78 (diff)
downloadpkgsrc-532ed206962eb079ff4fe7c75d9896b0de7beaf7.tar.gz
Initial import of gnome-dirs, version 1.0:
gnome-dirs installs a set of shared directories used by many GTK/GNOME applications. Do not directly depend on this package. Please use gnome1-dirs and gnome2-dirs instead. This is an attempt to simplify shared directory handling in PLIST's, as many packages use the GNOME directory hierarchy. Reviewed by rh.
Diffstat (limited to 'misc/gnome-dirs/Makefile.common')
-rw-r--r--misc/gnome-dirs/Makefile.common58
1 files changed, 58 insertions, 0 deletions
diff --git a/misc/gnome-dirs/Makefile.common b/misc/gnome-dirs/Makefile.common
new file mode 100644
index 00000000000..ee4bb4106c5
--- /dev/null
+++ b/misc/gnome-dirs/Makefile.common
@@ -0,0 +1,58 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2003/01/27 09:35:25 jmmv Exp $
+#
+
+# This Makefile contains all the logic needed to automatically generate
+# PLIST's for the gnome*-dirs packages.
+# It also installs all GTK/GNOME directories common to v1 and v2.
+
+GNOME_DIRS_VERSION= 1.0
+
+GNOME_DIRS_COMMON= share/gnome/apps
+GNOME_DIRS_COMMON+= share/gnome/apps/Applications
+GNOME_DIRS_COMMON+= share/gnome/apps/Development
+GNOME_DIRS_COMMON+= share/gnome/apps/Games
+GNOME_DIRS_COMMON+= share/gnome/apps/Graphics
+GNOME_DIRS_COMMON+= share/gnome/apps/Internet
+GNOME_DIRS_COMMON+= share/gnome/apps/Multimedia
+GNOME_DIRS_COMMON+= share/gnome/apps/Settings
+GNOME_DIRS_COMMON+= share/gnome/apps/Settings/Desktop
+GNOME_DIRS_COMMON+= share/gnome/apps/Settings/Session
+GNOME_DIRS_COMMON+= share/gnome/apps/System
+GNOME_DIRS_COMMON+= share/gnome/apps/Utilities
+GNOME_DIRS_COMMON+= share/gnome/help
+GNOME_DIRS_COMMON+= share/gnome/help/fdl
+GNOME_DIRS_COMMON+= share/gnome/help/fdl/C
+GNOME_DIRS_COMMON+= share/gnome/help/fdl/C/figures
+GNOME_DIRS_COMMON+= share/gnome/help/gpl
+GNOME_DIRS_COMMON+= share/gnome/help/gpl/C
+GNOME_DIRS_COMMON+= share/gnome/help/gpl/C/figures
+GNOME_DIRS_COMMON+= share/gnome/help/lgpl
+GNOME_DIRS_COMMON+= share/gnome/help/lgpl/C
+GNOME_DIRS_COMMON+= share/gnome/help/lgpl/C/figures
+
+.include "../../mk/bsd.prefs.mk"
+
+_SORTED!= ${ECHO} ${GNOME_DIRS} | ${TR} -s ' \t' '\n' | ${SORT}
+_REVERSE!= ${ECHO} ${GNOME_DIRS} | ${TR} -s ' \t' '\n' | ${SORT} -r
+
+PLIST_SRC= ${WRKDIR}/.PLIST_SRC
+
+do-install:
+.for d in ${_SORTED}
+ ${INSTALL_DATA_DIR} ${PREFIX}/$d
+.endfor
+.undef d
+
+post-install:
+ @${RM} -f ${PLIST_SRC}
+ @${TOUCH} ${PLIST_SRC}
+.for d in ${_SORTED}
+ @${ECHO} "@exec \$${MKDIR} %D/$d" >> ${PLIST_SRC}
+.endfor
+.for d in ${_REVERSE}
+ @${ECHO} "@unexec \$${RMDIR} %D/$d || \$${TRUE}" >> ${PLIST_SRC}
+.endfor
+.undef d
+
+.undef _SORTED
+.undef _REVERSE