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

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

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

CVSweb <webmaster@jp.NetBSD.org>