View | Details | Raw Unified | Return to bug 109421
Collapse All | Expand All

(-)wahcade/Makefile (-68 / +43 lines)
Lines 5-91 Link Here
5
# $FreeBSD: ports/emulators/wahcade/Makefile,v 1.1 2006/08/31 19:54:46 pav Exp $
5
# $FreeBSD: ports/emulators/wahcade/Makefile,v 1.1 2006/08/31 19:54:46 pav Exp $
6
#
6
#
7
7
8
PORTNAME=		wahcade
8
PORTNAME=	wahcade
9
PORTVERSION=		0.11
9
PORTVERSION=	0.16
10
CATEGORIES=		emulators
10
CATEGORIES=	emulators
11
MASTER_SITES=		http://www.anti-particle.com/projects/wahcade/
11
MASTER_SITES=	http://www.anti-particle.com/projects/wahcade/
12
PKGNAMEPREFIX=		${PYTHON_PKGNAMEPREFIX}
13
DISTNAME=		${PORTNAME}-${PORTVERSION}
14
15
MAINTAINER=		robb_force@holybuffalo.net
16
COMMENT=		A frontend for almost any emulator (MameWAH clone)
17
18
RUN_DEPENDS=		${PYTHON_SITELIBDIR}/pygtk.pth:${PORTSDIR}/x11-toolkits/py-gtk2 \
19
			${PYTHON_SITELIBDIR}/cElementTree.so:${PORTSDIR}/devel/py-celementtree
20
21
WRKSRC=			${WRKDIR}/${PORTNAME}
22
USE_PYTHON=		2.4+
23
NO_BUILD=		yes
24
OPTIONS=		MPLAYER "For movie playback." off
25
# Bypass infrasructure bug (taken from www/py-turbogears)
26
OPTIONSFILE=		${PORT_DBDIR}/py-${PORTNAME}/options
27
BINDIR=			${PREFIX}/bin
28
12
29
.include <bsd.port.pre.mk>
13
MAINTAINER=	robb_force@holybuffalo.net
14
COMMENT=	A frontend for almost any emulator (MameWAH clone)
30
15
31
.if ${ARCH} != "i386"
16
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pygtk.pth:${PORTSDIR}/x11-toolkits/py-gtk2 \
32
WITHOUT_PSYCO=		yes
17
		${PYTHON_SITELIBDIR}/cElementTree.so:${PORTSDIR}/devel/py-celementtree
33
.endif
34
18
35
# required for PSYCO
19
USE_PYTHON=	2.4+
36
.ifndef(WITHOUT_PSYCO)
20
WRKSRC=		${WRKDIR}/${PORTNAME}
37
RUN_DEPENDS+=		${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
21
38
.endif
22
OPTIONS=	MPLAYER "Install mplayer for movie playback" off \
23
		PSYCHO "Enable psycho optimization" on
24
25
SUB_FILES=	pkg-message
26
27
.include <bsd.port.pre.mk>
39
28
40
.if defined(WITH_MPLAYER)
29
.if defined(WITH_MPLAYER)
41
RUN_DEPENDS+=		mplayer:${PORTSDIR}/multimedia/mplayer
30
RUN_DEPENDS+=	mplayer:${PORTSDIR}/multimedia/mplayer
42
.endif
31
.endif
43
32
44
pre-everything::
33
.if !defined(WITHOUT_PSYCHO) && ${ARCH} == "i386"
45
.ifndef(WITHOUT_PSYCO)
34
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
46
	@${ECHO_MSG} '===> Define WITHOUT_PSYCO to disable devel/py-psyco optimization'
47
.endif
35
.endif
48
36
49
# setup.py seems to be for windows, so run the patched install script
37
do-build:
50
do-install:
38
	@(${ECHO_CMD} "#!${SH}"; \
51
	#wahcade start script
39
	  ${ECHO_CMD} "cd ${DATADIR} || exit 1"; \
52
	echo "#!${BINDIR}/bash" > ${BINDIR}/${PORTNAME}
40
	  ${ECHO_CMD} 'exec ${PYTHON_CMD} ${PORTNAME}.py "$$@"') \
53
	echo "cd ${DATADIR}" >> ${BINDIR}/${PORTNAME}
41
	  > ${WRKSRC}/${PORTNAME}
54
	echo "python ${PORTNAME} \$*" >> ${BINDIR}/${PORTNAME}
55
	${CHMOD} 755 ${BINDIR}/${PORTNAME}
56
57
	#install files
58
	${INSTALL} -d -v ${DATADIR}
59
	${INSTALL} -m 644 ${WRKSRC}/*.py ${DATADIR}
60
	${INSTALL} -m 755 ${WRKSRC}/${PORTNAME} ${DATADIR}
61
	${INSTALL} -d -v ${DATADIR}/config.dist
62
	${INSTALL} -d -v ${DATADIR}/config.dist/ctrlr
63
	${INSTALL} -d -v ${DATADIR}/config.dist/files
64
	${INSTALL} -d -v ${DATADIR}/config.dist/ini
65
	${INSTALL} -d -v ${DATADIR}/config.dist/layouts
66
	${INSTALL} -d -v ${DATADIR}/config.dist/layouts/classic\ 640x480
67
	${INSTALL} -d -v ${DATADIR}/config.dist/layouts/classic\ 800x600
68
	${INSTALL} -d -v ${DATADIR}/config.dist/layouts/classic\ 1024x768
69
	${INSTALL} -d -v ${DATADIR}/config.dist/layouts/cpviewer
70
	${INSTALL} -d -v ${DATADIR}/pixmaps
71
	${INSTALL} -m 644 ${WRKSRC}/config.dist/*.ini ${DATADIR}/config.dist
72
	${INSTALL} -m 644 ${WRKSRC}/config.dist/ctrlr/*.ini ${DATADIR}/config.dist/ctrlr
73
	#${INSTALL} -m 644 ${WRKSRC}/config.dist/files/* ${DATADIR}/config.dist/files
74
	${INSTALL} -m 644 ${WRKSRC}/config.dist/ini/*.ini ${DATADIR}/config.dist/ini
75
	${INSTALL} -m 644 ${WRKSRC}/config.dist/layouts/classic\ 640x480/* ${DATADIR}/config.dist/layouts/classic\ 640x480
76
	${INSTALL} -m 644 ${WRKSRC}/config.dist/layouts/classic\ 800x600/* ${DATADIR}/config.dist/layouts/classic\ 800x600
77
	${INSTALL} -m 644 ${WRKSRC}/config.dist/layouts/classic\ 1024x768/* ${DATADIR}/config.dist/layouts/classic\ 1024x768
78
	${INSTALL} -m 644 ${WRKSRC}/config.dist/layouts/cpviewer/* ${DATADIR}/config.dist/layouts/cpviewer
79
	${INSTALL} -m 644 ${WRKSRC}/pixmaps/*.png ${DATADIR}/pixmaps
80
81
	#compile everything python
82
	${PYTHON_CMD} -c "import compileall; compileall.compile_dir('${DATADIR}')"
83
42
84
post-install:
43
do-install:
44
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
45
	${MKDIR} ${DATADIR}
46
.for f in *.py config.dist glade locale pixmaps templates
47
	${CP} -R ${WRKSRC}/${f} ${DATADIR}
48
.endfor
49
	${MKDIR} ${PREFIX}/share/applications
50
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop \
51
		${PREFIX}/share/applications
52
	@${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE}
53
	@${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
85
.if !defined(NOPORTDOCS)
54
.if !defined(NOPORTDOCS)
86
	${MKDIR} ${DOCSDIR}
55
	${MKDIR} ${DOCSDIR}
87
	${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
56
	${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}
57
	@${FIND} ${DOCSDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE}
58
	@${FIND} ${DOCSDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
88
.endif
59
.endif
60
61
post-install:
62
	@${ECHO_CMD}
89
	@${CAT} ${PKGMESSAGE}
63
	@${CAT} ${PKGMESSAGE}
64
	@${ECHO_CMD}
90
65
91
.include <bsd.port.post.mk>
66
.include <bsd.port.post.mk>
(-)wahcade/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (wahcade-0.11.tar.gz) = 899003aace0ec93709cbb6496cc83dfb
1
MD5 (wahcade-0.16.tar.gz) = f5c5ad11755cf68e01a0fc45de20ddea
2
SHA256 (wahcade-0.11.tar.gz) = 52ad28d8397aee6ddd27992d039bc1de7e7f1d2bd1fb3804a5e04fd6e30f91cb
2
SHA256 (wahcade-0.16.tar.gz) = 01d61cf4b920b19df34282c50559f1f24597b4982f9f712f891959ded0afa553
3
SIZE (wahcade-0.11.tar.gz) = 134497
3
SIZE (wahcade-0.16.tar.gz) = 194939
(-)wahcade/pkg-message (-10 lines)
Removed Link Here
1
************************************************************************
2
Wah!Cade has been successfully installed!
3
4
The default config files are stored in wahcade/config.dist.
5
When Wah!Cade is first run these files are copied into the user's
6
~/.wahcade directory.
7
8
HINT: Please read the README file in docs/wahcade for information on
9
initial setup & configuration!
10
************************************************************************
(-)wahcade/pkg-plist (-40 / +66 lines)
Lines 1-24 Link Here
1
bin/wahcade
1
bin/wahcade
2
%%DOCSDIR%%/CHANGELOG
2
share/applications/wahcade.desktop
3
%%DOCSDIR%%/COPYING
3
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
4
%%DOCSDIR%%/INI_FILES
4
%%PORTDOCS%%%%DOCSDIR%%/COPYING
5
%%DOCSDIR%%/INSTALL
5
%%PORTDOCS%%%%DOCSDIR%%/INI_FILES
6
%%DOCSDIR%%/KEYS
6
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
7
%%DOCSDIR%%/README
7
%%PORTDOCS%%%%DOCSDIR%%/KEYS
8
%%DOCSDIR%%/TODO
8
%%PORTDOCS%%%%DOCSDIR%%/LAYOUT_EDITOR
9
%%DOCSDIR%%/fav_format.txt
9
%%PORTDOCS%%%%DOCSDIR%%/README
10
%%DOCSDIR%%/filter_format.txt
10
%%PORTDOCS%%%%DOCSDIR%%/SETUP_EDITOR
11
%%DOCSDIR%%/gamelist_format.txt
11
%%PORTDOCS%%%%DOCSDIR%%/TODO
12
%%DOCSDIR%%/layout_format.txt
12
%%PORTDOCS%%%%DOCSDIR%%/file_formats/fav_format.txt
13
%%DOCSDIR%%/xmame-x11rc
13
%%PORTDOCS%%%%DOCSDIR%%/file_formats/filter_format.txt
14
%%DOCSDIR%%/xmame-x11rc.pre88
14
%%PORTDOCS%%%%DOCSDIR%%/file_formats/gamelist_format.txt
15
%%DOCSDIR%%/xmame_options.pre88.txt
15
%%PORTDOCS%%%%DOCSDIR%%/file_formats/layout_format.txt
16
%%DOCSDIR%%/xmame_options.txt
16
%%PORTDOCS%%%%DOCSDIR%%/xmame/xmame-x11rc
17
%%DOCSDIR%%/xmamerc
17
%%PORTDOCS%%%%DOCSDIR%%/xmame/xmame-x11rc.pre88
18
%%DOCSDIR%%/xmamerc.pre88
18
%%PORTDOCS%%%%DOCSDIR%%/xmame/xmamerc
19
%%PORTDOCS%%%%DOCSDIR%%/xmame/xmamerc.post105
20
%%PORTDOCS%%%%DOCSDIR%%/xmame/xmamerc.pre88
19
%%DATADIR%%/config.dist/cpviewer.ini
21
%%DATADIR%%/config.dist/cpviewer.ini
22
%%DATADIR%%/config.dist/ctrlr/.dir
20
%%DATADIR%%/config.dist/ctrlr/default.ini
23
%%DATADIR%%/config.dist/ctrlr/default.ini
24
%%DATADIR%%/config.dist/files/.dir
21
%%DATADIR%%/config.dist/histview.ini
25
%%DATADIR%%/config.dist/histview.ini
26
%%DATADIR%%/config.dist/ini/.dir
22
%%DATADIR%%/config.dist/ini/genesis-0.ini
27
%%DATADIR%%/config.dist/ini/genesis-0.ini
23
%%DATADIR%%/config.dist/ini/genesis.ini
28
%%DATADIR%%/config.dist/ini/genesis.ini
24
%%DATADIR%%/config.dist/ini/mame-0.ini
29
%%DATADIR%%/config.dist/ini/mame-0.ini
Lines 26-78 Link Here
26
%%DATADIR%%/config.dist/ini/mame.ini
31
%%DATADIR%%/config.dist/ini/mame.ini
27
%%DATADIR%%/config.dist/ini/zsnes-0.ini
32
%%DATADIR%%/config.dist/ini/zsnes-0.ini
28
%%DATADIR%%/config.dist/ini/zsnes.ini
33
%%DATADIR%%/config.dist/ini/zsnes.ini
29
%%DATADIR%%/config.dist/layouts/classic 1024x768/layout.lay
34
%%DATADIR%%/config.dist/layouts/.dir
30
%%DATADIR%%/config.dist/layouts/classic 640x480/layout.lay
35
%%DATADIR%%/config.dist/layouts/classic_1024x768/layout.lay
31
%%DATADIR%%/config.dist/layouts/classic 800x600/layout.lay
36
%%DATADIR%%/config.dist/layouts/classic_640x480/layout.lay
37
%%DATADIR%%/config.dist/layouts/classic_800x600/layout.lay
32
%%DATADIR%%/config.dist/layouts/cpviewer/example.jpg
38
%%DATADIR%%/config.dist/layouts/cpviewer/example.jpg
33
%%DATADIR%%/config.dist/layouts/cpviewer/example.lay
39
%%DATADIR%%/config.dist/layouts/cpviewer/example.lay
34
%%DATADIR%%/config.dist/layouts/cpviewer/wahcade.glade
40
%%DATADIR%%/config.dist/layouts/histview/example.lay
35
%%DATADIR%%/config.dist/wahcade.ini
41
%%DATADIR%%/config.dist/wahcade.ini
36
%%DATADIR%%/constants.py
42
%%DATADIR%%/constants.py
37
%%DATADIR%%/constants.pyc
38
%%DATADIR%%/filters.py
43
%%DATADIR%%/filters.py
39
%%DATADIR%%/filters.pyc
44
%%DATADIR%%/glade/layout_editor.glade
45
%%DATADIR%%/glade/wahcade_setup.glade
46
%%DATADIR%%/glade/win_cpviewer.png
47
%%DATADIR%%/glade/win_main.png
48
%%DATADIR%%/glade/win_msg.png
49
%%DATADIR%%/glade/win_options.png
50
%%DATADIR%%/glade/win_scrsave.png
51
%%DATADIR%%/glade2.py
40
%%DATADIR%%/key_consts.py
52
%%DATADIR%%/key_consts.py
41
%%DATADIR%%/key_consts.pyc
53
%%DATADIR%%/layout_editor.py
54
%%DATADIR%%/layout_props.py
55
%%DATADIR%%/layout_scr_props.py
56
%%DATADIR%%/locale/en_GB/LC_MESSAGES/wahcade.mo
42
%%DATADIR%%/mamewah_ini.py
57
%%DATADIR%%/mamewah_ini.py
43
%%DATADIR%%/mamewah_ini.pyc
44
%%DATADIR%%/mplayer.py
58
%%DATADIR%%/mplayer.py
45
%%DATADIR%%/mplayer.pyc
46
%%DATADIR%%/pixmaps/empty.png
59
%%DATADIR%%/pixmaps/empty.png
60
%%DATADIR%%/pixmaps/wahcade-logo.png
61
%%DATADIR%%/pixmaps/wahcade.ico
47
%%DATADIR%%/pixmaps/wahcade.png
62
%%DATADIR%%/pixmaps/wahcade.png
63
%%DATADIR%%/pixmaps/win_cpviewer.png
64
%%DATADIR%%/pixmaps/win_main.png
65
%%DATADIR%%/pixmaps/win_msg.png
66
%%DATADIR%%/pixmaps/win_options.png
67
%%DATADIR%%/pixmaps/win_scrsave.png
48
%%DATADIR%%/scrolled_list.py
68
%%DATADIR%%/scrolled_list.py
49
%%DATADIR%%/scrolled_list.pyc
50
%%DATADIR%%/setup.py
69
%%DATADIR%%/setup.py
51
%%DATADIR%%/setup.pyc
70
%%DATADIR%%/templates/new_emulator-0.ini
52
%%DATADIR%%/wahcade
71
%%DATADIR%%/templates/new_emulator-1.ini
72
%%DATADIR%%/templates/new_emulator.ini
73
%%DATADIR%%/wahcade-layout-editor.py
74
%%DATADIR%%/wahcade-setup.py
75
%%DATADIR%%/wahcade.py
53
%%DATADIR%%/wc_common.py
76
%%DATADIR%%/wc_common.py
54
%%DATADIR%%/wc_common.pyc
77
%%DATADIR%%/wc_setup.py
55
%%DATADIR%%/win_cpviewer.py
78
%%DATADIR%%/win_cpviewer.py
56
%%DATADIR%%/win_cpviewer.pyc
57
%%DATADIR%%/win_history.py
79
%%DATADIR%%/win_history.py
58
%%DATADIR%%/win_history.pyc
59
%%DATADIR%%/win_main.py
80
%%DATADIR%%/win_main.py
60
%%DATADIR%%/win_main.pyc
61
%%DATADIR%%/win_message.py
81
%%DATADIR%%/win_message.py
62
%%DATADIR%%/win_message.pyc
63
%%DATADIR%%/win_options.py
82
%%DATADIR%%/win_options.py
64
%%DATADIR%%/win_options.pyc
65
%%DATADIR%%/win_scrsaver.py
83
%%DATADIR%%/win_scrsaver.py
66
%%DATADIR%%/win_scrsaver.pyc
84
@dirrmtry share/applications
85
@dirrm %%DATADIR%%/templates
67
@dirrm %%DATADIR%%/pixmaps
86
@dirrm %%DATADIR%%/pixmaps
87
@dirrm %%DATADIR%%/locale/en_GB/LC_MESSAGES
88
@dirrm %%DATADIR%%/locale/en_GB
89
@dirrm %%DATADIR%%/locale
90
@dirrm %%DATADIR%%/glade
91
@dirrm %%DATADIR%%/config.dist/layouts/histview
68
@dirrm %%DATADIR%%/config.dist/layouts/cpviewer
92
@dirrm %%DATADIR%%/config.dist/layouts/cpviewer
69
@dirrm %%DATADIR%%/config.dist/layouts/classic 800x600
93
@dirrm %%DATADIR%%/config.dist/layouts/classic_800x600
70
@dirrm %%DATADIR%%/config.dist/layouts/classic 640x480
94
@dirrm %%DATADIR%%/config.dist/layouts/classic_640x480
71
@dirrm %%DATADIR%%/config.dist/layouts/classic 1024x768
95
@dirrm %%DATADIR%%/config.dist/layouts/classic_1024x768
72
@dirrm %%DATADIR%%/config.dist/layouts
96
@dirrm %%DATADIR%%/config.dist/layouts
73
@dirrm %%DATADIR%%/config.dist/ini
97
@dirrm %%DATADIR%%/config.dist/ini
74
@dirrm %%DATADIR%%/config.dist/files
98
@dirrm %%DATADIR%%/config.dist/files
75
@dirrm %%DATADIR%%/config.dist/ctrlr
99
@dirrm %%DATADIR%%/config.dist/ctrlr
76
@dirrm %%DATADIR%%/config.dist
100
@dirrm %%DATADIR%%/config.dist
77
@dirrm %%DATADIR%%
101
@dirrm %%DATADIR%%
78
@dirrm %%DOCSDIR%%
102
%%PORTDOCS%%@dirrm %%DOCSDIR%%/xmame
103
%%PORTDOCS%%@dirrm %%DOCSDIR%%/file_formats
104
%%PORTDOCS%%@dirrm %%DOCSDIR%%
(-)wahcade/files/pkg-message.in (+14 lines)
Added Link Here
1
==============================================================================
2
3
Wah!Cade has been successfully installed!
4
5
The default config files are stored in
6
"%%DATADIR%%/config.dist".
7
8
When Wah!Cade is first run these files are copied into the user's
9
"~/.wahcade" directory.
10
11
Please read the README file for information on initial setup & configuration
12
in "%%DOCSDIR%%".
13
14
==============================================================================

Return to bug 109421