7 CATEGORIES= emulators games
8 MASTER_SITES= SF/${PORTNAME}/Mednafen/${PORTVERSION}
10 MAINTAINER= acm@FreeBSD.org
11 COMMENT= Portable multi-system emulator
13 LICENSE= GPLv2 # or later
14 LICENSE_FILE= ${WRKSRC}/COPYING
16 LIB_DEPENDS= libcdio.so:${PORTSDIR}/sysutils/libcdio \
17 libsndfile.so:${PORTSDIR}/audio/libsndfile \
18 libvorbis.so:${PORTSDIR}/audio/libvorbis
23 CPPFLAGS+= -I${LOCALBASE}/include
24 LDFLAGS+= -L${LOCALBASE}/lib
25 WRKSRC= ${WRKDIR}/${PORTNAME}
26 SUB_FILES= pkg-message
28 CONFIGURE_ARGS+=--disable-alsa --disable-alsatest \
29 --with-sdl-prefix=${LOCALBASE}
31 USES= cpe iconv pkgconfig:build tar:bzip2
32 CPE_VENDOR= david_shadoff
34 OPTIONS_DEFINE= NLS DOCS JACK
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
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
56 NLS_CONFIGURE_ENABLE=nls
58 JACK_LIB_DEPENDS=libjack.so:${PORTSDIR}/audio/jack
59 JACK_CONFIGURE_ENABLE=jack
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
74 BROKEN_sparc64= does not compile due to internal compiler error
77 @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
78 -e 's|/usr/X11R6|${LOCALBASE}|g' \
80 @${REINPLACE_CMD} -e 's|NetBSD|FreeBSD|' \
81 ${WRKSRC}/include/trio/triodef.h
84 @${MKDIR} ${STAGEDIR}${DOCSDIR}
85 @${INSTALL_DATA} ${WRKSRC}/Documentation/mednafen.html ${STAGEDIR}${DOCSDIR}
87 .include <bsd.port.mk>