[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.9, Fri Mar 26 08:53:07 2021 UTC (16 months, 2 weeks ago) by fox
Branch: MAIN
CVS Tags: pkgsrc-2021Q1-base, pkgsrc-2021Q1
Changes since 1.8: +2 -3 lines

emulators/cannonball: Updates to 0.32

Changes since 0.31:

Controller Improvements & Rumble Support

This release focuses on Controller Support & Improvements.

Please replace your old config.xml file when upgrading to this release.

  * [Controllers] Basic rumble support can now be enabled from the CONTROLS
    menu. The strength can be adjusted. The code that controls the rumble is
    identical to that of the upright arcade machine motor shaker. The option
    will only show in the menu if your controller is supported.
  * [Controllers] Auto-detection and assignment of controller buttons and axis
    should be much improved. I will update the manual to call out the default
    controls in due course. (Right trigger = accelerate, Left trigger = brake,
    Start = Start, Back = Menu, A = Gear Change, X = Change View, Y = Coin).
    These can be redefined as desired.
  * [Controllers] D-Pad can be used in menus.
  * [Menus] Gamepad/Joystick settings has its own menu.
  * [Menus] Ensure that 'A' button on controllers can be used to select items.
    Analog accelerate is now only used when run via original arcade cabs as
    it's not optimal.
  * [Rom Loader] Sped up CRC32 based loading by using a Hashmap. It was
    reportedly slow when used over a network.
  * [Rom Loader] It is possible to switch back to the old filename loading
    system via a setting in config.xml
  * [Config] It is now possible to change and configure the location of the
    'res' directory.

# $NetBSD: Makefile,v 1.9 2021/03/26 08:53:07 fox Exp $

DISTNAME=	cannonball-0.32
CATEGORIES=	emulators
MASTER_SITES=	${MASTER_SITE_GITHUB:=djyt/}
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"