aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/desmume/Makefile
blob: c6ad0de3793e266a5fce3653c7e357bfd70e3709 (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
# New ports collection makefile for:    desmume
# Date created:             Wed  7 Feb 2007 21:46:15 CET
# Whom:                 Stefan Sperling <stsp@stsp.in-berlin.de>
#
# $FreeBSD$
#

PORTNAME=   desmume
PORTVERSION=    0.9.8
CATEGORIES= emulators
MASTER_SITES=   SF

MAINTAINER= llc2w@virginia.edu
COMMENT=    Nintendo DS emulator

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

LIB_DEPENDS=    gtkglext-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglext

USE_GL=     gl
USE_SDL=    sdl
USE_GMAKE=  yes
USE_GNOME=  gtk20 libglade2
USES=       gettext
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  GMSGFMT=msgfmt DATADIRNAME=share

USE_AUTOTOOLS=  aclocal autoconf
ACLOCAL_ARGS=
AUTOCONF_ARGS=

CFLAGS+=    -I${LOCALBASE}/include -L${LOCALBASE}/lib -DGTKGLEXT_AVAILABLE \
        -DHAVE_LIBGDKGLEXT_X11_1_0 -DHAVE_GL_GL_H -DHAVE_GL_GLU_H
CXXFLAGS+=  ${CFLAGS}

MAN1=       desmume-cli.1 \
        desmume-glade.1 \
        desmume.1

.include <bsd.port.pre.mk>

.if ${ARCH} == "ia64"
BROKEN=     Does not compile on ia64
.endif

post-patch:
# FreeBSD 7.x is missing strnlen(), adjusting this enables a builtin version of strnlen()
.if ${OSVERSION} < 800000
    @${REINPLACE_CMD} -e 's|#ifdef __APPLE__|#if 1|g; \
            /AvailabilityMacros\.h/d' \
        ${WRKSRC}/src/utils/libfat/directory.cpp
.endif

.include <bsd.port.post.mk>