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

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

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

CVSweb <webmaster@jp.NetBSD.org>