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

Annotation of pkgsrc/emulators/openmsx/Makefile, Revision 1.51

1.51    ! maya        1: # $NetBSD: Makefile,v 1.50 2019/04/25 07:32:53 maya Exp $
1.1       xtraeme     2:
1.48      ryoon       3: DISTNAME=              openmsx-0.14.0
1.50      maya        4: PKGREVISION=           1
1.1       xtraeme     5: CATEGORIES=            emulators
1.48      ryoon       6: MASTER_SITES=          ${MASTER_SITE_GITHUB:=openMSX/}
                      7: GITHUB_PROJECT=                openMSX
                      8: GITHUB_RELEASE=                RELEASE_0_14_0
1.1       xtraeme     9:
1.20      wiz        10: MAINTAINER=            pkgsrc-users@NetBSD.org
1.46      ryoon      11: HOMEPAGE=              http://openmsx.org/
1.1       xtraeme    12: COMMENT=               MSX emulator that aims for perfection
1.33      marino     13: LICENSE=               gnu-gpl-v2
1.1       xtraeme    14:
1.8       jlam       15: USE_TOOLS+=            gmake
1.49      joerg      16: USE_LANGUAGES+=                c++03
1.1       xtraeme    17: HAS_CONFIGURE=         yes
                     18:
1.18      obache     19: MAKE_FILE=             GNUmakefile
1.33      marino     20: MAKE_ENV+=             OPENMSX_FLAVOUR=opt
                     21: CONFIGURE_ENV+=        OPENMSX_FLAVOUR=opt
                     22: CONFIGURE_ENV+=        LOCALBASE=${PREFIX}
                     23: INSTALLATION_DIRS+=    bin
                     24: INSTALL_MAKE_FLAGS+=   SYMLINK_FOR_BINARY=false
                     25: INSTALL_MAKE_FLAGS+=   INSTALL_BASE=${PREFIX}/openmsx
                     26: MAKE_ENV+=             OPENMSX_INSTALL=${PREFIX}/openmsx
                     27:
1.51    ! maya       28: PYTHON_VERSIONS_INCOMPATIBLE=   36 37 # not yet ported as of 0.9.0
1.40      wiz        29:
1.48      ryoon      30: SUBST_CLASSES+=                        bswap
                     31: SUBST_STAGE.bswap=             pre-configure
                     32: SUBST_MESSAGE.bswap=           Do not conflict bswap functions.
                     33: SUBST_FILES.bswap=             src/utils/endian.hh
                     34: SUBST_FILES.bswap+=            src/utils/tiger.cc
                     35: SUBST_SED.bswap=               -e 's, bswap, openmsx_bswap,g'
                     36: SUBST_SED.bswap+=              -e 's,::bswap,::openmsx_bswap,g'
                     37:
1.33      marino     38: .include "../../mk/bsd.prefs.mk"
                     39:
                     40: .if "${PKGSRC_COMPILER}" == "clang"
                     41: # As a result of predefining CXX, .wrapper/bin/clang++ is automatically
                     42: # hardlinked to c++, g++, which is exactly what we what!
1.34      marino     43: CXX=clang++
1.33      marino     44: .elif "${PKGSRC_COMPILER}" == "gcc"
1.34      marino     45: CXX=g++
1.33      marino     46: .endif
1.1       xtraeme    47:
                     48: post-extract:
1.33      marino     49:        ${CP} ${WRKSRC}/build/platform-freebsd.mk \
                     50:              ${WRKSRC}/build/platform-dragonfly.mk
1.1       xtraeme    51:
1.3       xtraeme    52: post-build:
1.26      wiz        53:        (                                                       \
1.3       xtraeme    54:        ${ECHO} "#!${SH}";                                      \
                     55:        ${ECHO} 'exec ${PREFIX}/openmsx/bin/openmsx $$@'        \
1.2       xtraeme    56:        ) > ${WRKSRC}/openmsx.sh
1.3       xtraeme    57:
                     58: post-install:
1.23      joerg      59:        ${INSTALL_SCRIPT} ${WRKSRC}/openmsx.sh ${DESTDIR}${PREFIX}/bin/openmsx
1.33      marino     60:        @${ECHO_MSG} "======================================================================"
                     61:        @${ECHO_MSG} "  Don't forget to have sound driver loaded before running openMSX."
                     62:        @${ECHO_MSG} "  Otherwise, aRts will throw an exception when launching OpenMSX or"
                     63:        @${ECHO_MSG} "  fail to create a directory called '.mcoprc' in the home directory."
                     64:        @${ECHO_MSG} "  However, you may execute OpenMSX without sound support like this:"
                     65:        @${ECHO_MSG} "  # env SDL_AUDIODRIVER=dummy openmsx <args>"
                     66:        @${ECHO_MSG} "======================================================================"
1.2       xtraeme    67:
1.33      marino     68: .include "../../audio/libao/buildlink3.mk"
1.1       xtraeme    69: .include "../../devel/SDL/buildlink3.mk"
1.33      marino     70: .include "../../devel/SDL_ttf/buildlink3.mk"
1.1       xtraeme    71: .include "../../devel/zlib/buildlink3.mk"
1.33      marino     72: .include "../../graphics/glew/buildlink3.mk"
1.1       xtraeme    73: .include "../../graphics/SDL_image/buildlink3.mk"
                     74: .include "../../graphics/png/buildlink3.mk"
1.33      marino     75: .include "../../lang/python/application.mk"
1.1       xtraeme    76: .include "../../lang/tcl/buildlink3.mk"
1.33      marino     77: .include "../../multimedia/libogg/buildlink3.mk"
                     78: .include "../../multimedia/libtheora/buildlink3.mk"
1.1       xtraeme    79: .include "../../textproc/libxml2/buildlink3.mk"
                     80: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>