aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-03-29 10:32:02 +0800
committerlioux <lioux@FreeBSD.org>2001-03-29 10:32:02 +0800
commitf151d0d43076307881a448479f71fa0b40cad780 (patch)
treeec9f0bdd8b9fa67780f950c00a37a771873bf7c9 /multimedia
parent155d8f67e9e125caf2a60dc6728306ee14be8177 (diff)
downloadfreebsd-ports-gnome-f151d0d43076307881a448479f71fa0b40cad780.tar.gz
freebsd-ports-gnome-f151d0d43076307881a448479f71fa0b40cad780.tar.zst
freebsd-ports-gnome-f151d0d43076307881a448479f71fa0b40cad780.zip
Add graceful creation/removal of global Skins dir.
Approved by: maintainer
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/xmms/Makefile3
-rw-r--r--multimedia/xmms/pkg-plist2
2 files changed, 5 insertions, 0 deletions
diff --git a/multimedia/xmms/Makefile b/multimedia/xmms/Makefile
index 57bae47e6c13..68b05e2a3ad9 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 36574fd07d79..d64f2a0ebef5 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