2021-04-06 12:49:29 +02:00
|
|
|
# $NetBSD: Makefile,v 1.84 2021/04/06 10:49:29 fox Exp $
|
2018-12-01 19:20:09 +01:00
|
|
|
|
2021-04-06 12:49:29 +02:00
|
|
|
DISTNAME= fasttracker2-1.46
|
2018-12-01 19:20:09 +01:00
|
|
|
CATEGORIES= audio
|
2019-12-20 03:26:40 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=8bitbubsy/}
|
2020-01-25 18:16:23 +01:00
|
|
|
GITHUB_PROJECT= ft2-clone
|
|
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
2019-12-20 03:26:40 +01:00
|
|
|
EXTRACT_USING= bsdtar
|
2018-12-01 19:20:09 +01:00
|
|
|
|
|
|
|
MAINTAINER= fox@NetBSD.org
|
|
|
|
HOMEPAGE= https://16-bits.org/
|
|
|
|
COMMENT= Portable Fasttracker II clone in C using SDL 2
|
|
|
|
LICENSE= modified-bsd AND cc-by-nc-sa-v4.0-license
|
|
|
|
|
2019-08-08 01:44:32 +02:00
|
|
|
USE_LANGUAGES= c99 c++
|
|
|
|
USE_CMAKE= yes
|
|
|
|
|
2019-11-10 12:32:58 +01:00
|
|
|
LDFLAGS+= ${BUILDLINK_LDADD.iconv}
|
|
|
|
|
2019-09-21 14:23:43 +02:00
|
|
|
TOOL_DEPENDS+= icoutils-[0-9]*:../../graphics/icoutils
|
|
|
|
|
|
|
|
ICON_SIZES= 16 24 32 48 64 128 256
|
|
|
|
|
|
|
|
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
|
2018-12-01 19:20:09 +01:00
|
|
|
|
2019-09-21 14:23:43 +02:00
|
|
|
pre-configure:
|
|
|
|
.for s in ${ICON_SIZES}
|
2019-09-30 14:35:24 +02:00
|
|
|
cd ${WRKSRC} && ${PREFIX}/bin/icotool -w ${s} -h ${s} -x -o ${s}.png \
|
2019-09-21 14:23:43 +02:00
|
|
|
src/gfxdata/icon/ft2-clone.ico
|
|
|
|
.endfor
|
|
|
|
|
2018-12-01 19:20:09 +01:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/release/other/ft2-clone \
|
2019-10-03 03:44:00 +02:00
|
|
|
${DESTDIR}${PREFIX}/bin/${PKGBASE}
|
2019-09-21 14:23:43 +02:00
|
|
|
${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
|
2018-12-01 19:20:09 +01:00
|
|
|
|
2019-08-08 01:44:32 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} != "Linux"
|
|
|
|
BUILDLINK_TRANSFORM+= rm:-lasound
|
|
|
|
.else
|
|
|
|
. include "../../audio/alsa-lib/buildlink3.mk"
|
|
|
|
.endif
|
2019-07-30 02:06:50 +02:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
2019-09-21 14:23:43 +02:00
|
|
|
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
|
2018-12-01 19:20:09 +01:00
|
|
|
.include "../../devel/SDL2/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|