aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--multimedia/xmms/Makefile8
-rw-r--r--multimedia/xmms/pkg-plist2
2 files changed, 6 insertions, 4 deletions
diff --git a/multimedia/xmms/Makefile b/multimedia/xmms/Makefile
index 972aa1d775ae..e712e7300f04 100644
--- a/multimedia/xmms/Makefile
+++ b/multimedia/xmms/Makefile
@@ -3,7 +3,7 @@
PORTNAME= xmms
PORTVERSION= 1.2.11
-PORTREVISION= 17
+PORTREVISION= 18
CATEGORIES+= multimedia audio ipv6
MASTER_SITES= http://www.xmms.org/files/1.2.x/ \
http://legacy.xmms2.org/ \
@@ -15,7 +15,7 @@ COMMENT?= X Multimedia System -- An audio player with Winamp GUI
USE_BZIP2= yes
USE_GL= gl
-USE_GNOME= gtk12 gnomehack
+USE_GNOME= desktopfileutils gtk12 gnomehack
USE_GMAKE= yes
USE_GETTEXT= yes
USE_ICONV= yes
@@ -155,7 +155,6 @@ post-patch:
.if ${HAVE_GNOME:Mesound}==""
${REINPLACE_CMD} -e '/AM_PATH_ESD/,/have_esd=no/d' ${WRKSRC}/configure.in
.endif
- @${CP} ${FILESDIR}/xmms.desktop.in ${WRKSRC}/xmms.desktop
post-configure:
@${FIND} ${WRKSRC} -name Makefile | \
@@ -164,7 +163,8 @@ post-configure:
post-install:
@${INSTALL} -d ${PREFIX}/share/xmms/Skins
@${INSTALL} -d ${PREFIX}/share/applications
- @${INSTALL_DATA} ${WRKSRC}/xmms.desktop ${PREFIX}/share/applications/
+ @${INSTALL_DATA} ${WRKDIR}/xmms.desktop ${PREFIX}/share/applications/
+ -update-desktop-database
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/multimedia/xmms/pkg-plist b/multimedia/xmms/pkg-plist
index 5067eab152f5..75ac6e9ab040 100644
--- a/multimedia/xmms/pkg-plist
+++ b/multimedia/xmms/pkg-plist
@@ -98,3 +98,5 @@ share/locale/zh_TW/LC_MESSAGES/xmms.mo
@dirrm include/xmms
@exec mkdir -p %D/share/xmms/Skins
@unexec 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
+@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
+@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true