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