fasttracker2: Install hicolor icons and menu entry
Bump PKGREVISION
This commit is contained in:
parent
2c128d9ea2
commit
4ec4f2909f
4 changed files with 69 additions and 7 deletions
|
@ -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 @@ LICENSE= modified-bsd AND cc-by-nc-sa-v4.0-license
|
|||
|
||||
WRKSRC= ${WRKDIR}/ft2-clone-code
|
||||
USE_LANGUAGES= c99 c++
|
||||
|
||||
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_STAGE.d2u= post-extract
|
|||
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 @@ BUILDLINK_TRANSFORM+= rm:-lasound
|
|||
. 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"
|
||||
|
|
|
@ -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
|
||||
|
|
21
audio/fasttracker2/files/fasttracker2.appdata.xml
Normal file
21
audio/fasttracker2/files/fasttracker2.appdata.xml
Normal file
|
@ -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>
|
11
audio/fasttracker2/files/fasttracker2.desktop
Normal file
11
audio/fasttracker2/files/fasttracker2.desktop
Normal file
|
@ -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;
|
Loading…
Reference in a new issue