[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / emulators / cannonball

File: [cvs.NetBSD.org] / pkgsrc / emulators / cannonball / Makefile (download)

Revision 1.13, Wed Sep 29 19:00:34 2021 UTC (2 months ago) by adam
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +2 -2 lines

revbump for boost-libs

# $NetBSD: Makefile,v 1.13 2021/09/29 19:00:34 adam Exp $

DISTNAME=	cannonball-0.34
PKGREVISION=	2
CATEGORIES=	emulators
MASTER_SITES=	${MASTER_SITE_GITHUB:=djyt/}
GITHUB_TAG=	v${PKGVERSION_NOREV}
EXTRACT_USING=	bsdtar

MAINTAINER=	fox@NetBSD.org
HOMEPAGE=	https://github.com/djyt/cannonball/wiki
COMMENT=	Enhanced OutRun Engine
LICENSE=	mame-license

USE_LANGUAGES=		c c++
USE_TOOLS+=		pkg-config
USE_CMAKE=		yes
CONFIGURE_DIRS=		build
CMAKE_ARG_PATH=		${WRKSRC}/cmake
CMAKE_ARGS+=		-DTARGET=linux.cmake

TOOL_DEPENDS+=	icoutils-[0-9]*:../../graphics/icoutils

ICON_SIZES=	16

INSTALLATION_DIRS+=	bin libexec share/applications \
			share/cannonball share/cannonball/res \
			share/cannonball/conf ${PKGMANDIR}/man6
.for s in ${ICON_SIZES}
INSTALLATION_DIRS+=	share/icons/hicolor/${s}x${s}/apps
.endfor

pre-configure:
.for s in ${ICON_SIZES}
	cd ${WRKSRC} && ${PREFIX}/bin/icotool -w ${s} -h ${s} -x -o ${s}.png \
	   res/cannonball.ico
.endfor

	${MKDIR} ${WRKSRC}/build

post-build:
	${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/cannonball.sh.in > \
	    ${WRKDIR}/cannonball.sh

do-install:
	${INSTALL_DATA} ${WRKSRC}/build/res/tilemap.bin \
	    ${DESTDIR}${PREFIX}/share/cannonball/res/tilemap.bin
	${INSTALL_DATA} ${WRKSRC}/build/res/tilepatch.bin \
	    ${DESTDIR}${PREFIX}/share/cannonball/res/tilepatch.bin
	${INSTALL_DATA} ${WRKSRC}/build/config.xml \
	    ${DESTDIR}${PREFIX}/share/cannonball/conf/config.xml
	${INSTALL_DATA} ${FILESDIR}/cannonball.desktop \
		${DESTDIR}${PREFIX}/share/applications
	${INSTALL_SCRIPT} ${WRKDIR}/cannonball.sh \
	    ${DESTDIR}${PREFIX}/bin/cannonball
	${INSTALL_PROGRAM} ${WRKSRC}/build/cannonball \
	    ${DESTDIR}${PREFIX}/libexec
	${INSTALL_MAN} ${WRKSRC}/docs/cannonball.6 \
	    ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6
.for s in ${ICON_SIZES}
	${INSTALL_DATA} ${WRKSRC}/${s}.png \
	    ${DESTDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/cannonball.png
.endfor

.include "../../devel/boost-headers/buildlink3.mk"
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.if ${OPSYS} != "Darwin"
.  include "../../graphics/glu/buildlink3.mk"
.  include "../../graphics/MesaLib/buildlink3.mk"
.endif
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"