View | Details | Raw Unified | Return to bug 202846 | Differences between
and this patch

Collapse All | Expand All

(-)emulators/advancemame/Makefile (-32 / +34 lines)
Lines 2-68 Link Here
2
# $FreeBSD: head/emulators/advancemame/Makefile 406069 2016-01-13 21:46:15Z marino $
2
# $FreeBSD: head/emulators/advancemame/Makefile 406069 2016-01-13 21:46:15Z marino $
3
3
4
PORTNAME=	advancemame
4
PORTNAME=	advancemame
5
PORTVERSION=	1.2
5
PORTVERSION=	1.4
6
PORTREVISION=	3
7
CATEGORIES=	emulators
6
CATEGORIES=	emulators
8
MASTER_SITES=	SF
7
MASTER_SITES=	https://github.com/amadvance/advancemame/releases/download/${DISTNAME}/
9
8
10
MAINTAINER=	ports@FreeBSD.org
9
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	SDL MAME port with advanced TV and monitor video support
10
COMMENT=	SDL MAME port with advanced TV and monitor video support
12
11
13
LICENSE=	GPLv2
12
LICENSE=	GPLv2+
13
LICENSE_FILE=	${WRKSRC}/COPYING
14
14
15
LIB_DEPENDS=	libexpat.so:${PORTSDIR}/textproc/expat2
15
LIB_DEPENDS=	libexpat.so:${PORTSDIR}/textproc/expat2
16
16
17
USES=		gmake ncurses
17
USE_SDL=	sdl
18
USE_SDL=	sdl
18
USES=		gmake
19
GNU_CONFIGURE=	yes
19
GNU_CONFIGURE=	yes
20
CONFIGURE_ARGS=	--disable-asm --disable-svgalib --disable-fb \
20
CONFIGURE_ARGS=	--disable-svgalib --disable-fb --disable-alsa --enable-oss \
21
		--disable-alsa --enable-oss --disable-slang \
21
		--disable-kevent
22
		--disable-ncurses --disable-kevent
23
24
DATADIR=	${PREFIX}/share/advance
25
22
26
CFLAGS+=	-idirafter ${LOCALBASE}/include
23
CFLAGS+=	-idirafter ${LOCALBASE}/include
27
LDFLAGS+=	-L${LOCALBASE}/lib
24
LDFLAGS+=	-L${LOCALBASE}/lib
28
25
29
MAN_FILES=	advdev.1 advj.1 advk.1 advm.1 advmame.1 advs.1
26
DOCSDIR=	${PREFIX}/share/doc/advance
30
PORTDOCS=	*
27
DATADIR=	${PREFIX}/share/advance
31
32
MAKE_JOBS_UNSAFE=	yes
33
28
34
OPTIONS_DEFINE=	FREETYPE DOCS
29
PORTDOCS=	*
35
OPTIONS_DEFAULT=FREETYPE
36
30
31
OPTIONS_DEFINE=		DOCS FREETYPE SLANG
32
OPTIONS_DEFINE_i386=	ASM
33
OPTIONS_DEFAULT=	FREETYPE
34
OPTIONS_DEFAULT_i386=	ASM
35
36
ASM_BUILD_DEPENDS=	nasm:${PORTSDIR}/devel/nasm
37
ASM_USE=		gcc=any
38
ASM_CONFIGURE_ENABLE=	asm
39
FREETYPE_LIB_DEPENDS=	libfreetype.so:${PORTSDIR}/print/freetype2
37
FREETYPE_CONFIGURE_ENABLE=	freetype
40
FREETYPE_CONFIGURE_ENABLE=	freetype
38
FREETYPE_LIB_DEPENDS=		libfreetype.so:${PORTSDIR}/print/freetype2
41
SLANG_LIB_DEPENDS=	libslang.so:${PORTSDIR}/devel/libslang2
42
SLANG_CONFIGURE_ENABLE=	slang
43
SLANG_LDFLAGS=		-lncurses
39
44
40
post-patch:
45
post-patch:
41
	@${REINPLACE_CMD} -e \
46
	@${REINPLACE_CMD} -e \
42
		's|-lpthread|-pthread|' ${WRKSRC}/configure
47
		's|-lpthread|-pthread| ; \
48
		 /prefix/s|^\(docdir\)|#\1| ; \
49
		 /prefix/s|^\(mandir\)|#\1|' ${WRKSRC}/configure
43
	@${REINPLACE_CMD} -e \
50
	@${REINPLACE_CMD} -e \
44
		's|@@|@|' ${WRKSRC}/Makefile.in
51
		's|@@|@| ; \
52
		 /^INSTALL_PROGRAM /s|=.*|= @INSTALL_PROGRAM@| ; \
53
		 /^INSTALL_MAN /s|=.*|= @INSTALL_MAN@| ; \
54
		 /^INSTALL_DATA /s|=.*|= @INSTALL_DATA@|' ${WRKSRC}/Makefile.in
45
	@${REINPLACE_CMD} -e \
55
	@${REINPLACE_CMD} -e \
46
		'/\(pkgdocdir\)/s|^|#| ; \
56
		's|\([[:space:]]\)\($$(bindir)\)|\1$$(DESTDIR)\2| ; \
57
		 s|\([[:space:]]\)\($$(pkgdir)\)|\1$$(DESTDIR)\2| ; \
58
		 s|\([[:space:]]\)\($$(pkgdocdir)\)|\1$$(DESTDIR)\2| ; \
59
		 s|\([[:space:]]\)\($$(mandir)\)|\1$$(DESTDIR)\2| ; \
47
		 /WHOLE_CFLAGS_OPT/s|-O2|| ; \
60
		 /WHOLE_CFLAGS_OPT/s|-O2|| ; \
48
		 /WHOLE_LDFLAGS/s|-s||' ${WRKSRC}/advance/advance.mak
61
		 /WHOLE_LDFLAGS/s|-s||' ${WRKSRC}/advance/advance.mak
49
	@${REINPLACE_CMD} -e \
62
	@${REINPLACE_CMD} -e \
50
		's|-lpthread|-pthread|' ${WRKSRC}/advance/emu.mak
63
		's|-lpthread|-pthread|' ${WRKSRC}/advance/emu.mak
51
64
52
do-install:
65
post-install:
53
	(cd ${WRKSRC} && ${INSTALL_PROGRAM} advj advk advm advmame advs \
54
		${STAGEDIR}${PREFIX}/bin)
55
	(cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MAN_FILES} \
56
		${STAGEDIR}${MANPREFIX}/man/man1)
57
	@${MKDIR} ${STAGEDIR}${DATADIR}
58
	(cd ${WRKSRC}/support && ${INSTALL_DATA} *.dat ${STAGEDIR}${DATADIR})
59
.for i in artwork diff image rom sample snap
60
	@${MKDIR} ${STAGEDIR}${DATADIR}/${i}
61
	@${ECHO_CMD} -n > ${STAGEDIR}${DATADIR}/${i}/.keep_me
62
.endfor
63
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
66
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
64
	(cd ${WRKSRC} && ${INSTALL_DATA} HISTORY README RELEASE \
67
	(cd ${WRKSRC} && ${INSTALL_DATA} HISTORY README RELEASE \
65
		${STAGEDIR}${DOCSDIR})
68
		${STAGEDIR}${DOCSDIR})
66
	(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.[ht]* ${STAGEDIR}${DOCSDIR})
67
69
68
.include <bsd.port.mk>
70
.include <bsd.port.mk>
(-)emulators/advancemame/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (advancemame-1.2.tar.gz) = eaf46e54f0cb5fa1d99f55604a4a3f8a065c1cf5e70ac4abc67391b0450ce439
1
SHA256 (advancemame-1.4.tar.gz) = 525e0897cd41fe8d3ef563e59592da740ebe005eda0948515dca410d01624bcc
2
SIZE (advancemame-1.2.tar.gz) = 17508670
2
SIZE (advancemame-1.4.tar.gz) = 18463736
(-)emulators/advancemame/pkg-descr (-19 / +19 lines)
Lines 1-22 Link Here
1
AdvanceMAME and AdvanceMESS are unofficial MAME and MESS versions with an
1
AdvanceMAME and AdvanceMESS are unofficial MAME and MESS versions with
2
advanced video support for helping the use with TVs, Arcade Monitors, Fixed
2
an advanced video support for helping the use with TVs, Arcade Monitors,
3
Frequencies Monitors and also for PC Monitors.
3
Fixed Frequencies Monitors and also for PC Monitors.
4
4
5
They run in GNU/Linux, Mac OS X, DOS, Windows and in all the other platforms
5
They run in GNU/Linux, Mac OS X, DOS, Windows and in all the other
6
supported by the SDL library.
6
platforms supported by the SDL library.
7
7
8
The main difference compared with the official emulators is that the Advance
8
The main difference compared with the official emulators is that the
9
versions are able to program directly the video board to always get a video
9
Advance versions are able to program directly the video board to always
10
mode with the correct size and frequency.
10
get a video mode with the correct size and frequency.
11
11
12
Generally the Advance emulators are able to use a video mode which doesn't
12
Generally the Advance emulators are able to use a video mode which
13
require any stretching or other unneeded effects to match the original arcade
13
doesn't require any stretching or other unneeded effects to match the
14
display.
14
original arcade display.
15
15
16
The direct video board programming is fully supported in Linux and DOS. It's
16
The direct video board programming is fully supported in Linux and DOS.
17
partially supported in Windows. It isn't supported in Mac OS X and other
17
It's partially supported in Windows. It isn't supported in Mac OS X and
18
platforms.
18
other platforms.
19
19
20
See website for other improvements.
20
See website for other improvements.
21
21
22
WWW: http://advancemame.sourceforge.net/
22
WWW: http://www.advancemame.it/
(-)emulators/advancemame/pkg-plist (-8 / +15 lines)
Lines 1-4 Link Here
1
bin/advj 
1
bin/advj
2
bin/advk
2
bin/advk
3
bin/advm
3
bin/advm
4
bin/advmame
4
bin/advmame
Lines 9-20 Link Here
9
man/man1/advm.1.gz
9
man/man1/advm.1.gz
10
man/man1/advmame.1.gz
10
man/man1/advmame.1.gz
11
man/man1/advs.1.gz
11
man/man1/advs.1.gz
12
%%DATADIR%%/artwork/.keep_me
13
%%DATADIR%%/diff/.keep_me
14
%%DATADIR%%/event.dat
12
%%DATADIR%%/event.dat
15
%%DATADIR%%/history.dat
16
%%DATADIR%%/hiscore.dat
13
%%DATADIR%%/hiscore.dat
17
%%DATADIR%%/image/.keep_me
14
%%DATADIR%%/history.dat
18
%%DATADIR%%/rom/.keep_me
15
%%DATADIR%%/rom/gridlee.zip
19
%%DATADIR%%/sample/.keep_me
16
%%DATADIR%%/rom/polyplay.zip
20
%%DATADIR%%/snap/.keep_me
17
%%DATADIR%%/rom/robby.zip
18
%%DATADIR%%/sample/gridlee.zip
19
%%DATADIR%%/snap/gridlee.zip
20
%%DATADIR%%/snap/polyplay.zip
21
%%DATADIR%%/snap/robby.zip
22
@dir %%DATADIR%%/snap
23
@dir %%DATADIR%%/sample
24
@dir %%DATADIR%%/rom
25
@dir %%DATADIR%%/image
26
@dir %%DATADIR%%/crc
27
@dir %%DATADIR%%/artwork

Return to bug 202846