Update databases/rocksdb to version 3.11.2
[dports.git] / emulators / mednafen / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       mednafen
4 PORTVERSION=    0.9.33.2
5 PORTREVISION=   4
6 PORTEPOCH=      1
7 CATEGORIES=     emulators games
8 MASTER_SITES=   SF/${PORTNAME}/Mednafen/${PORTVERSION}
9
10 MAINTAINER=     acm@FreeBSD.org
11 COMMENT=        Portable multi-system emulator
12
13 LICENSE=        GPLv2 # or later
14 LICENSE_FILE=   ${WRKSRC}/COPYING
15
16 LIB_DEPENDS=    libcdio.so:${PORTSDIR}/sysutils/libcdio \
17                 libsndfile.so:${PORTSDIR}/audio/libsndfile \
18                 libvorbis.so:${PORTSDIR}/audio/libvorbis
19
20 GNU_CONFIGURE=  yes
21 USE_SDL=        sdl net
22 USE_GL=         gl glu
23 CPPFLAGS+=      -I${LOCALBASE}/include
24 LDFLAGS+=       -L${LOCALBASE}/lib
25 WRKSRC= ${WRKDIR}/${PORTNAME}
26 SUB_FILES=      pkg-message
27
28 CONFIGURE_ARGS+=--disable-alsa --disable-alsatest \
29                 --with-sdl-prefix=${LOCALBASE}
30
31 USES=           cpe iconv pkgconfig:build tar:bzip2
32 CPE_VENDOR=     david_shadoff
33
34 OPTIONS_DEFINE= NLS DOCS JACK
35 OPTIONS_MULTI=  EMU
36 OPTIONS_MULTI_EMU=      GB GBA LINX MD NES NGP PCE PCFX PSX SMS SWAN VB
37 OPTIONS_DEFAULT=        GB GBA LINX MD NES NGP PCE PCFX PSX SMS SWAN VB
38
39 GB_DESC=        build with GameBoy emulation
40 GBA_DESC=       build with GameBoy Advance emulation
41 LINX_DESC=      build with Atari Lynx emulation
42 MD_DESC=        build with Sega Genesis/MegaDrive emulation
43 NES_DESC=       build with Nintendo Entertainment System emulation
44 NGP_DESC=       build with Neo Geo Pocket emulation
45 PCE_DESC=       build with PC Engine (TurboGrafx 16) emulation
46 PCFX_DESC=      build with PC-FX emulation
47 PSX_DESC=       build with Playstation emulation
48 SMS_DESC=       build with SMS+GG emulation
49 SWAN_DESC=      build with WonderSWan emulation
50 VB_DESC=        build with Virtual Boy emulation
51 JACK_DESC=      support the JACK audio API
52
53 OPTIONS_SUB=    yes
54
55 NLS_USES=       gettext
56 NLS_CONFIGURE_ENABLE=nls
57
58 JACK_LIB_DEPENDS=libjack.so:${PORTSDIR}/audio/jack
59 JACK_CONFIGURE_ENABLE=jack
60
61 GB_CONFIGURE_ENABLE=gb
62 GBA_CONFIGURE_ENABLE=gba
63 LINX_CONFIGURE_ENABLE=lynx
64 MD_CONFIGURE_ENABLE=md
65 NES_CONFIGURE_ENABLE=nes
66 NGP_CONFIGURE_ENABLE=ngp
67 PCE_CONFIGURE_ENABLE=pce
68 PCFX_CONFIGURE_ENABLE=pcfx
69 PSX_CONFIGURE_ENABLE=psx
70 SMS_CONFIGURE_ENABLE=sms
71 SWAN_CONFIGURE_ENABLE=wswan
72 VB_CONFIGURE_ENABLE=vb
73
74 BROKEN_sparc64= does not compile due to internal compiler error
75
76 pre-configure:
77         @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
78                 -e 's|/usr/X11R6|${LOCALBASE}|g' \
79                 ${WRKSRC}/configure
80         @${REINPLACE_CMD} -e 's|NetBSD|FreeBSD|' \
81                 ${WRKSRC}/include/trio/triodef.h
82
83 post-install:
84         @${MKDIR} ${STAGEDIR}${DOCSDIR}
85         @${INSTALL_DATA} ${WRKSRC}/Documentation/mednafen.html ${STAGEDIR}${DOCSDIR}
86
87 .include <bsd.port.mk>