blob: d44f31c3410067dca0c94bf1b87cb4ec32c968d7 (
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
|
# New ports collection makefile for: Wah!Cade
# Date created: 24 August 2006
# Whom: Nathaniel Roark <robb_force@holybuffalo.net>
#
# $FreeBSD$
#
PORTNAME= wahcade
PORTVERSION= 0.22
CATEGORIES= emulators
MASTER_SITES= http://www.anti-particle.com/projects/wahcade/
MAINTAINER= alepulver@FreeBSD.org
COMMENT= A frontend for almost any emulator (MameWAH clone)
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygtk.pth:${PORTSDIR}/x11-toolkits/py-gtk2 \
${PYTHON_SITELIBDIR}/cElementTree.so:${PORTSDIR}/devel/py-celementtree
USE_PYTHON= 2.4+
WRKSRC= ${WRKDIR}/${PORTNAME}
OPTIONS= MPLAYER "Install mplayer for movie playback" off \
PSYCHO "Enable psycho optimization" on
SUB_FILES= pkg-message
WRAPPERS= wahcade wahcade-layout-editor wahcade-setup
.include <bsd.port.pre.mk>
.if defined(WITH_MPLAYER)
RUN_DEPENDS+= mplayer:${PORTSDIR}/multimedia/mplayer
.endif
.if !defined(WITHOUT_PSYCHO) && ${ARCH} == "i386"
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
.endif
do-build:
.for f in ${WRAPPERS}
@(${ECHO_CMD} "#!${SH}"; \
${ECHO_CMD} "cd ${DATADIR} || exit 1"; \
${ECHO_CMD} 'exec ${PYTHON_CMD} ${f}.py "$$@"') \
> ${WRKSRC}/${f}
.endfor
do-install:
.for f in ${WRAPPERS}
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
${MKDIR} ${DATADIR}
.for f in *.py config.dist glade locale pixmaps templates
${CP} -R ${WRKSRC}/${f} ${DATADIR}
.endfor
${MKDIR} ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop \
${PREFIX}/share/applications
@${FIND} ${DATADIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE}
@${FIND} ${DATADIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/doc/* ${DOCSDIR}
@${FIND} ${DOCSDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE}
@${FIND} ${DOCSDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
.endif
post-install:
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.include <bsd.port.post.mk>
|