diff options
author | bsam <bsam@FreeBSD.org> | 2013-03-25 16:19:08 +0800 |
---|---|---|
committer | bsam <bsam@FreeBSD.org> | 2013-03-25 16:19:08 +0800 |
commit | 81c4b9d435453408f547e84cb6f046c6243e1657 (patch) | |
tree | 6d1d9d9b8b441e9d892aef5339a8099ace0cbcef /multimedia | |
parent | ca2df6dfdbcb02f0063348d136d96f6b5cfcaf1d (diff) | |
download | freebsd-ports-gnome-81c4b9d435453408f547e84cb6f046c6243e1657.tar.gz freebsd-ports-gnome-81c4b9d435453408f547e84cb6f046c6243e1657.tar.zst freebsd-ports-gnome-81c4b9d435453408f547e84cb6f046c6243e1657.zip |
. make use of the ports infrastructure to create the desktop file;
. update the desktop file database at install/deinstall time.
PR: ports/154352
Submitted by: bsam (me)
Approved by: Chris Petrik <c.petrik.sosa@gmail.com> (maintainer)
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/xmms/Makefile | 8 | ||||
-rw-r--r-- | multimedia/xmms/pkg-plist | 2 |
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 |