From 15177a13ed8f0cc15f07d7bd13938ce62e0b4888 Mon Sep 17 00:00:00 2001 From: landry Date: Sat, 15 Mar 2008 11:54:10 +0000 Subject: [PATCH] Add a .desktop file to show aqualung in desktop menu. Update PLIST, bump PKGNAME and add desktop-database goo. Based on a diff from Jeremy Evans, with tweaks from ajacoutot@ ok ajacoutot@ --- audio/aqualung/Makefile | 9 ++++++++- audio/aqualung/files/aqualung.desktop | 14 ++++++++++++++ audio/aqualung/pkg/PLIST | 5 ++++- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 audio/aqualung/files/aqualung.desktop diff --git a/audio/aqualung/Makefile b/audio/aqualung/Makefile index 1d412e61984..3b891074f75 100644 --- a/audio/aqualung/Makefile +++ b/audio/aqualung/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.1.1.1 2008/02/15 15:52:02 steven Exp $ +# $OpenBSD: Makefile,v 1.2 2008/03/15 11:54:10 landry Exp $ COMMENT= advanced music player DISTNAME= aqualung-0.9beta9.1 +PKGNAME= ${DISTNAME}p0 CATEGORIES= audio HOMEPAGE= http://aqualung.factorial.hu/ @@ -32,6 +33,8 @@ LIB_DEPENDS= gtk-x11-2.0,gdk-x11-2.0,gdk_pixbuf-2.0::x11/gtk+2 \ avcodec,avformat,avutil::graphics/ffmpeg \ vorbis,vorbisfile,vorbisenc::audio/libvorbis \ bz2::archivers/bzip2 + +RUN_DEPENDS= ::devel/desktop-file-utils WANTLIB= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes Xi \ Xinerama Xrandr Xrender c expat freetype fontconfig atk-1.0 \ @@ -78,5 +81,9 @@ CONFIGURE_ARGS= --with-flac \ post-install: mv ${PREFIX}/share/aqualung/doc ${PREFIX}/share/doc/aqualung + ${INSTALL_DATA_DIR} ${PREFIX}/share/applications + sed -e 's+%%PREFIX%%+${TRUEPREFIX}+' ${FILESDIR}/aqualung.desktop > \ + ${PREFIX}/share/applications/aqualung.desktop + .include diff --git a/audio/aqualung/files/aqualung.desktop b/audio/aqualung/files/aqualung.desktop new file mode 100644 index 00000000000..63e355c8d3c --- /dev/null +++ b/audio/aqualung/files/aqualung.desktop @@ -0,0 +1,14 @@ +[Desktop Entry] +Version=1.0 +Type=Application +Encoding=UTF-8 +Name=Aqualung +Name[de]=Aqualung +Name[fi]=Aqualung +GenericName=Music Player +GenericName[de]=Musik-Wiedergabe +GenericName[fi]=musiikkisoitin +Icon=%%PREFIX%%/share/aqualung/icon_64.png +Exec=aqualung +Terminal=false +Categories=Application;AudioVideo;Audio;Player; diff --git a/audio/aqualung/pkg/PLIST b/audio/aqualung/pkg/PLIST index d0531def4cd..393570efa4a 100644 --- a/audio/aqualung/pkg/PLIST +++ b/audio/aqualung/pkg/PLIST @@ -1,6 +1,7 @@ -@comment $OpenBSD: PLIST,v 1.1.1.1 2008/02/15 15:52:02 steven Exp $ +@comment $OpenBSD: PLIST,v 1.2 2008/03/15 11:54:10 landry Exp $ bin/aqualung @man man/man1/aqualung.1 +share/applications/aqualung.desktop share/aqualung/ share/aqualung/appearance.png share/aqualung/cdda.png @@ -140,3 +141,5 @@ share/locale/hu/LC_MESSAGES/aqualung.mo share/locale/it/LC_MESSAGES/aqualung.mo share/locale/ru/LC_MESSAGES/aqualung.mo share/locale/uk/LC_MESSAGES/aqualung.mo +@exec %D/bin/update-desktop-database +@unexec %D/bin/update-desktop-database