File:  [cvs.NetBSD.org] / pkgsrc / games / astromenace / Makefile
Revision 1.5: download - view: text, annotated - select for diffs
Tue Aug 18 17:57:49 2020 UTC (4 years, 3 months ago) by leot
Branches: MAIN
CVS tags: pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, HEAD
*: revbump for libsndfile

# $NetBSD: Makefile,v 1.5 2020/08/18 17:57:49 leot Exp $

DISTNAME=	astromenace-1.4.1
PKGREVISION=	4
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_GITHUB:=viewizard/}
GITHUB_PROJECT=	astromenace
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	ryoon@NetBSD.org
HOMEPAGE=	https://viewizard.com/
COMMENT=	Hardcore 3D space scroll-shooter
LICENSE=	gnu-gpl-v3 AND cc-by-sa-v4.0 AND ofl-v1.1

USE_CMAKE=	yes
USE_LANGUAGES=	c c++

OBJDIR=			build
CONFIGURE_DIRS=		${OBJDIR}
CMAKE_ARG_PATH=		${WRKSRC}

CMAKE_ARGS+=		-DDATADIR=${PREFIX}/share/astromenace

ICON_SIZES=		64 128

INSTALLATION_DIRS+=	bin
INSTALLATION_DIRS+=	share/applications
INSTALLATION_DIRS+=	share/astromenace
.for s in ${ICON_SIZES}
INSTALLATION_DIRS+=	share/icons/hicolor/${s}x${s}/apps
.endfor

pre-configure:
	${MKDIR} ${WRKSRC}/${OBJDIR}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${OBJDIR}/astromenace \
		${DESTDIR}${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/${OBJDIR}/gamedata.vfs \
		${DESTDIR}${PREFIX}/share/astromenace
	${INSTALL_DATA} ${WRKSRC}/share/astromenace.desktop \
		${DESTDIR}${PREFIX}/share/applications
.for s in ${ICON_SIZES}
	${INSTALL_DATA} ${WRKSRC}/share/astromenace_${s}.png \
		${DESTDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/astromenace.png
.endfor

.include "../../audio/freealut/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.include "../../graphics/glu/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>