aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/openmsx/Makefile
blob: 86aeecaeab11cef2cd20713488b925f3c1f212c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# $FreeBSD$

PORTNAME=   openmsx
PORTVERSION=    0.9.0
CATEGORIES= emulators
MASTER_SITES=   SF

MAINTAINER= johans@FreeBSD.org
COMMENT=    Open source MSX emulator

LIB_DEPENDS=    xml2:${PORTSDIR}/textproc/libxml2 \
        png15:${PORTSDIR}/graphics/png \
        ogg:${PORTSDIR}/audio/libogg \
        vorbis:${PORTSDIR}/audio/libvorbis \
        theora:${PORTSDIR}/multimedia/libtheora

MAKE_ARGS+= INSTALL_BINARY_DIR=${PREFIX}/bin \
        INSTALL_SHARE_DIR=${DATADIR} \
        INSTALL_DOC_DIR=${DOCSDIR} \
        OPENMSX_CXX=${CXX}

MAKEFILE=   GNUmakefile
USE_GL=     glew
USE_GMAKE=  yes
USE_TCL=    85+
USE_SDL=    sdl ttf
USE_PYTHON= 2.5+

PLIST_FILES=    bin/openmsx
PORTDATA=   *
PORTDOCS=   *

.ifdef  NOPORTDATA
IGNORE=     opemsx requires port data, unset NOPORTDATA to install
.endif

.ifdef  NOPORTDOCS
# Use dummy target rather than rewriting makefile
MAKE_ARGS+= INSTALL_DOC_DIR=${WRKSRC}/dummy
.endif

post-patch:
    @${REINPLACE_CMD} -e 's/{TCL_LIB_SPEC}/& $${TCL_LD_FLAGS}/' \
        ${WRKSRC}/build/libraries.py
    @${REINPLACE_CMD} -e '/^SYMLINK_FOR_BINARY/s/true/false/' \
        ${WRKSRC}/build/custom.mk

.include <bsd.port.pre.mk>

.if (${ARCH} == "amd64")
USE_GCC=    4.2+
.endif

.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN=     Does not compile on ia64, powerpc, or sparc64: uses i386-specific asm
.endif

.include <bsd.port.post.mk>