pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/fasttracker2 fasttracker2: Install hicolor icons...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f79f1214ec2a
branches:  trunk
changeset: 340052:f79f1214ec2a
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Sep 21 12:23:43 2019 +0000

description:
fasttracker2: Install hicolor icons and menu entry

Bump PKGREVISION

diffstat:

 audio/fasttracker2/Makefile                       |  32 +++++++++++++++++++---
 audio/fasttracker2/PLIST                          |  12 +++++++-
 audio/fasttracker2/files/fasttracker2.appdata.xml |  21 +++++++++++++++
 audio/fasttracker2/files/fasttracker2.desktop     |  11 +++++++
 4 files changed, 69 insertions(+), 7 deletions(-)

diffs (126 lines):

diff -r d66f72997e67 -r f79f1214ec2a audio/fasttracker2/Makefile
--- a/audio/fasttracker2/Makefile       Sat Sep 21 12:14:28 2019 +0000
+++ b/audio/fasttracker2/Makefile       Sat Sep 21 12:23:43 2019 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.39 2019/09/05 13:19:08 fox Exp $
+# $NetBSD: Makefile,v 1.40 2019/09/21 12:23:43 nia Exp $
 
 DISTNAME=      ft2clone-${DISTVERSION}-code
 PKGNAME=       fasttracker2-${DISTVERSION:C/b/2./}
+PKGREVISION=   1
 DISTVERSION=   b168
 CATEGORIES=    audio
 MASTER_SITES=  https://16-bits.org/
@@ -14,12 +15,20 @@
 
 WRKSRC=                ${WRKDIR}/ft2-clone-code
 USE_LANGUAGES= c99 c++
+USE_CMAKE=     yes
 
-USE_CMAKE=     yes
+TOOL_DEPENDS+= icoutils-[0-9]*:../../graphics/icoutils
+
+ICON_SIZES=    16 24 32 48 64 128 256
 
 LIBS.SunOS+=   -liconv
 
-INSTALLATION_DIRS+=    bin share/pixmaps
+INSTALLATION_DIRS+=    bin
+INSTALLATION_DIRS+=    share/applications
+INSTALLATION_DIRS+=    share/appdata
+.for s in ${ICON_SIZES}
+INSTALLATION_DIRS+=    share/icons/hicolor/${s}x${s}/apps
+.endfor
 
 SUBST_CLASSES+=                d2u
 SUBST_MESSAGE.d2u=     Converting CRLF to LF.
@@ -27,11 +36,23 @@
 SUBST_FILES.d2u=       CMakeLists.txt src/*.[ch]
 SUBST_FILTER_CMD.d2u=  ${TR} -d '\r'
 
+pre-configure:
+.for s in ${ICON_SIZES}
+       cd ${WRKSRC} && icotool -w ${s} -h ${s} -x -o ${s}.png \
+           src/gfxdata/icon/ft2-clone.ico
+.endfor
+
 do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/release/other/ft2-clone \
                ${DESTDIR}${PREFIX}/bin
-       ${INSTALL_DATA} ${WRKSRC}/src/gfxdata/icon/ft2-clone.ico \
-               ${DESTDIR}${PREFIX}/share/pixmaps
+       ${INSTALL_DATA} ${FILESDIR}/fasttracker2.desktop \
+               ${DESTDIR}${PREFIX}/share/applications
+       ${INSTALL_DATA} ${FILESDIR}/fasttracker2.appdata.xml \
+               ${DESTDIR}${PREFIX}/share/appdata
+.for s in ${ICON_SIZES}
+       ${INSTALL_DATA} ${WRKSRC}/${s}.png \
+           ${DESTDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/fasttracker2.png
+.endfor
 
 .include "../../mk/bsd.prefs.mk"
 .if ${OPSYS} != "Linux"
@@ -40,5 +61,6 @@
 .  include "../../audio/alsa-lib/buildlink3.mk"
 .endif
 .include "../../converters/libiconv/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
 .include "../../devel/SDL2/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r d66f72997e67 -r f79f1214ec2a audio/fasttracker2/PLIST
--- a/audio/fasttracker2/PLIST  Sat Sep 21 12:14:28 2019 +0000
+++ b/audio/fasttracker2/PLIST  Sat Sep 21 12:23:43 2019 +0000
@@ -1,3 +1,11 @@
-@comment $NetBSD: PLIST,v 1.1 2018/12/01 18:20:09 fox Exp $
+@comment $NetBSD: PLIST,v 1.2 2019/09/21 12:23:43 nia Exp $
 bin/ft2-clone
-share/pixmaps/ft2-clone.ico
+share/appdata/fasttracker2.appdata.xml
+share/applications/fasttracker2.desktop
+share/icons/hicolor/128x128/apps/fasttracker2.png
+share/icons/hicolor/16x16/apps/fasttracker2.png
+share/icons/hicolor/24x24/apps/fasttracker2.png
+share/icons/hicolor/256x256/apps/fasttracker2.png
+share/icons/hicolor/32x32/apps/fasttracker2.png
+share/icons/hicolor/48x48/apps/fasttracker2.png
+share/icons/hicolor/64x64/apps/fasttracker2.png
diff -r d66f72997e67 -r f79f1214ec2a audio/fasttracker2/files/fasttracker2.appdata.xml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/fasttracker2/files/fasttracker2.appdata.xml Sat Sep 21 12:23:43 2019 +0000
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop-application">
+       <id>fasttracker2</id>
+       <metadata_license>BSD-3-clause</metadata_license>
+       <project_license>BSD-3-clause</project_license>
+       <name>Fasttracker II</name>
+       <summary>Fasttracker II clone</summary>
+       <description>
+               <p>Multi-platform clone of the classic music making software  FastTracker II.</p>
+       </description>
+       <launchable type="desktop-id">fasttracker2.desktop</launchable>
+       <url type="homepage">https://16-bits.org/ft2.php</url>
+       <screenshots>
+               <screenshot type="default">
+                       <image>https://upload.wikimedia.org/wikipedia/commons/1/1d/Fasttracker_II_clone_screenshot.png</image>
+               </screenshot>
+       </screenshots>
+       <provides>
+               <id>fasttracker2.desktop</id>
+       </provides>
+</component>
diff -r d66f72997e67 -r f79f1214ec2a audio/fasttracker2/files/fasttracker2.desktop
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/fasttracker2/files/fasttracker2.desktop     Sat Sep 21 12:23:43 2019 +0000
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Fasttracker II
+Comment=Fasttracker II clone for modern computers
+Comment[fr]=Clone de Fasttracker II pour les ordinateurs modernes
+Exec=ft2-clone %f
+Icon=fasttracker2
+Terminal=false
+Type=Application
+Categories=AudioVideo;AudioVideoEditing;
+Keywords=tracker;music;
+MimeType=audio/xm;audio/mod;audio/s3m;



Home | Main Index | Thread Index | Old Index