blob: f5fe67eee6c347eb3294b59c5cdc4a0b046c3fdc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# New ports collection makefile for: Wah!Cade
# Date created: 24 August 2006
# Whom: Nathaniel Roark <robb_force@holybuffalo.net>
#
# $FreeBSD$
#
PORTNAME= wahcade
PORTVERSION= 0.28
PORTREVISION= 4
CATEGORIES= emulators
MASTER_SITES= http://www.anti-particle.com/projects/wahcade/
MAINTAINER= ports@FreeBSD.org
COMMENT= A frontend for almost any emulator (MameWAH clone)
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2 \
${PYTHON_SITELIBDIR}/chardet/__init__.py:${PORTSDIR}/textproc/py-chardet
BROKEN= does not build
EXPIRATION_DATE= 2011-11-30
USE_PYTHON= 2.5+
WANT_GSTREAMER= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
OPTIONS= GSTREAMER "Install gstreamer for video & music playback" on \
PSYCHO "Enable psycho optimization" on \
PYGAME "Install pygame for joystick support" off
WRAPPERS= wahcade wahcade-layout-editor wahcade-setup
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_GSTREAMER)
USE_GSTREAMER= python
.endif
.if !defined(WITHOUT_PSYCHO) && ${ARCH} == "i386"
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
.endif
.if defined(WITH_PYGAME)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game
.endif
post-extract:
@cd ${WRKSRC} && ${RM} install && ${MV} *.desktop ..
do-build:
@${MKDIR} ${WRKDIR}/bin
.for f in ${WRAPPERS}
@(${ECHO_CMD} "#!${SH}"; \
${ECHO_CMD} "cd ${DATADIR} || exit 1"; \
${ECHO_CMD} 'exec ${PYTHON_CMD} ${f}.py "$$@"') \
> ${WRKDIR}/bin/${f}
.endfor
do-install:
.for f in ${WRAPPERS}
${INSTALL_SCRIPT} ${WRKDIR}/bin/${f} ${PREFIX}/bin
.endfor
${MKDIR} ${DATADIR}
${CP} -R ${WRKSRC}/* ${DATADIR}
# Needs write permission for the user as they are copied to "~/.wahcade".
@${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
.if !defined(NOPORTDOCS)
${LN} -sf ${DATADIR}/doc ${DOCSDIR}
.endif
${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKDIR}/*.desktop ${PREFIX}/share/applications
${LN} -sf ${DATADIR}/pixmaps/wahcade.png ${PREFIX}/share/pixmaps
.include <bsd.port.post.mk>
|