pkgsrc/audio/milkytracker/Makefile
2020-08-18 17:57:24 +00:00

48 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.16 2020/08/18 17:57:37 leot Exp $
DISTNAME= milkytracker-1.02.00
PKGREVISION= 3
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_GITHUB:=milkytracker/}
GITHUB_PROJECT= MilkyTracker
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= nia@NetBSD.org
HOMEPAGE= https://milkytracker.titandemo.org/
COMMENT= Music tracker inspired by Fast Tracker 2
LICENSE= gnu-gpl-v3
USE_CMAKE= yes
USE_TOOLS+= pkg-config
USE_LANGUAGES= c c++03
# Resolve inconsistent PLIST on diferent platforms.
# As in docs/CMakeLists.txt, on "BSD", "share/doc/milkytracker" is always used
# Otherwise, "share/doc/MilkyTracker" is used.
# This is silly.
CMAKE_ARGS+= -DCMAKE_INSTALL_DOCDIR="share/doc/milkytracker"
INSTALLATION_DIRS+= share/appdata
INSTALLATION_DIRS+= share/applications
INSTALLATION_DIRS+= share/pixmaps
post-install:
${INSTALL_DATA} ${WRKSRC}/resources/pictures/carton.png \
${DESTDIR}${PREFIX}/share/pixmaps/milkytracker.png
${INSTALL_DATA} ${WRKSRC}/resources/milkytracker.appdata \
${DESTDIR}${PREFIX}/share/appdata/milkytracker.appdata.xml
${INSTALL_DATA} ${WRKSRC}/resources/milkytracker.desktop \
${DESTDIR}${PREFIX}/share/applications
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} != "Darwin"
.include "../../archivers/lhasa/buildlink3.mk"
.include "../../archivers/zziplib/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.endif
.if ${OPSYS} == "Linux"
.include "../../audio/alsa-lib/buildlink3.mk"
.include "../../audio/jack/buildlink3.mk"
.endif
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"