aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/mednafen/Makefile
blob: 1753f0587cf85653aac84e6c786bc79f882003f3 (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
59
60
61
62
# New ports collection makefile for:    mednafen
# Date created:     2006-02-28
# Whom:         Charlie & <root@bsd.org.pe>
#
# $FreeBSD$
#

PORTNAME=   mednafen
PORTVERSION=    0.6.5
CATEGORIES= emulators games
MASTER_SITES=   http://mednafen.com/releases/files/

MAINTAINER= acm@FreeBSD.org
COMMENT=    Portable multi-system emulator

LIB_DEPENDS=    cdio.7:${PORTSDIR}/sysutils/libcdio \
        sndfile.1:${PORTSDIR}/audio/libsndfile \
        vorbis.3:${PORTSDIR}/audio/libvorbis

USE_BZIP2=  yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
USE_SDL=    sdl net
CPPFLAGS+=  -I${LOCALBASE}/include -I${X11BASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD}
CONFIGURE_TARGET=   --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
WRKSRC= ${WRKDIR}/${PORTNAME}
SUB_FILES=  pkg-message

OPTIONS=    NLS "Native Language Support"   on

.include <bsd.port.pre.mk>

.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=    --disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
FLAG_NLS=   true
.endif

.if ${ARCH}==sparc64
BROKEN=     does not compile on ${ARCH} due to internal compiler error
.endif

.if ${OSVERSION} < 503000
IGNORE=     needs round(3), which appears in 5.3 or later
.endif

pre-configure:
    @${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' ${WRKSRC}/configure

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${WRKSRC}/Documentation/mednafen.html ${DOCSDIR}
.endif
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>