|
Lines 1-8
Link Here
|
| 1 |
# $FreeBSD: emulators/mednafen/Makefile 316624 2013-04-26 16:39:14Z bapt $ |
1 |
# $FreeBSD: emulators/mednafen/Makefile 316624 2013-04-26 16:39:14Z bapt $ |
| 2 |
|
2 |
|
| 3 |
PORTNAME= mednafen |
3 |
PORTNAME= mednafen |
| 4 |
PORTVERSION= 0.8.B |
4 |
PORTVERSION= 0.8.D.3 |
| 5 |
PORTREVISION= 8 |
|
|
| 6 |
PORTEPOCH= 1 |
5 |
PORTEPOCH= 1 |
| 7 |
CATEGORIES= emulators games |
6 |
CATEGORIES= emulators games |
| 8 |
MASTER_SITES= SF/${PORTNAME}/Mednafen/${PORTVERSION} |
7 |
MASTER_SITES= SF/${PORTNAME}/Mednafen/${PORTVERSION} |
|
Lines 10-51
Link Here
|
| 10 |
MAINTAINER= acm@FreeBSD.org |
9 |
MAINTAINER= acm@FreeBSD.org |
| 11 |
COMMENT= Portable multi-system emulator |
10 |
COMMENT= Portable multi-system emulator |
| 12 |
|
11 |
|
| 13 |
LIB_DEPENDS= cdio.13:${PORTSDIR}/sysutils/libcdio \ |
12 |
LIB_DEPENDS= cdio:${PORTSDIR}/sysutils/libcdio \ |
| 14 |
sndfile.1:${PORTSDIR}/audio/libsndfile \ |
13 |
sndfile:${PORTSDIR}/audio/libsndfile \ |
| 15 |
vorbis.4:${PORTSDIR}/audio/libvorbis |
14 |
vorbis:${PORTSDIR}/audio/libvorbis |
| 16 |
|
15 |
|
| 17 |
USE_BZIP2= yes |
16 |
USE_BZIP2= yes |
| 18 |
USE_GMAKE= yes |
|
|
| 19 |
GNU_CONFIGURE= yes |
17 |
GNU_CONFIGURE= yes |
| 20 |
USE_SDL= sdl net |
18 |
USE_SDL= sdl net |
| 21 |
USE_XORG= x11 |
19 |
USE_GL= gl glu |
| 22 |
USE_GL= glut |
|
|
| 23 |
CPPFLAGS+= -I${LOCALBASE}/include |
20 |
CPPFLAGS+= -I${LOCALBASE}/include |
| 24 |
LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD} |
21 |
LDFLAGS+= -L${LOCALBASE}/lib |
| 25 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
22 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
| 26 |
SUB_FILES= pkg-message |
23 |
SUB_FILES= pkg-message |
| 27 |
|
24 |
|
| 28 |
OPTIONS_DEFINE= NLS DOCS |
25 |
CONFIGURE_ARGS+= --disable-alsa --disable-alsatest \ |
|
|
26 |
--with-sdl-prefix=${LOCALBASE} |
| 27 |
USES+= iconv pkgconfig:build |
| 28 |
|
| 29 |
MAKE_JOBS_SAFE= yes |
| 30 |
|
| 31 |
OPTIONS_DEFINE= NLS DOCS JACK |
| 32 |
OPTIONS_MULTI= EMU |
| 33 |
|
| 34 |
OPTIONS_MULTI_EMU= GB GBA LINX NES NGP PCE PCFX SMS SWAN |
| 35 |
|
| 36 |
OPTIONS_DEFAULT= GB GBA LINX NES NGP PCE PCFX SMS SWAN |
| 37 |
|
| 38 |
GB_DESC= build with GameBoy emulation |
| 39 |
GBA_DESC= build with GameBoy Advance emulation |
| 40 |
LINX_DESC= build with Atari Lynx emulation |
| 41 |
NES_DESC= build with Nintendo Entertainment System emulation |
| 42 |
NGP_DESC= build with Neo Geo Pocket emulation |
| 43 |
PCE_DESC= build with PC Engine(TurboGrafx 16) emulation |
| 44 |
PCFX_DESC= build with PC-FX emulation |
| 45 |
SMS_DESC= build with SMS+GG emulation |
| 46 |
SWAN_DESC= build with WonderSwan emulation |
| 47 |
JACK_DESC= support the JACK audio API |
| 29 |
|
48 |
|
| 30 |
.include <bsd.port.options.mk> |
49 |
.include <bsd.port.options.mk> |
| 31 |
|
50 |
|
| 32 |
.if ${PORT_OPTIONS:MNLS} |
51 |
.if ${PORT_OPTIONS:MNLS} |
| 33 |
USES+= gettext |
52 |
USES+= gettext |
| 34 |
PLIST_SUB+= NLS="" |
53 |
PLIST_SUB+= NLS="" |
| 35 |
FLAG_NLS= true |
54 |
CONFIGURE_ARGS+= --enable-nls |
| 36 |
.else |
55 |
.else |
| 37 |
CONFIGURE_ARGS+= --disable-nls |
56 |
CONFIGURE_ARGS+= --disable-nls |
| 38 |
PLIST_SUB+= NLS="@comment " |
57 |
PLIST_SUB+= NLS="@comment " |
| 39 |
.endif |
58 |
.endif |
| 40 |
|
59 |
|
|
|
60 |
.if ${PORT_OPTIONS:MJACK} |
| 61 |
CONFIGURE_ARGS+= --enable-jack |
| 62 |
LIB_DEPENDS+= jack:${PORTSDIR}/audio/jack |
| 63 |
.else |
| 64 |
CONFIGURE_ARGS+= --disable-jack |
| 65 |
.endif |
| 66 |
|
| 67 |
.if ${PORT_OPTIONS:MGB} |
| 68 |
CONFIGURE_ARGS+= --enable-gb |
| 69 |
.else |
| 70 |
CONFIGURE_ARGS+= --disable-gb |
| 71 |
.endif |
| 72 |
|
| 73 |
.if ${PORT_OPTIONS:MGBA} |
| 74 |
CONFIGURE_ARGS+= --enable-gba |
| 75 |
.else |
| 76 |
CONFIGURE_ARGS+= --disable-gba |
| 77 |
.endif |
| 78 |
|
| 79 |
.if ${PORT_OPTIONS:MLINX} |
| 80 |
CONFIGURE_ARGS+= --enable-lynx |
| 81 |
.else |
| 82 |
CONFIGURE_ARGS+= --disable-lynx |
| 83 |
.endif |
| 84 |
|
| 85 |
.if ${PORT_OPTIONS:MNES} |
| 86 |
CONFIGURE_ARGS+= --enable-nes |
| 87 |
.else |
| 88 |
CONFIGURE_ARGS+= --disable-nes |
| 89 |
.endif |
| 90 |
|
| 91 |
.if ${PORT_OPTIONS:MNGP} |
| 92 |
CONFIGURE_ARGS+= --enable-ngp |
| 93 |
.else |
| 94 |
CONFIGURE_ARGS+= --disable-ngp |
| 95 |
.endif |
| 96 |
|
| 97 |
.if ${PORT_OPTIONS:MPCE} |
| 98 |
CONFIGURE_ARGS+= --enable-pce |
| 99 |
.else |
| 100 |
CONFIGURE_ARGS+= --disable-pce |
| 101 |
.endif |
| 102 |
|
| 103 |
.if ${PORT_OPTIONS:MPCFX} |
| 104 |
CONFIGURE_ARGS+= --enable-pcfx |
| 105 |
.else |
| 106 |
CONFIGURE_ARGS+= --disable-pcfx |
| 107 |
.endif |
| 108 |
|
| 109 |
.if ${PORT_OPTIONS:MSMS} |
| 110 |
CONFIGURE_ARGS+= --enable-sms |
| 111 |
.else |
| 112 |
CONFIGURE_ARGS+= --disable-sms |
| 113 |
.endif |
| 114 |
|
| 115 |
.if ${PORT_OPTIONS:MSWAN} |
| 116 |
CONFIGURE_ARGS+= --enable-wswan |
| 117 |
.else |
| 118 |
CONFIGURE_ARGS+= --disable-wswan |
| 119 |
.endif |
| 120 |
|
| 41 |
.if ${ARCH}==sparc64 |
121 |
.if ${ARCH}==sparc64 |
| 42 |
BROKEN= does not compile on ${ARCH} due to internal compiler error |
122 |
BROKEN= does not compile on ${ARCH} due to internal compiler error |
| 43 |
.endif |
123 |
.endif |
| 44 |
|
124 |
|
| 45 |
pre-configure: |
125 |
pre-configure: |
| 46 |
@${REINPLACE_CMD} -e 's|sdl-config|${SDL_CONFIG}|g' -e \ |
126 |
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ |
| 47 |
's|/usr/local|${LOCALBASE}|g' -e 's|/usr/X11R6|${LOCALBASE}|g' \ |
127 |
-e 's|/usr/X11R6|${LOCALBASE}|g' \ |
| 48 |
${WRKSRC}/configure |
128 |
${WRKSRC}/configure |
|
|
129 |
@${REINPLACE_CMD} -e 's|NetBSD|FreeBSD|' \ |
| 130 |
${WRKSRC}/include/trio/triodef.h |
| 49 |
|
131 |
|
| 50 |
post-install: |
132 |
post-install: |
| 51 |
.if ${PORT_OPTIONS:MDOCS} |
133 |
.if ${PORT_OPTIONS:MDOCS} |