Lines 6-19
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME?= xmame |
8 |
PORTNAME?= xmame |
9 |
PORTVERSION?= 0.61.1 |
9 |
PORTVERSION?= 0.65.1 |
10 |
CATEGORIES= emulators |
10 |
CATEGORIES= emulators |
11 |
MASTER_SITES= http://x.mame.net/download/:xmame \ |
11 |
MASTER_SITES= http://x.mame.net/download/:xmame \ |
12 |
http://www.sys2064.com/files/util/:history \ |
12 |
http://www.sys2064.com/files/util/:history \ |
13 |
http://www.sys2064.com/files/mame/:highscore \ |
13 |
http://www.sys2064.com/files/mame/:highscore \ |
14 |
http://cheat.retrogames.com/:cheat \ |
14 |
http://cheat.retrogames.com/:cheat \ |
15 |
http://www.win.tue.nl/~stijn/xmame/:history,highscore,cheat |
15 |
http://www.win.tue.nl/~stijn/xmame/:history,highscore,cheat |
16 |
DISTNAME= xmame-${XMAMEVERSION:S/.p/-pr/} |
16 |
DISTNAME= xmame-${XMAMEVERSION:S/.r/-rc/} |
17 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:xmame |
17 |
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:xmame |
18 |
DIST_SUBDIR= xmame |
18 |
DIST_SUBDIR= xmame |
19 |
|
19 |
|
Lines 52-57
Link Here
|
52 |
GENERALDOCS= changes.unix \ |
52 |
GENERALDOCS= changes.unix \ |
53 |
ctrlr.txt \ |
53 |
ctrlr.txt \ |
54 |
dga2.txt \ |
54 |
dga2.txt \ |
|
|
55 |
img/xmame.jpg \ |
55 |
liesmich.unix \ |
56 |
liesmich.unix \ |
56 |
listinfo.txt \ |
57 |
listinfo.txt \ |
57 |
multiplayer-readme.txt \ |
58 |
multiplayer-readme.txt \ |
Lines 85-91
Link Here
|
85 |
imgtool.txt \ |
86 |
imgtool.txt \ |
86 |
messhelp.txt \ |
87 |
messhelp.txt \ |
87 |
messroms.txt \ |
88 |
messroms.txt \ |
88 |
old-changes.mess |
89 |
old-changes.mess \ |
|
|
90 |
readme.mess |
89 |
PINMAMEDOCS= pinmame/simulation.txt \ |
91 |
PINMAMEDOCS= pinmame/simulation.txt \ |
90 |
pinmame/whatsnew.txt \ |
92 |
pinmame/whatsnew.txt \ |
91 |
pinmame/pinmame.txt \ |
93 |
pinmame/pinmame.txt \ |
Lines 106-113
Link Here
|
106 |
PKGOPTS= ${FILESDIR}/pkg-opts |
108 |
PKGOPTS= ${FILESDIR}/pkg-opts |
107 |
|
109 |
|
108 |
# |
110 |
# |
109 |
# Various options are processed here. Note that due to a bug in make(1), at |
111 |
# Various options are processed here. |
110 |
# present the conditionals are suboptimal. See PR bin/34032. |
|
|
111 |
# |
112 |
# |
112 |
|
113 |
|
113 |
# Option WITH_DATFILES |
114 |
# Option WITH_DATFILES |
Lines 148-154
Link Here
|
148 |
.if ${WITH_ASM68K:L} == "yes" |
149 |
.if ${WITH_ASM68K:L} == "yes" |
149 |
ASM_COMMENT= |
150 |
ASM_COMMENT= |
150 |
.else |
151 |
.else |
151 |
ASM_COMMENT=\# |
152 |
ASM_COMMENT=\#\ |
152 |
.endif |
153 |
.endif |
153 |
|
154 |
|
154 |
# Option WITH_OPTIMIZATION |
155 |
# Option WITH_OPTIMIZATION |
Lines 160-165
Link Here
|
160 |
.endif |
161 |
.endif |
161 |
.endif |
162 |
.endif |
162 |
|
163 |
|
|
|
164 |
SDLSOUNDCOMMENT= \#\ |
165 |
|
163 |
# Option DISPLAY_TARGET |
166 |
# Option DISPLAY_TARGET |
164 |
.if !defined(DISPLAY_TARGET) |
167 |
.if !defined(DISPLAY_TARGET) |
165 |
DISPLAY_TARGET=sdl |
168 |
DISPLAY_TARGET=sdl |
Lines 176-183
Link Here
|
176 |
|
179 |
|
177 |
.if ${DISPLAY_TARGET:L} == "svgalib" |
180 |
.if ${DISPLAY_TARGET:L} == "svgalib" |
178 |
LIB_DEPENDS= vga.1:${PORTSDIR}/graphics/svgalib |
181 |
LIB_DEPENDS= vga.1:${PORTSDIR}/graphics/svgalib |
179 |
CFLAGS+= -I${LOCALBASE}/include |
|
|
180 |
MAKE_ENV+= LOCALBASE=${LOCALBASE} |
181 |
DISPLAY_METHOD= svgalib |
182 |
DISPLAY_METHOD= svgalib |
182 |
.else |
183 |
.else |
183 |
|
184 |
|
Lines 194-199
Link Here
|
194 |
LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12 |
195 |
LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12 |
195 |
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config |
196 |
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config |
196 |
DISPLAY_METHOD= SDL |
197 |
DISPLAY_METHOD= SDL |
|
|
198 |
SDLSOUNDCOMMENT= |
197 |
.endif |
199 |
.endif |
198 |
.endif |
200 |
.endif |
199 |
.endif |
201 |
.endif |
Lines 250-273
Link Here
|
250 |
|
252 |
|
251 |
# The large number of sed regexes here is intended to make this port a whole |
253 |
# The large number of sed regexes here is intended to make this port a whole |
252 |
# lot easier to maintain - please don't convert them into a patch. |
254 |
# lot easier to maintain - please don't convert them into a patch. |
|
|
255 |
# |
256 |
# XXX: The -Imess part was added because of a conflict with cdparanoia-3.9.8_3 |
257 |
# which (imho bogusly) installs an 'utils.h' header in $LOCALBASE/include |
253 |
do-configure: |
258 |
do-configure: |
254 |
${SED} -e "s@= gcc@?= ${CC}@g" \ |
259 |
${SED} -e "s@= gcc@?= ${CC}@g" \ |
255 |
-e "s@^CFLAGS.*@CFLAGS ?= ${CFLAGS}@g" \ |
260 |
-e "s@^TARGET.*@TARGET = ${MAMEMESS}@g" \ |
256 |
-e "s@lib/x\$$(TARGET)@share/x\$$(TARGET)@g" \ |
|
|
257 |
-e "s@/usr/X11R6@${X11BASE}@g" \ |
258 |
-e "s@-g bin@-g wheel@g" \ |
259 |
-e "s@^ARCH = linux@ARCH = freebsd@g" \ |
260 |
-e "s@# X11_XV@X11_XV@g" \ |
261 |
-e "s@# X11_DGA@X11_DGA@g" \ |
262 |
-e "s@= x11@= ${DISPLAY_METHOD}@g" \ |
263 |
-e "s@= mame@= ${MAMEMESS}@g" \ |
264 |
-e "s@# X86_ASM@${ASM_COMMENT}X86_ASM@g" \ |
265 |
-e "s@# SOUND_ESOUND@${ESOUNDCOMMENT}SOUND_ESOUND@g" \ |
266 |
-e "s@# MAME_NET@${NETWORK}MAME_NET@g" \ |
261 |
-e "s@# MAME_NET@${NETWORK}MAME_NET@g" \ |
|
|
262 |
-e "s@# X86_ASM_68000@${ASM_COMMENT}X86_ASM_68000@g" \ |
263 |
-e "s@^CFLAGS.*@CFLAGS ?= ${CFLAGS}@g" \ |
264 |
-e "s@^INSTALL_GROUP.*@INSTALL_GROUP = wheel@g" \ |
267 |
-e "s@# LIBS.*@LIBS = -L${LOCALBASE}/lib@g" \ |
265 |
-e "s@# LIBS.*@LIBS = -L${LOCALBASE}/lib@g" \ |
268 |
-e "s@sdl-config@${SDL_CONFIG}@g" \ |
266 |
-e "s@# INCLUDES.*@INCLUDES = -Imess -I${LOCALBASE}/include@g" \ |
|
|
267 |
-e "s@^PREFIX.*@PREFIX = ${PREFIX}@g" \ |
268 |
-e "s@/share/man@/man@g" \ |
269 |
-e "s@^MY_CPU.*@MY_CPU = ${ARCH}@g" \ |
270 |
-e "s@^ARCH.*@ARCH = freebsd@g" \ |
269 |
-e "s@# JOY_USB@JOY_USB@g" \ |
271 |
-e "s@# JOY_USB@JOY_USB@g" \ |
270 |
-e "s@GLLIBS=.-ldl@GLLIBS= ${PTHREAD_LIBS}@g" \ |
272 |
-e "s@# SOUND_ESOUND@${ESOUNDCOMMENT}SOUND_ESOUND@g" \ |
|
|
273 |
-e "s@# SOUND_SDL@${SDLSOUNDCOMMENT}SOUND_SDL@g" \ |
274 |
-e "s@^DISPLAY_METHOD.*@DISPLAY_METHOD = ${DISPLAY_METHOD}@g" \ |
275 |
-e "s@# X11_DGA@X11_DGA@g" \ |
276 |
-e "s@/usr/X11R6@${X11BASE}@g" \ |
277 |
-e "s@^SDL_CONFIG.*@SDL_CONFIG = ${SDL_CONFIG}@g" \ |
278 |
-e "s@^GLLIBS=.*@GLLIBS= ${PTHREAD_LIBS}@g" \ |
271 |
${WRKSRC}/makefile.unix > ${WRKSRC}/Makefile |
279 |
${WRKSRC}/makefile.unix > ${WRKSRC}/Makefile |
272 |
|
280 |
|
273 |
post-build: |
281 |
post-build: |
Lines 296-301
Link Here
|
296 |
${PREFIX}/share/x${MAMEMESS}/x${MAMEMESS}rc |
304 |
${PREFIX}/share/x${MAMEMESS}/x${MAMEMESS}rc |
297 |
.if !defined(NOPORTDOCS) |
305 |
.if !defined(NOPORTDOCS) |
298 |
${MKDIR} ${PREFIX}/share/doc/x${MAMEMESS} |
306 |
${MKDIR} ${PREFIX}/share/doc/x${MAMEMESS} |
|
|
307 |
${MKDIR} ${PREFIX}/share/doc/x${MAMEMESS}/img |
299 |
.for file in ${ALLDOCS} |
308 |
.for file in ${ALLDOCS} |
300 |
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/share/doc/x${MAMEMESS} |
309 |
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${PREFIX}/share/doc/x${MAMEMESS} |
301 |
.endfor |
310 |
.endfor |