summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-03-29 02:32:02 +0000
committerlioux <lioux@FreeBSD.org>2001-03-29 02:32:02 +0000
commitf151d0d43076307881a448479f71fa0b40cad780 (patch)
treeec9f0bdd8b9fa67780f950c00a37a771873bf7c9
parent155d8f67e9e125caf2a60dc6728306ee14be8177 (diff)
downloadFreeBSD-ports-f151d0d43076307881a448479f71fa0b40cad780.zip
FreeBSD-ports-f151d0d43076307881a448479f71fa0b40cad780.tar.gz
Add graceful creation/removal of global Skins dir.
Approved by: maintainer
-rw-r--r--audio/xmms/Makefile3
-rw-r--r--audio/xmms/pkg-plist2
-rw-r--r--multimedia/xmms/Makefile3
-rw-r--r--multimedia/xmms/pkg-plist2
4 files changed, 10 insertions, 0 deletions
diff --git a/audio/xmms/Makefile b/audio/xmms/Makefile
index 57bae47..68b05e2 100644
--- a/audio/xmms/Makefile
+++ b/audio/xmms/Makefile
@@ -94,4 +94,7 @@ pre-patch:
s|\$\(datadir\)/aclocal|\$\(prefix\)/share/aclocal|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+post-install:
+ @${MKDIR} ${PREFIX}/share/xmms/Skins
+
.include <bsd.port.post.mk>
diff --git a/audio/xmms/pkg-plist b/audio/xmms/pkg-plist
index 36574fd..d64f2a0 100644
--- a/audio/xmms/pkg-plist
+++ b/audio/xmms/pkg-plist
@@ -74,3 +74,5 @@ share/locale/zh_TW.Big5/LC_MESSAGES/xmms.mo
@dirrm lib/xmms/Effect
@dirrm lib/xmms
@dirrm include/xmms
+@exec mkdir -p %D/share/xmms/Skins
+@unexec rmdir %D/share/xmms/Skins %D/share/xmms 2>/dev/null || echo "If you are permanently removing xmms, do not forget to remove skin files left under %D/share/xmms/Skins. Use \`\`rm -Rf %D/share/xmms/Skins; rmdir %D/share/xmms''" | fmt
diff --git a/multimedia/xmms/Makefile b/multimedia/xmms/Makefile
index 57bae47..68b05e2 100644
--- a/multimedia/xmms/Makefile
+++ b/multimedia/xmms/Makefile
@@ -94,4 +94,7 @@ pre-patch:
s|\$\(datadir\)/aclocal|\$\(prefix\)/share/aclocal|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+post-install:
+ @${MKDIR} ${PREFIX}/share/xmms/Skins
+
.include <bsd.port.post.mk>
diff --git a/multimedia/xmms/pkg-plist b/multimedia/xmms/pkg-plist
index 36574fd..d64f2a0 100644
--- a/multimedia/xmms/pkg-plist
+++ b/multimedia/xmms/pkg-plist
@@ -74,3 +74,5 @@ share/locale/zh_TW.Big5/LC_MESSAGES/xmms.mo
@dirrm lib/xmms/Effect
@dirrm lib/xmms
@dirrm include/xmms
+@exec mkdir -p %D/share/xmms/Skins
+@unexec rmdir %D/share/xmms/Skins %D/share/xmms 2>/dev/null || echo "If you are permanently removing xmms, do not forget to remove skin files left under %D/share/xmms/Skins. Use \`\`rm -Rf %D/share/xmms/Skins; rmdir %D/share/xmms''" | fmt
OpenPOWER on IntegriCloud