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

Annotation of pkgsrc/emulators/cannonball/Makefile, Revision 1.6

1.6     ! leot        1: # $NetBSD: Makefile,v 1.5 2020/05/06 14:04:29 adam Exp $
1.1       fox         2:
1.2       fox         3: DISTNAME=      cannonball-0.3.20191023
1.6     ! leot        4: PKGREVISION=   4
1.1       fox         5: CATEGORIES=    emulators
                      6: MASTER_SITES=  ${MASTER_SITE_GITHUB:=djyt/}
1.2       fox         7: GITHUB_TAG=    b6aa525ddd552f96b43b3b3a6f69326a277206bd
1.1       fox         8: EXTRACT_USING= bsdtar
                      9:
                     10: MAINTAINER=    fox@NetBSD.org
                     11: HOMEPAGE=      https://github.com/djyt/cannonball/wiki
                     12: COMMENT=       Enhanced OutRun Engine
                     13: LICENSE=       mame-license
                     14:
                     15: USE_LANGUAGES=         c c++
                     16: USE_TOOLS+=            pkg-config
                     17: USE_CMAKE=             yes
                     18: CONFIGURE_DIRS=                build
                     19: CMAKE_ARG_PATH=                ${WRKSRC}/cmake
                     20: CMAKE_ARGS.Linux+=     -DTARGET=debian
                     21: CMAKE_ARGS.NetBSD+=    -G "Unix Makefiles"
                     22: CMAKE_ARGS.NetBSD+=    -DTARGET=bsd
                     23: CMAKE_ARGS.NetBSD+=    -DBSD_PREFIX_PATH:STRING=${PREFIX}
                     24:
                     25: TOOL_DEPENDS+= icoutils-[0-9]*:../../graphics/icoutils
                     26:
                     27: ICON_SIZES=    16
                     28:
                     29: INSTALLATION_DIRS+=    bin libexec share/applications \
                     30:                        share/cannonball share/cannonball/res \
                     31:                        share/cannonball/conf ${PKGMANDIR}/man6
                     32: .for s in ${ICON_SIZES}
                     33: INSTALLATION_DIRS+=    share/icons/hicolor/${s}x${s}/apps
                     34: .endfor
                     35:
                     36: pre-configure:
                     37: .for s in ${ICON_SIZES}
                     38:        cd ${WRKSRC} && ${PREFIX}/bin/icotool -w ${s} -h ${s} -x -o ${s}.png \
                     39:           res/cannonball.ico
                     40: .endfor
                     41:
                     42:        ${MKDIR} ${WRKSRC}/build
                     43:
                     44: post-build:
                     45:        ${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/cannonball.sh.in > \
                     46:            ${WRKDIR}/cannonball.sh
                     47:
                     48: do-install:
                     49:        ${INSTALL_DATA} ${WRKSRC}/build/res/tilemap.bin \
                     50:            ${DESTDIR}${PREFIX}/share/cannonball/res/tilemap.bin
                     51:        ${INSTALL_DATA} ${WRKSRC}/build/res/tilepatch.bin \
                     52:            ${DESTDIR}${PREFIX}/share/cannonball/res/tilepatch.bin
                     53:        ${INSTALL_DATA} ${WRKSRC}/build/config.xml \
                     54:            ${DESTDIR}${PREFIX}/share/cannonball/conf/config.xml
                     55:        ${INSTALL_DATA} ${FILESDIR}/cannonball.desktop \
                     56:                ${DESTDIR}${PREFIX}/share/applications
                     57:        ${INSTALL_SCRIPT} ${WRKDIR}/cannonball.sh \
                     58:            ${DESTDIR}${PREFIX}/bin/cannonball
                     59:        ${INSTALL_PROGRAM} ${WRKSRC}/build/cannonball \
                     60:            ${DESTDIR}${PREFIX}/libexec
                     61:        ${INSTALL_MAN} ${WRKSRC}/docs/cannonball.6 \
                     62:            ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6
                     63: .for s in ${ICON_SIZES}
                     64:        ${INSTALL_DATA} ${WRKSRC}/${s}.png \
                     65:            ${DESTDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/cannonball.png
                     66: .endfor
                     67:
                     68: .include "../../devel/boost-headers/buildlink3.mk"
                     69: .include "../../devel/boost-libs/buildlink3.mk"
                     70: .include "../../devel/SDL2/buildlink3.mk"
1.2       fox        71: .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
1.1       fox        72: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>